[coreboot-gerrit] Change in coreboot[master]: google/kukui: Configure EMMC

Tristan Hsieh (Code Review) gerrit at coreboot.org
Mon Sep 10 10:25:33 CEST 2018


Tristan Hsieh has uploaded this change for review. ( https://review.coreboot.org/28546


Change subject: google/kukui: Configure EMMC
......................................................................

google/kukui: Configure EMMC

Set up EMMC gpios for depthcharge.

BUG=b:80501386
BRANCH=none
TEST=Boots correctly on Kukui

Change-Id: I1e7ee9bfe3a26ed04374e8c74243f48552a1d254
Signed-off-by: Tristan Shieh <tristan.shieh at mediatek.com>
---
M src/mainboard/google/kukui/mainboard.c
1 file changed, 16 insertions(+), 0 deletions(-)



  git pull ssh://review.coreboot.org:29418/coreboot refs/changes/46/28546/1

diff --git a/src/mainboard/google/kukui/mainboard.c b/src/mainboard/google/kukui/mainboard.c
index 212ae80..2b950d9 100644
--- a/src/mainboard/google/kukui/mainboard.c
+++ b/src/mainboard/google/kukui/mainboard.c
@@ -14,10 +14,26 @@
  */
 
 #include <device/device.h>
+#include <soc/gpio.h>
 #include <soc/mmu_operations.h>
 
+static void configure_emmc(void)
+{
+	gpio_t emmc_pin[] = {
+		GPIO(MSDC0_DAT0), GPIO(MSDC0_DAT1),
+		GPIO(MSDC0_DAT2), GPIO(MSDC0_DAT3),
+		GPIO(MSDC0_DAT4), GPIO(MSDC0_DAT5),
+		GPIO(MSDC0_DAT6), GPIO(MSDC0_DAT7),
+		GPIO(MSDC0_CMD), GPIO(MSDC0_RSTB),
+	};
+
+	for (size_t i = 0; i < ARRAY_SIZE(emmc_pin); i++)
+		gpio_set_pull(emmc_pin[i], GPIO_PULL_ENABLE, GPIO_PULL_UP);
+}
+
 static void mainboard_init(struct device *dev)
 {
+	configure_emmc();
 }
 
 static void mainboard_enable(struct device *dev)

-- 
To view, visit https://review.coreboot.org/28546
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: I1e7ee9bfe3a26ed04374e8c74243f48552a1d254
Gerrit-Change-Number: 28546
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/20180910/0c274ce2/attachment.html>


More information about the coreboot-gerrit mailing list