mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 15:53:54 -06:00
hw/riscv: sifive_u: Connect a DMA controller
SiFive FU540 SoC integrates a platform DMA controller with 4 DMA channels. This connects the exsiting SiFive PDMA model to the SoC, and adds its device tree data as well. Signed-off-by: Bin Meng <bin.meng@windriver.com> Reviewed-by: Alistair Francis <alistair.francis@wdc.com> Message-Id: <1598924352-89526-17-git-send-email-bmeng.cn@gmail.com> Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
This commit is contained in:
parent
a47ef6e93a
commit
834e027a34
3 changed files with 42 additions and 0 deletions
|
@ -19,6 +19,7 @@
|
|||
#ifndef HW_SIFIVE_U_H
|
||||
#define HW_SIFIVE_U_H
|
||||
|
||||
#include "hw/dma/sifive_pdma.h"
|
||||
#include "hw/net/cadence_gem.h"
|
||||
#include "hw/riscv/riscv_hart.h"
|
||||
#include "hw/riscv/sifive_cpu.h"
|
||||
|
@ -43,6 +44,7 @@ typedef struct SiFiveUSoCState {
|
|||
SiFiveUPRCIState prci;
|
||||
SIFIVEGPIOState gpio;
|
||||
SiFiveUOTPState otp;
|
||||
SiFivePDMAState dma;
|
||||
CadenceGEMState gem;
|
||||
|
||||
uint32_t serial;
|
||||
|
@ -72,6 +74,7 @@ enum {
|
|||
SIFIVE_U_MROM,
|
||||
SIFIVE_U_CLINT,
|
||||
SIFIVE_U_L2CC,
|
||||
SIFIVE_U_PDMA,
|
||||
SIFIVE_U_L2LIM,
|
||||
SIFIVE_U_PLIC,
|
||||
SIFIVE_U_PRCI,
|
||||
|
@ -108,6 +111,14 @@ enum {
|
|||
SIFIVE_U_GPIO_IRQ13 = 20,
|
||||
SIFIVE_U_GPIO_IRQ14 = 21,
|
||||
SIFIVE_U_GPIO_IRQ15 = 22,
|
||||
SIFIVE_U_PDMA_IRQ0 = 23,
|
||||
SIFIVE_U_PDMA_IRQ1 = 24,
|
||||
SIFIVE_U_PDMA_IRQ2 = 25,
|
||||
SIFIVE_U_PDMA_IRQ3 = 26,
|
||||
SIFIVE_U_PDMA_IRQ4 = 27,
|
||||
SIFIVE_U_PDMA_IRQ5 = 28,
|
||||
SIFIVE_U_PDMA_IRQ6 = 29,
|
||||
SIFIVE_U_PDMA_IRQ7 = 30,
|
||||
SIFIVE_U_GEM_IRQ = 0x35
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue