summaryrefslogtreecommitdiff
path: root/src/mainboard/sifive/hifive-unleashed/mainboard.c
blob: 90090d0f729b9f27157338a6ac0e3d9a8331d3c9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* SPDX-License-Identifier: GPL-2.0-only */

#include <device/device.h>
#include <soc/sdram.h>
#include <symbols.h>

static void mainboard_enable(struct device *dev)
{
	ram_range(dev, 0, (uintptr_t)_dram, sdram_size_mb());
}

struct chip_operations mainboard_ops = {
	.enable_dev = mainboard_enable,
};