summaryrefslogtreecommitdiff
path: root/src/mainboard/google/gru/bootblock.c
diff options
context:
space:
mode:
authorVadim Bendebury <vbendeb@chromium.org>2016-05-22 16:09:54 -0700
committerMartin Roth <martinroth@google.com>2016-06-08 23:21:55 +0200
commit9ed93cb5d50f94f9c43db2eb29764cd6302b4bb0 (patch)
tree0dc76c952e9ed6269d28bf1ead9666ee6d4f2534 /src/mainboard/google/gru/bootblock.c
parent221fdd8cce708f192a457f39a703e9a968b2f847 (diff)
downloadcoreboot-9ed93cb5d50f94f9c43db2eb29764cd6302b4bb0.tar.xz
gru: kevin: configure board GPIOs
Set board GPIOs as required and add their description into the appropriate section of the coreboot table, to make them available to depthcharge. BRANCH=none BUG=chrome-os-partner:51537 TEST=with the rest of the patches applied it is possible to use keyboard on Gru, which indicates that the EC interrupt GPIO is properly configured. The rest of the pins will be verified later. Change-Id: I5818bfe855f4e7faa2114484a9b7b44c7d469727 Signed-off-by: Martin Roth <martinroth@chromium.org> Original-Commit-Id: e02a05f Original-Change-Id: I82be76bbd3211179e696526a34cc842cb1987e69 Original-Signed-off-by: Vadim Bendebury <vbendeb@chromium.org> Original-Reviewed-on: https://chromium-review.googlesource.com/346631 Reviewed-on: https://review.coreboot.org/15031 Tested-by: build bot (Jenkins) Reviewed-by: Furquan Shaikh <furquan@google.com>
Diffstat (limited to 'src/mainboard/google/gru/bootblock.c')
-rw-r--r--src/mainboard/google/gru/bootblock.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mainboard/google/gru/bootblock.c b/src/mainboard/google/gru/bootblock.c
index 1166d8a842..a048188e0a 100644
--- a/src/mainboard/google/gru/bootblock.c
+++ b/src/mainboard/google/gru/bootblock.c
@@ -21,6 +21,8 @@
#include <soc/spi.h>
#include <console/console.h>
+#include "board.h"
+
void bootblock_mainboard_early_init(void)
{
/* Let gpio2ab io domains works at 1.8V.
@@ -62,4 +64,6 @@ void bootblock_mainboard_init(void)
write32(&rk3399_pmugrf->spi1_csclktx, IOMUX_SPI1_CSCLKTX);
rockchip_spi_init(CONFIG_BOOT_MEDIA_SPI_BUS, 24750*KHz);
+
+ setup_chromeos_gpios();
}