summaryrefslogtreecommitdiff
path: root/src/mainboard/google/oak/bootblock.c
diff options
context:
space:
mode:
authorYidi Lin <yidi.lin@mediatek.com>2015-07-31 17:10:57 +0800
committerPatrick Georgi <pgeorgi@google.com>2015-12-03 14:23:29 +0100
commit65873ca934937b414c65876f83bfb3b269594b80 (patch)
tree03797209a6d04c3ed529d9089409eb91baf902fc /src/mainboard/google/oak/bootblock.c
parent9d48e1732ad857a16fc60e0058894cbe01aca0bf (diff)
downloadcoreboot-65873ca934937b414c65876f83bfb3b269594b80.tar.xz
google/oak: Implement the code which reads GPIOs for ChromeOS.
BUG=none BRANCH=none TEST=emerge-oak corebootk Change-Id: Ic1a0d640cac7fd98acd06d619736303fa449c0a1 Signed-off-by: Patrick Georgi <pgeorgi@chromium.org> Original-Commit-Id: ce465e8cbdf6465c072e476a91a400d78c959218 Original-Change-Id: Iade51db02f45264fdffe387e0563b60e637c0710 Original-Signed-off-by: Yidi Lin <yidi.lin@mediatek.com> Original-Reviewed-on: https://chromium-review.googlesource.com/292674 Original-Reviewed-by: Julius Werner <jwerner@chromium.org> Reviewed-on: https://review.coreboot.org/12606 Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Diffstat (limited to 'src/mainboard/google/oak/bootblock.c')
-rw-r--r--src/mainboard/google/oak/bootblock.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mainboard/google/oak/bootblock.c b/src/mainboard/google/oak/bootblock.c
index 38a777c208..e82ad6ea90 100644
--- a/src/mainboard/google/oak/bootblock.c
+++ b/src/mainboard/google/oak/bootblock.c
@@ -24,6 +24,8 @@
#include <soc/pericfg.h>
#include <soc/pinmux.h>
+#include "gpio.h"
+
static void i2c_set_gpio_pinmux(void)
{
gpio_set_mode(PAD_SDA1, PAD_SDA1_FUNC_SDA1);
@@ -45,4 +47,6 @@ void bootblock_mainboard_init(void)
/* set i2c related gpio */
i2c_set_gpio_pinmux();
+
+ setup_chromeos_gpios();
}