hw/dma: Implement a Xilinx CSU DMA model
commit35593573b25f8774ce16be8a7d703b7740964e81
authorXuzhou Cheng <xuzhou.cheng@windriver.com>
Wed, 3 Mar 2021 13:52:50 +0000 (3 21:52 +0800)
committerPeter Maydell <peter.maydell@linaro.org>
Mon, 8 Mar 2021 17:20:04 +0000 (8 17:20 +0000)
tree59f3e06ff448de3d1cc14e5d4b51de20d9ff24ae
parent80485d88f90777648519ec39eb25f6f5ca28a80b
hw/dma: Implement a Xilinx CSU DMA model

ZynqMP QSPI supports SPI transfer using DMA mode, but currently this
is unimplemented. When QSPI is programmed to use DMA mode, QEMU will
crash. This is observed when testing VxWorks 7.

This adds a Xilinx CSU DMA model and the implementation is based on
https://github.com/Xilinx/qemu/blob/master/hw/dma/csu_stream_dma.c.
The DST part of the model is verified along with ZynqMP GQSPI model.

Signed-off-by: Xuzhou Cheng <xuzhou.cheng@windriver.com>
Signed-off-by: Bin Meng <bin.meng@windriver.com>
Tested-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>
Reviewed-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>
Message-id: 20210303135254.3970-2-bmeng.cn@gmail.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/dma/Kconfig
hw/dma/meson.build
hw/dma/xlnx_csu_dma.c [new file with mode: 0644]
include/hw/dma/xlnx_csu_dma.h [new file with mode: 0644]