aspeed/smc: handle SPI flash Command mode
commitfcdf2c59456fb6d0fdc656cf395b2aa15888b46c
authorCédric Le Goater <clg@kaod.org>
Fri, 20 Jan 2017 11:15:08 +0000 (20 11:15 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Fri, 20 Jan 2017 11:15:08 +0000 (20 11:15 +0000)
tree9bbcefaa2fb303618cb71646a38fa7a34f07d049
parent087b57c993a6158148032a4e6e2ab2ac7285a5f4
aspeed/smc: handle SPI flash Command mode

The Aspeed SMC controllers have a mode (Command mode) in which
accesses to the flash content are no different than doing MMIOs. The
controller generates all the necessary commands to load (or store)
data in memory.

However, accesses are restricted to the segment window assigned the
the flash module by the controller. This window is defined by the
Segment Address Register.

Signed-off-by: Cédric Le Goater <clg@kaod.org>
Reviewed-by: Andrew Jeffery <andrew@aj.id.au>
Message-id: 1483979087-32663-8-git-send-email-clg@kaod.org
[PMM: Deleted now-unused aspeed_smc_is_usermode() function]
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/ssi/aspeed_smc.c
include/hw/ssi/aspeed_smc.h