From: Simon Glass Date: Sat, 15 Nov 2014 03:56:45 +0000 (-0700) Subject: x86: chromebook_link: Enable the Chrome OS EC X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=22e131ca00ed42cd7485aa1821dc3051bd762a3e;p=u-boot.git x86: chromebook_link: Enable the Chrome OS EC Enable the Chrome OS EC so that it can be used from U-Boot. Signed-off-by: Simon Glass --- diff --git a/board/google/chromebook_link/link.c b/board/google/chromebook_link/link.c index 0a1ae6180f..1822237dd8 100644 --- a/board/google/chromebook_link/link.c +++ b/board/google/chromebook_link/link.c @@ -5,10 +5,14 @@ */ #include +#include #include int arch_early_init_r(void) { + if (cros_ec_board_init()) + return -1; + return 0; } diff --git a/include/configs/chromebook_link.h b/include/configs/chromebook_link.h index 48ae81eabb..645b31c2e2 100644 --- a/include/configs/chromebook_link.h +++ b/include/configs/chromebook_link.h @@ -62,6 +62,11 @@ #define VIDEO_IO_OFFSET 0 #define CONFIG_X86EMU_RAW_IO +#define CONFIG_CROS_EC +#define CONFIG_CROS_EC_LPC +#define CONFIG_CMD_CROS_EC +#define CONFIG_ARCH_EARLY_INIT_R + #define CONFIG_STD_DEVICES_SETTINGS "stdin=usbkbd,vga,serial\0" \ "stdout=vga,serial\0" \ "stderr=vga,serial\0"