<p><a href="https://review.coreboot.org/c/coreboot/+/30237">View Change</a></p><p>1 comment:</p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0;"><p><a href="https://review.coreboot.org/#/c/30237/1//COMMIT_MSG">Commit Message:</a></p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://review.coreboot.org/#/c/30237/1//COMMIT_MSG@7">Patch Set #1, Line 7:</a> <code style="font-family:monospace,monospace">amd/stoneyridge: Add calls to code to reset eMMC</code></p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;"><p style="white-space: pre-wrap; word-wrap: break-word;">It's soc specific in the sense that the calls are placed in soc specific functions. Otherwise I would probably have to create a device (?) calling the drivers and place them at the appropriate place. The first code has to be after memory is available, but before PCI enumeration. That's a very narrow window that changes from one platform to the next.</p></blockquote><p style="white-space: pre-wrap; word-wrap: break-word;">IIRC, that's chip_operations.init(). On every platform. If you can't add a<br>chip driver to your devicetree (for some reason I don't see). You could use<br>mainboard_ops.init() in the worst case.</p><p style="white-space: pre-wrap; word-wrap: break-word;">Only downside is that this is in ramstage already. But as you haven't provided<br>any actual numbers, it's hard to tell if it would save more time when you do<br>it in romstage. If it turns out that you have to do it in romstage, add a<br>mainboard hook to your romstage main (if there isn't a fitting one yet) and<br>call the eMMC driver from mainboard code.</p><p style="white-space: pre-wrap; word-wrap: break-word;">Btw. who cares that memory is already available?</p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;"><p style="white-space: pre-wrap; word-wrap: break-word;">The second one is easier... after payload is loaded, before control is passed to payload. This don't need to be platform specific.</p></blockquote><p style="white-space: pre-wrap; word-wrap: break-word;">And not needed at all in case of your eMMC driver.</p></li></ul></li></ul><p>To view, visit <a href="https://review.coreboot.org/c/coreboot/+/30237">change 30237</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/c/coreboot/+/30237"/><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-Change-Id: Ic664a4d7936c441fe920e30b89c2ea4452df401b </div>
<div style="display:none"> Gerrit-Change-Number: 30237 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Richard Spiegel <richard.spiegel@silverbackltd.com> </div>
<div style="display:none"> Gerrit-Reviewer: Daniel Kurtz <djkurtz@google.com> </div>
<div style="display:none"> Gerrit-Reviewer: Martin Roth <martinroth@google.com> </div>
<div style="display:none"> Gerrit-Reviewer: Patrick Georgi <pgeorgi@google.com> </div>
<div style="display:none"> Gerrit-Reviewer: Patrick Rudolph <siro@das-labor.org> </div>
<div style="display:none"> Gerrit-Reviewer: Raul Rangel <rrangel@chromium.org> </div>
<div style="display:none"> Gerrit-Reviewer: Richard Spiegel <richard.spiegel@silverbackltd.com> </div>
<div style="display:none"> Gerrit-Reviewer: Simon Glass <sjg@chromium.org> </div>
<div style="display:none"> Gerrit-Reviewer: build bot (Jenkins) <no-reply@coreboot.org> </div>
<div style="display:none"> Gerrit-CC: Nico Huber <nico.h@gmx.de> </div>
<div style="display:none"> Gerrit-Comment-Date: Tue, 18 Dec 2018 16:30:25 +0000 </div>
<div style="display:none"> Gerrit-HasComments: Yes </div>
<div style="display:none"> Gerrit-Has-Labels: No </div>
<div style="display:none"> Comment-In-Reply-To: Richard Spiegel <richard.spiegel@silverbackltd.com> </div>
<div style="display:none"> Comment-In-Reply-To: Nico Huber <nico.h@gmx.de> </div>
<div style="display:none"> Gerrit-MessageType: comment </div>