mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-09-04 20:03:20 +09:00
![Bin Meng](/assets/img/avatar_default.png)
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>
25 lines
341 B
C
25 lines
341 B
C
/*
|
|
* Copyright (C) 2013 Google, Inc
|
|
*
|
|
* SPDX-License-Identifier: GPL-2.0+
|
|
*/
|
|
|
|
#include <common.h>
|
|
#include <cros_ec.h>
|
|
#include <asm/gpio.h>
|
|
|
|
int arch_early_init_r(void)
|
|
{
|
|
#ifdef CONFIG_CROS_EC
|
|
if (cros_ec_board_init())
|
|
return -1;
|
|
#endif
|
|
|
|
return 0;
|
|
}
|
|
|
|
void setup_pch_gpios(u16 gpiobase, const struct pch_gpio_map *gpio)
|
|
{
|
|
return;
|
|
}
|