<p>Tristan Hsieh has uploaded this change for <strong>review</strong>.</p><p><a href="https://review.coreboot.org/28546">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">google/kukui: Configure EMMC<br><br>Set up EMMC gpios for depthcharge.<br><br>BUG=b:80501386<br>BRANCH=none<br>TEST=Boots correctly on Kukui<br><br>Change-Id: I1e7ee9bfe3a26ed04374e8c74243f48552a1d254<br>Signed-off-by: Tristan Shieh <tristan.shieh@mediatek.com><br>---<br>M src/mainboard/google/kukui/mainboard.c<br>1 file changed, 16 insertions(+), 0 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://review.coreboot.org:29418/coreboot refs/changes/46/28546/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/mainboard/google/kukui/mainboard.c b/src/mainboard/google/kukui/mainboard.c</span><br><span>index 212ae80..2b950d9 100644</span><br><span>--- a/src/mainboard/google/kukui/mainboard.c</span><br><span>+++ b/src/mainboard/google/kukui/mainboard.c</span><br><span>@@ -14,10 +14,26 @@</span><br><span>  */</span><br><span> </span><br><span> #include <device/device.h></span><br><span style="color: hsl(120, 100%, 40%);">+#include <soc/gpio.h></span><br><span> #include <soc/mmu_operations.h></span><br><span> </span><br><span style="color: hsl(120, 100%, 40%);">+static void configure_emmc(void)</span><br><span style="color: hsl(120, 100%, 40%);">+{</span><br><span style="color: hsl(120, 100%, 40%);">+     gpio_t emmc_pin[] = {</span><br><span style="color: hsl(120, 100%, 40%);">+         GPIO(MSDC0_DAT0), GPIO(MSDC0_DAT1),</span><br><span style="color: hsl(120, 100%, 40%);">+           GPIO(MSDC0_DAT2), GPIO(MSDC0_DAT3),</span><br><span style="color: hsl(120, 100%, 40%);">+           GPIO(MSDC0_DAT4), GPIO(MSDC0_DAT5),</span><br><span style="color: hsl(120, 100%, 40%);">+           GPIO(MSDC0_DAT6), GPIO(MSDC0_DAT7),</span><br><span style="color: hsl(120, 100%, 40%);">+           GPIO(MSDC0_CMD), GPIO(MSDC0_RSTB),</span><br><span style="color: hsl(120, 100%, 40%);">+    };</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+  for (size_t i = 0; i < ARRAY_SIZE(emmc_pin); i++)</span><br><span style="color: hsl(120, 100%, 40%);">+          gpio_set_pull(emmc_pin[i], GPIO_PULL_ENABLE, GPIO_PULL_UP);</span><br><span style="color: hsl(120, 100%, 40%);">+}</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span> static void mainboard_init(struct device *dev)</span><br><span> {</span><br><span style="color: hsl(120, 100%, 40%);">+       configure_emmc();</span><br><span> }</span><br><span> </span><br><span> static void mainboard_enable(struct device *dev)</span><br><span></span><br></pre><p>To view, visit <a href="https://review.coreboot.org/28546">change 28546</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://review.coreboot.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://review.coreboot.org/28546"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: coreboot </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>
<div style="display:none"> Gerrit-Change-Id: I1e7ee9bfe3a26ed04374e8c74243f48552a1d254 </div>
<div style="display:none"> Gerrit-Change-Number: 28546 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Tristan Hsieh <tristan.shieh@mediatek.com> </div>