diff options
author | Yaroslav Kurlaev <yaroslav.kurlaev@3mdeb.com> | 2021-07-06 22:30:28 +0700 |
---|---|---|
committer | Felix Held <felix-coreboot@felixheld.de> | 2022-02-11 20:16:44 +0000 |
commit | bcbcdf73943d8bc81f2e35c4a67eebcbde716eda (patch) | |
tree | 9958c911919286264c3662bfcb964823b45edc1c /src/mainboard/emulation/qemu-power9/mainboard.c | |
parent | e985d211fb1d975bbb5bee0ed2597c24ee05bd1e (diff) |
src/mainboard/emulation/qemu-power9: add RAM detection
Change-Id: Ie333294c7a311f6d47bdfbd1fc3cec0128cf63e7
Signed-off-by: Yaroslav Kurlaev <yaroslav.kurlaev@3mdeb.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/57081
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Michał Żygowski <michal.zygowski@3mdeb.com>
Diffstat (limited to 'src/mainboard/emulation/qemu-power9/mainboard.c')
-rw-r--r-- | src/mainboard/emulation/qemu-power9/mainboard.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mainboard/emulation/qemu-power9/mainboard.c b/src/mainboard/emulation/qemu-power9/mainboard.c index a1a35f0833..6c178af4ab 100644 --- a/src/mainboard/emulation/qemu-power9/mainboard.c +++ b/src/mainboard/emulation/qemu-power9/mainboard.c @@ -8,6 +8,7 @@ static void mainboard_enable(struct device *dev) { if (!dev) die("No dev0; die\n"); + ram_resource(dev, 0, 0, (unsigned long)cbmem_top() / KiB); } struct chip_operations mainboard_ops = { |