1 /* SPDX-License-Identifier: GPL-2.0-only */
3 #include <console/console.h>
4 #include <device/device.h>
8 static void mainboard_enable(struct device
*dev
)
10 size_t dram_mb_detected
;
13 die("No dev0; die\n");
16 dram_mb_detected
= probe_ramsize((uintptr_t)_dram
, CONFIG_DRAM_SIZE_MB
);
17 ram_range(dev
, 0, (uintptr_t)_dram
, dram_mb_detected
* MiB
);
20 struct chip_operations mainboard_ops
= {
21 .enable_dev
= mainboard_enable
,