mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-17 12:41:32 +00:00
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>
This commit is contained in:
parent
ade8127a79
commit
48a223e4ba
1 changed files with 2 additions and 0 deletions
|
@ -10,8 +10,10 @@
|
|||
|
||||
int arch_early_init_r(void)
|
||||
{
|
||||
#ifdef CONFIG_CROS_EC
|
||||
if (cros_ec_board_init())
|
||||
return -1;
|
||||
#endif
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue