Tristan Hsieh has uploaded this change for review. ( https://review.coreboot.org/28251
Change subject: google/kukui: Init SPI bus for EC ......................................................................
google/kukui: Init SPI bus for EC
Set EC SPI bus config and init SPI bus according to the config.
BUG=b:80501386 BRANCH=none TEST=Boots correctly on Kukui
Change-Id: Id9209b6429417430cfcf7f5a5a1659e7e4bc7866 Signed-off-by: Tristan Shieh tristan.shieh@mediatek.com --- M src/mainboard/google/kukui/Kconfig M src/mainboard/google/kukui/bootblock.c 2 files changed, 5 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/51/28251/1
diff --git a/src/mainboard/google/kukui/Kconfig b/src/mainboard/google/kukui/Kconfig index 6714b44..9e01464 100644 --- a/src/mainboard/google/kukui/Kconfig +++ b/src/mainboard/google/kukui/Kconfig @@ -25,4 +25,8 @@ int default 1
+config EC_GOOGLE_CHROMEEC_SPI_BUS + hex + default 0x2 + endif diff --git a/src/mainboard/google/kukui/bootblock.c b/src/mainboard/google/kukui/bootblock.c index fa51488..a9bad4e 100644 --- a/src/mainboard/google/kukui/bootblock.c +++ b/src/mainboard/google/kukui/bootblock.c @@ -29,5 +29,6 @@ /* Turn on real eMMC. */ gpio_output(BOOTBLOCK_EN_L, 1);
+ mtk_spi_init(CONFIG_EC_GOOGLE_CHROMEEC_SPI_BUS, SPI_PAD0_MASK, 6 * MHz); mtk_spi_init(CONFIG_BOOT_DEVICE_SPI_FLASH_BUS, SPI_PAD0_MASK, 26 * MHz); }