summaryrefslogtreecommitdiffstats
path: root/hw/arm/aspeed.c
diff options
context:
space:
mode:
authorCédric Le Goater2016-09-22 19:13:06 +0200
committerPeter Maydell2016-09-22 19:13:06 +0200
commitc6c7cfb01a00be0553f6694bbe71d45fc5e068c8 (patch)
tree3883b3fe92e2773ad78ba74a0910b33c08bb1944 /hw/arm/aspeed.c
parentaspeed: use error_report instead of LOG_GUEST_ERROR (diff)
downloadqemu-c6c7cfb01a00be0553f6694bbe71d45fc5e068c8.tar.gz
qemu-c6c7cfb01a00be0553f6694bbe71d45fc5e068c8.tar.xz
qemu-c6c7cfb01a00be0553f6694bbe71d45fc5e068c8.zip
aspeed: add a ram_size property to the memory controller
Configure the size of the RAM of the SOC using a property to propagate the value down to the memory controller from the board level. Signed-off-by: Cédric Le Goater <clg@kaod.org> Reviewed-by: Andrew Jeffery <andrew@aj.id.au> Message-id: 1473438177-26079-14-git-send-email-clg@kaod.org Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'hw/arm/aspeed.c')
-rw-r--r--hw/arm/aspeed.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/hw/arm/aspeed.c b/hw/arm/aspeed.c
index 9013d35a67..562bbb2533 100644
--- a/hw/arm/aspeed.c
+++ b/hw/arm/aspeed.c
@@ -113,6 +113,8 @@ static void aspeed_board_init(MachineState *machine,
&bmc->ram);
object_property_add_const_link(OBJECT(&bmc->soc), "ram", OBJECT(&bmc->ram),
&error_abort);
+ object_property_set_int(OBJECT(&bmc->soc), ram_size, "ram-size",
+ &error_abort);
object_property_set_int(OBJECT(&bmc->soc), cfg->hw_strap1, "hw-strap1",
&error_abort);
object_property_set_bool(OBJECT(&bmc->soc), true, "realized",