projects
/
oweals
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ade8127
)
x86: coreboot: Wrap cros_ec initialization
author
Bin Meng
<bmeng.cn@gmail.com>
Tue, 6 Jan 2015 14:14:22 +0000
(22:14 +0800)
committer
Simon Glass
<sjg@chromium.org>
Tue, 13 Jan 2015 15:25:04 +0000
(07:25 -0800)
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>
board/coreboot/coreboot/coreboot.c
patch
|
blob
|
history
diff --git
a/board/coreboot/coreboot/coreboot.c
b/board/coreboot/coreboot/coreboot.c
index 154faf62393e56ebab70d2ca9f8bcd2823d639a9..e076ea69cfa159d5a378bf8f1b1dfc20f1dca8e0 100644
(file)
--- 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;
}