diff options
author | Simon Glass <sjg@chromium.org> | 2015-03-05 12:25:32 -0700 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2015-04-18 11:11:09 -0600 |
commit | 801f4f1bbc5ae838cdd50df09895dc275726d23a (patch) | |
tree | 0396a350136990d52eef97906aac18de85e6d4f7 /board/google | |
parent | a219daeafef4df1b219db68c80116d82113c82b2 (diff) |
dm: x86: pci: Convert coreboot to use driver model for pci
Move coreboot-x86 over to driver model for PCI.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'board/google')
-rw-r--r-- | board/google/chromebook_link/link.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/board/google/chromebook_link/link.c b/board/google/chromebook_link/link.c index 9978e92006..8c04cb8280 100644 --- a/board/google/chromebook_link/link.c +++ b/board/google/chromebook_link/link.c @@ -6,6 +6,7 @@ #include <common.h> #include <cros_ec.h> +#include <dm.h> #include <asm/gpio.h> #include <asm/io.h> #include <asm/pci.h> @@ -13,6 +14,14 @@ int arch_early_init_r(void) { + struct udevice *dev; + int ret; + + /* Make sure the platform controller hub is up and running */ + ret = uclass_get_device(UCLASS_PCH, 0, &dev); + if (ret) + return ret; + if (cros_ec_board_init()) return -1; |