summaryrefslogtreecommitdiff
path: root/board
diff options
context:
space:
mode:
authorTom Rini <trini@ti.com>2014-10-23 06:54:03 -0400
committerTom Rini <trini@ti.com>2014-10-23 06:54:03 -0400
commitdee8abcd80d0981f7a1c2bb5d1f2e9313fddf189 (patch)
tree9af5ad1bc214ec2b4e2b7d48cc4a407cba5fb804 /board
parent21109577635a871d038cfd53dd75e264d0e636bf (diff)
parent8104f546296a8e1fc1dd6129041e22f508b314f9 (diff)
downloadu-boot-imx-dee8abcd80d0981f7a1c2bb5d1f2e9313fddf189.zip
u-boot-imx-dee8abcd80d0981f7a1c2bb5d1f2e9313fddf189.tar.gz
u-boot-imx-dee8abcd80d0981f7a1c2bb5d1f2e9313fddf189.tar.bz2
Merge git://git.denx.de/u-boot-x86
Diffstat (limited to 'board')
-rw-r--r--board/chromebook-x86/coreboot/Makefile2
-rw-r--r--board/chromebook-x86/coreboot/coreboot.c16
2 files changed, 17 insertions, 1 deletions
diff --git a/board/chromebook-x86/coreboot/Makefile b/board/chromebook-x86/coreboot/Makefile
index 4f2ac89..27ebe78 100644
--- a/board/chromebook-x86/coreboot/Makefile
+++ b/board/chromebook-x86/coreboot/Makefile
@@ -12,4 +12,4 @@
# SPDX-License-Identifier: GPL-2.0+
#
-obj-y += coreboot_start.o
+obj-y += coreboot_start.o coreboot.o
diff --git a/board/chromebook-x86/coreboot/coreboot.c b/board/chromebook-x86/coreboot/coreboot.c
new file mode 100644
index 0000000..0240c34
--- /dev/null
+++ b/board/chromebook-x86/coreboot/coreboot.c
@@ -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;
+}