[coreboot-gerrit] Change in coreboot[master]: google/kukui: Init SPI bus for EC

Tristan Hsieh (Code Review) gerrit at coreboot.org
Tue Aug 21 07:52:00 CEST 2018


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 at 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);
 }

-- 
To view, visit https://review.coreboot.org/28251
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings

Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: Id9209b6429417430cfcf7f5a5a1659e7e4bc7866
Gerrit-Change-Number: 28251
Gerrit-PatchSet: 1
Gerrit-Owner: Tristan Hsieh <tristan.shieh at mediatek.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.coreboot.org/pipermail/coreboot-gerrit/attachments/20180821/61fa537c/attachment.html>


More information about the coreboot-gerrit mailing list