From 1be16f08f293f619d7259acd245ad5290a75ba96 Mon Sep 17 00:00:00 2001 From: Hung-Te Lin Date: Mon, 23 Jul 2018 21:26:18 +0800 Subject: google/kukui: Enable eMMC in bootblock. On kukui board, the eMMC is routed to EC for boot ROM emulation when loading bootblock, and should be set back to real eMMC as early as possible after bootblock is loaded. BUG=b:80501386 TEST=make; boots and verified BOOTBLOCK_EN_L GPIO is enabled. BRANCH=None Change-Id: Ifefb2e26ed048c38595907cc0875757410129828 Signed-off-by: Hung-Te Lin Reviewed-on: https://review.coreboot.org/27601 Tested-by: build bot (Jenkins) --- src/mainboard/google/kukui/bootblock.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/mainboard/google/kukui') diff --git a/src/mainboard/google/kukui/bootblock.c b/src/mainboard/google/kukui/bootblock.c index 79f20a3a58..d8b5c5a59d 100644 --- a/src/mainboard/google/kukui/bootblock.c +++ b/src/mainboard/google/kukui/bootblock.c @@ -14,9 +14,16 @@ */ #include +#include +#include #include +#define BOOTBLOCK_EN_L (GPIO(KPROW0)) + void bootblock_mainboard_init(void) { + /* Turn on real eMMC. */ + gpio_output(BOOTBLOCK_EN_L, 1); + mtk_spi_init(CONFIG_BOOT_DEVICE_SPI_FLASH_BUS, SPI_PAD0_MASK, 26 * MHz); } -- cgit v1.2.3