aspeed/smc: Add support for DMAs
commitc4e1f0b48322a9bc98c37f8413553cb6131daafe
authorCédric Le Goater <clg@kaod.org>
Wed, 4 Sep 2019 07:05:01 +0000 (4 09:05 +0200)
committerPeter Maydell <peter.maydell@linaro.org>
Fri, 13 Sep 2019 15:05:01 +0000 (13 16:05 +0100)
tree20da26dc3f7afd9678620282d69f2c736f7de00d
parent811a5b1d6c2192cb9092040231dab173758bcca7
aspeed/smc: Add support for DMAs

The FMC controller on the Aspeed SoCs support DMA to access the flash
modules. It can operate in a normal mode, to copy to or from the flash
module mapping window, or in a checksum calculation mode, to evaluate
the best clock settings for reads.

The model introduces two custom address spaces for DMAs: one for the
AHB window of the FMC flash devices and one for the DRAM. The latter
is populated using a "dram" link set from the machine with the RAM
container region.

Signed-off-by: Cédric Le Goater <clg@kaod.org>
Acked-by: Joel Stanley <joel@jms.id.au>
Message-id: 20190904070506.1052-6-clg@kaod.org
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/arm/aspeed.c
hw/arm/aspeed_soc.c
hw/ssi/aspeed_smc.c
include/hw/ssi/aspeed_smc.h