summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBin Meng <bmeng.cn@gmail.com>2015-01-06 22:14:22 +0800
committerSimon Glass <sjg@chromium.org>2015-01-13 07:25:04 -0800
commit48a223e4ba0a7fec5940cccf7950b656e4f7cbed (patch)
tree921034a84f103f086f6cdfe6dc75721c75aee7a6
parentade8127a7929c6394908e7debe89e297202b7efa (diff)
downloadu-boot-imx-48a223e4ba0a7fec5940cccf7950b656e4f7cbed.zip
u-boot-imx-48a223e4ba0a7fec5940cccf7950b656e4f7cbed.tar.gz
u-boot-imx-48a223e4ba0a7fec5940cccf7950b656e4f7cbed.tar.bz2
x86: coreboot: Wrap cros_ec initialization
cros_ec_board_init() should be called only when CONFIG_CROS_EC is enabled. Signed-off-by: Bin Meng <bmeng.cn@gmail.com> Acked-by: Simon Glass <sjg@chromium.org>
-rw-r--r--board/coreboot/coreboot/coreboot.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/board/coreboot/coreboot/coreboot.c b/board/coreboot/coreboot/coreboot.c
index 154faf6..e076ea6 100644
--- a/board/coreboot/coreboot/coreboot.c
+++ b/board/coreboot/coreboot/coreboot.c
@@ -10,8 +10,10 @@
int arch_early_init_r(void)
{
+#ifdef CONFIG_CROS_EC
if (cros_ec_board_init())
return -1;
+#endif
return 0;
}