diff options
author | Hung-Te Lin <hungte@chromium.org> | 2018-07-23 21:26:18 +0800 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2018-07-30 18:50:09 +0000 |
commit | 1be16f08f293f619d7259acd245ad5290a75ba96 (patch) | |
tree | fc33ca545ad09938685381bb7cfd9d472af3bef8 /src/mainboard/google/kukui | |
parent | 0d3915714c85d7ac22542848c19c53bec1ca2b42 (diff) |
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 <hungte@chromium.org>
Reviewed-on: https://review.coreboot.org/27601
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/mainboard/google/kukui')
-rw-r--r-- | src/mainboard/google/kukui/bootblock.c | 7 |
1 files changed, 7 insertions, 0 deletions
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 <bootblock_common.h> +#include <gpio.h> +#include <soc/gpio.h> #include <soc/spi.h> +#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); } |