mirror of
https://xff.cz/git/u-boot/
synced 2025-12-26 09:59:12 +01:00
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;
|
|
}
|