]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
x86: chromebook_link: Enable the Chrome OS EC
authorSimon Glass <sjg@chromium.org>
Sat, 15 Nov 2014 03:56:45 +0000 (20:56 -0700)
committerSimon Glass <sjg@chromium.org>
Tue, 25 Nov 2014 14:11:17 +0000 (07:11 -0700)
Enable the Chrome OS EC so that it can be used from U-Boot.

Signed-off-by: Simon Glass <sjg@chromium.org>
board/google/chromebook_link/link.c
include/configs/chromebook_link.h

index 0a1ae6180f40ac115716ba9985d4f0a105a8365e..1822237dd8611c82e2c9fd7193afacf3cafef69b 100644 (file)
@@ -5,10 +5,14 @@
  */
 
 #include <common.h>
+#include <cros_ec.h>
 #include <asm/gpio.h>
 
 int arch_early_init_r(void)
 {
+       if (cros_ec_board_init())
+               return -1;
+
        return 0;
 }
 
index 48ae81eabbc13b0ae14df0b656411001c99c7011..645b31c2e28d618a22460e29b3c6515731646ad9 100644 (file)
 #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"