aspeed: add support for the SMC segment registers
commita03cb1daf1a4e6ccce8632e13373eef8c4f9cba4
authorCédric Le Goater <clg@kaod.org>
Mon, 17 Oct 2016 18:22:17 +0000 (17 19:22 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Mon, 17 Oct 2016 18:22:17 +0000 (17 19:22 +0100)
tree6dabeaa8c2d072321f1a8378b3fabb2ba2158333
parent2da95fd88b87bd90e39caeaf94943023b85dbe93
aspeed: add support for the SMC segment registers

The SMC controller on the Aspeed SoC has a set of registers to
configure the mapping of each flash module in the SoC address
space. Writing to these registers triggers a remap of the memory
region and the spec requires a certain number of checks before doing
so.

Signed-off-by: Cédric Le Goater <clg@kaod.org>
Reviewed-by: Andrew Jeffery <andrew@aj.id.au>
Message-id: 1474977462-28032-7-git-send-email-clg@kaod.org
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/ssi/aspeed_smc.c