aspeed/smc: handle dummy bytes when doing fast reads in command mode
commitac2810defa9d4ba856adbaa9c899defecd8585de
authorCédric Le Goater <clg@kaod.org>
Fri, 27 Jan 2017 15:20:20 +0000 (27 15:20 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Fri, 27 Jan 2017 15:20:20 +0000 (27 15:20 +0000)
tree53c5682b1eafe50134b2049345a35da44e22982c
parent8a26d88507b51b7cc5dc40732e51ccc135fec0f6
aspeed/smc: handle dummy bytes when doing fast reads in command mode

When doing fast read, a certain amount of dummy bytes should be sent
before the read. This number is configurable in the controler CE0
Control Register and needs to be modeled using fake transfers to the
flash module.

This only supports command mode. User mode requires more work and a
possible extension of the m25p80 device model.

Signed-off-by: Cédric Le Goater <clg@kaod.org>
Acked-by: Marcin Krzemiński <mar.krzeminski@gmail.com>
Message-id: 1484751701-2646-1-git-send-email-clg@kaod.org
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/ssi/aspeed_smc.c