From: "Cédric Le Goater" <clg@kaod.org>
To: Peter Maydell <peter.maydell@linaro.org>
Cc: "Peter Crosthwaite" <crosthwaite.peter@gmail.com>,
qemu-arm@nongnu.org, qemu-devel@nongnu.org,
"Cédric Le Goater" <clg@kaod.org>
Subject: [Qemu-devel] [PATCH 2/4] aspeed: remove useless comment on controller segment size
Date: Thu, 9 Feb 2017 14:47:36 +0100 [thread overview]
Message-ID: <1486648058-520-3-git-send-email-clg@kaod.org> (raw)
In-Reply-To: <1486648058-520-1-git-send-email-clg@kaod.org>
The flash devices used for the FMC controller (BMC firmware) are well
defined for each Aspeed machine and are all smaller than the default
mapping window size, at least for CE0 which is the chip the SoC boots
from.
Signed-off-by: Cédric Le Goater <clg@kaod.org>
---
hw/arm/aspeed.c | 8 +++-----
1 file changed, 3 insertions(+), 5 deletions(-)
diff --git a/hw/arm/aspeed.c b/hw/arm/aspeed.c
index ac9cbd66b72a..283c03881493 100644
--- a/hw/arm/aspeed.c
+++ b/hw/arm/aspeed.c
@@ -148,10 +148,6 @@ static void aspeed_board_init_flashes(AspeedSMCState *s, const char *flashtype,
DriveInfo *dinfo = drive_get_next(IF_MTD);
qemu_irq cs_line;
- /*
- * FIXME: check that we are not using a flash module exceeding
- * the controller segment size
- */
fl->flash = ssi_create_slave_no_init(s->spi, flashtype);
if (dinfo) {
qdev_prop_set_drive(fl->flash, "drive", blk_by_legacy_dinfo(dinfo),
@@ -210,7 +206,9 @@ static void aspeed_board_init(MachineState *machine,
/*
* create a ROM region using the default mapping window size of
- * the flash module.
+ * the flash module. The window size is 64MB for the AST2400
+ * SoC and 128MB for the AST2500 SoC, which is twice as big as
+ * needed by the flash modules of the Aspeed machines.
*/
memory_region_init_rom(boot_rom, OBJECT(bmc), "aspeed.boot_rom",
fl->size, &error_abort);
--
2.7.4
next prev parent reply other threads:[~2017-02-09 13:49 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-02-09 13:47 [Qemu-devel] [PATCH 0/4] aspeed: miscellaneous small fixes Cédric Le Goater
2017-02-09 13:47 ` [Qemu-devel] [PATCH 1/4] aspeed: check for negative values returned by blk_getlength() Cédric Le Goater
2017-02-09 13:47 ` Cédric Le Goater [this message]
2017-02-09 21:47 ` [Qemu-devel] [PATCH 2/4] aspeed: remove useless comment on controller segment size Philippe Mathieu-Daudé
2017-02-09 13:47 ` [Qemu-devel] [PATCH 3/4] aspeed/smc: handle dummies only in fast read mode Cédric Le Goater
2017-02-09 13:47 ` [Qemu-devel] [PATCH 4/4] aspeed/smc: use a modulo to check segment limits Cédric Le Goater
2017-02-09 21:49 ` [Qemu-devel] [Qemu-arm] " Philippe Mathieu-Daudé
2017-02-10 15:14 ` [Qemu-devel] [PATCH 0/4] aspeed: miscellaneous small fixes Peter Maydell
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1486648058-520-3-git-send-email-clg@kaod.org \
--to=clg@kaod.org \
--cc=crosthwaite.peter@gmail.com \
--cc=peter.maydell@linaro.org \
--cc=qemu-arm@nongnu.org \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).