<p>Philipp Hug has uploaded this change for <strong>review</strong>.</p><p><a href="https://review.coreboot.org/28621">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">soc/sifive: move ram_resource to mainboard<br><br>ram_resource is board specific and should be moved there.<br><br>Change-Id: I50bd9aaaae39422e565d8bf205a6365c59299df0<br>Signed-off-by: Philipp Hug <philipp@hug.cx><br>---<br>M src/mainboard/sifive/hifive-unleashed/mainboard.c<br>D src/soc/sifive/fu540/soc.c<br>2 files changed, 5 insertions(+), 23 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://review.coreboot.org:29418/coreboot refs/changes/21/28621/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/mainboard/sifive/hifive-unleashed/mainboard.c b/src/mainboard/sifive/hifive-unleashed/mainboard.c</span><br><span>index e7f7a40..baf44d4 100644</span><br><span>--- a/src/mainboard/sifive/hifive-unleashed/mainboard.c</span><br><span>+++ b/src/mainboard/sifive/hifive-unleashed/mainboard.c</span><br><span>@@ -13,12 +13,14 @@</span><br><span>  * GNU General Public License for more details.</span><br><span>  */</span><br><span> </span><br><span style="color: hsl(0, 100%, 40%);">-#include <device/device.h></span><br><span style="color: hsl(0, 100%, 40%);">-#include <bootblock_common.h></span><br><span style="color: hsl(0, 100%, 40%);">-#include <timestamp.h></span><br><span style="color: hsl(120, 100%, 40%);">+#include <arch/io.h></span><br><span style="color: hsl(120, 100%, 40%);">+#include <console/console.h></span><br><span style="color: hsl(120, 100%, 40%);">+#include <soc/sdram.h></span><br><span style="color: hsl(120, 100%, 40%);">+#include <symbols.h></span><br><span> </span><br><span> static void mainboard_enable(struct device *dev)</span><br><span> {</span><br><span style="color: hsl(120, 100%, 40%);">+  ram_resource(dev, 0, (uintptr_t)_dram/KiB, sdram_size_mb()*KiB);</span><br><span> }</span><br><span> </span><br><span> struct chip_operations mainboard_ops = {</span><br><span>diff --git a/src/soc/sifive/fu540/soc.c b/src/soc/sifive/fu540/soc.c</span><br><span>deleted file mode 100644</span><br><span>index 9405755..0000000</span><br><span>--- a/src/soc/sifive/fu540/soc.c</span><br><span>+++ /dev/null</span><br><span>@@ -1,20 +0,0 @@</span><br><span style="color: hsl(0, 100%, 40%);">-/*</span><br><span style="color: hsl(0, 100%, 40%);">- * This file is part of the coreboot project.</span><br><span style="color: hsl(0, 100%, 40%);">- *</span><br><span style="color: hsl(0, 100%, 40%);">- * Copyright 2018 Philipp Hug <philipp@hug.cx></span><br><span style="color: hsl(0, 100%, 40%);">- *</span><br><span style="color: hsl(0, 100%, 40%);">- * This program is free software; you can redistribute it and/or modify</span><br><span style="color: hsl(0, 100%, 40%);">- * it under the terms of the GNU General Public License as published by</span><br><span style="color: hsl(0, 100%, 40%);">- * the Free Software Foundation; version 2 of the License.</span><br><span style="color: hsl(0, 100%, 40%);">- *</span><br><span style="color: hsl(0, 100%, 40%);">- * This program is distributed in the hope that it will be useful,</span><br><span style="color: hsl(0, 100%, 40%);">- * but WITHOUT ANY WARRANTY; without even the implied warranty of</span><br><span style="color: hsl(0, 100%, 40%);">- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span><br><span style="color: hsl(0, 100%, 40%);">- * GNU General Public License for more details.</span><br><span style="color: hsl(0, 100%, 40%);">- */</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-static void soc_enable(struct device *dev)</span><br><span style="color: hsl(0, 100%, 40%);">-{</span><br><span style="color: hsl(0, 100%, 40%);">- ram_resource(dev, 0, (uintptr_t)_dram/KiB,</span><br><span style="color: hsl(0, 100%, 40%);">-              sdram_size_mb()*KiB);</span><br><span style="color: hsl(0, 100%, 40%);">-}</span><br><span></span><br></pre><p>To view, visit <a href="https://review.coreboot.org/28621">change 28621</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/28621"/><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: I50bd9aaaae39422e565d8bf205a6365c59299df0 </div>
<div style="display:none"> Gerrit-Change-Number: 28621 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Philipp Hug <philipp@hug.cx> </div>