mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-24 21:54:01 +00:00
x86: cros_ec: Enable cros_ec for link
Add defines to enable the Chrome OS EC interface and set it up on init. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
f1269925f9
commit
14db950945
3 changed files with 22 additions and 1 deletions
|
@ -12,4 +12,4 @@
|
|||
# SPDX-License-Identifier: GPL-2.0+
|
||||
#
|
||||
|
||||
obj-y += coreboot_start.o
|
||||
obj-y += coreboot_start.o coreboot.o
|
||||
|
|
16
board/chromebook-x86/coreboot/coreboot.c
Normal file
16
board/chromebook-x86/coreboot/coreboot.c
Normal file
|
@ -0,0 +1,16 @@
|
|||
/*
|
||||
* Copyright (C) 2013 Google, Inc
|
||||
*
|
||||
* SPDX-License-Identifier: GPL-2.0+
|
||||
*/
|
||||
|
||||
#include <common.h>
|
||||
#include <cros_ec.h>
|
||||
|
||||
int arch_early_init_r(void)
|
||||
{
|
||||
if (cros_ec_board_init())
|
||||
return -1;
|
||||
|
||||
return 0;
|
||||
}
|
|
@ -283,6 +283,11 @@
|
|||
*/
|
||||
#define CONFIG_PCI
|
||||
|
||||
#define CONFIG_CROS_EC
|
||||
#define CONFIG_CROS_EC_LPC
|
||||
#define CONFIG_CMD_CROS_EC
|
||||
#define CONFIG_ARCH_EARLY_INIT_R
|
||||
|
||||
/*-----------------------------------------------------------------------
|
||||
* USB configuration
|
||||
*/
|
||||
|
|
Loading…
Reference in a new issue