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 | |
parent | a219daeafef4df1b219db68c80116d82113c82b2 (diff) | |
download | u-boot-801f4f1bbc5ae838cdd50df09895dc275726d23a.zip u-boot-801f4f1bbc5ae838cdd50df09895dc275726d23a.tar.gz u-boot-801f4f1bbc5ae838cdd50df09895dc275726d23a.tar.bz2 |
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')
-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 9978e92..8c04cb8 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; |