aspeed/smc: extend tests for Command mode
commit371a3dd2042a935258451270f0dfd13dad728061
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)
tree2c4e57e0a66b6a92878f73fb8182ffba722ec81d
parentbd9f5052007a6507912a02f9e6d8860e1232ca00
aspeed/smc: extend tests for 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.

So add a couple of tests doing direct reads and writes on the AHB bus.

Signed-off-by: Cédric Le Goater <clg@kaod.org>
Reviewed-by: Andrew Jeffery <andrew@aj.id.au>
Message-id: 1483979087-32663-10-git-send-email-clg@kaod.org
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
tests/m25p80-test.c