summaryrefslogtreecommitdiff
path: root/src/mainboard
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainboard')
-rw-r--r--src/mainboard/sifive/hifive-unleashed/mainboard.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/mainboard/sifive/hifive-unleashed/mainboard.c b/src/mainboard/sifive/hifive-unleashed/mainboard.c
index e7f7a40bec..baf44d4486 100644
--- a/src/mainboard/sifive/hifive-unleashed/mainboard.c
+++ b/src/mainboard/sifive/hifive-unleashed/mainboard.c
@@ -13,12 +13,14 @@
* GNU General Public License for more details.
*/
-#include <device/device.h>
-#include <bootblock_common.h>
-#include <timestamp.h>
+#include <arch/io.h>
+#include <console/console.h>
+#include <soc/sdram.h>
+#include <symbols.h>
static void mainboard_enable(struct device *dev)
{
+ ram_resource(dev, 0, (uintptr_t)_dram/KiB, sdram_size_mb()*KiB);
}
struct chip_operations mainboard_ops = {