mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-07-31 14:23:53 -06:00

Add a basic board with interrupt controller (intc), timer, serial (uartlite), small memory called LMB@0 (128kB) and DDR@0x80000000 (configured via command line eg. -m 2g). This is basic configuration which matches HW generated out of AMD Vivado (design tools). But initial configuration is going beyond what it is configured by default because validation should be done on other configurations too. That's why wire also additional uart16500, axi ethernet(with axi dma). GPIOs, i2c and qspi is also listed for completeness. IRQ map is: (addr) 0 - timer (0x41c00000) 1 - uartlite (0x40600000) 2 - i2c (0x40800000) 3 - qspi (0x44a00000) 4 - uart16550 (0x44a10000) 5 - emaclite (0x40e00000) 6 - timer2 (0x41c10000) 7 - axi emac (0x40c00000) 8 - axi dma (0x41e00000) 9 - axi dma 10 - gpio (0x40000000) 11 - gpio2 (0x40010000) 12 - gpio3 (0x40020000) Signed-off-by: Sai Pavan Boddu <sai.pavan.boddu@amd.com> Signed-off-by: Michal Simek <michal.simek@amd.com> Reviewed-by: Alistair Francis <alistair.francis@wdc.com> Message-ID: <20241125134739.18189-1-sai.pavan.boddu@amd.com> Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
121 lines
2.2 KiB
Text
121 lines
2.2 KiB
Text
config RISCV_IOMMU
|
|
bool
|
|
|
|
config RISCV_NUMA
|
|
bool
|
|
|
|
config IBEX
|
|
bool
|
|
|
|
# RISC-V machines in alphabetical order
|
|
|
|
config MICROCHIP_PFSOC
|
|
bool
|
|
default y
|
|
depends on RISCV64
|
|
select CADENCE_SDHCI
|
|
select CPU_CLUSTER
|
|
select DEVICE_TREE
|
|
select MCHP_PFSOC_DMC
|
|
select MCHP_PFSOC_IOSCB
|
|
select MCHP_PFSOC_MMUART
|
|
select MCHP_PFSOC_SYSREG
|
|
select RISCV_ACLINT
|
|
select SIFIVE_PDMA
|
|
select SIFIVE_PLIC
|
|
select UNIMP
|
|
|
|
config MICROBLAZE_V
|
|
bool
|
|
default y
|
|
depends on RISCV32 || RISCV64
|
|
select XILINX
|
|
select XILINX_AXI
|
|
select XILINX_ETHLITE
|
|
|
|
config OPENTITAN
|
|
bool
|
|
default y
|
|
depends on RISCV32
|
|
select IBEX
|
|
select SIFIVE_PLIC
|
|
select UNIMP
|
|
|
|
config RISCV_VIRT
|
|
bool
|
|
default y
|
|
depends on RISCV32 || RISCV64
|
|
imply PCI_DEVICES
|
|
imply VIRTIO_VGA
|
|
imply TEST_DEVICES
|
|
imply TPM_TIS_SYSBUS
|
|
select DEVICE_TREE
|
|
select RISCV_NUMA
|
|
select GOLDFISH_RTC
|
|
select PCI
|
|
select PCI_EXPRESS_GENERIC_BRIDGE
|
|
select PFLASH_CFI01
|
|
select SERIAL_MM
|
|
select RISCV_ACLINT
|
|
select RISCV_APLIC
|
|
select RISCV_IOMMU
|
|
select RISCV_IMSIC
|
|
select SIFIVE_PLIC
|
|
select SIFIVE_TEST
|
|
select SMBIOS
|
|
select VIRTIO_MMIO
|
|
select FW_CFG_DMA
|
|
select PLATFORM_BUS
|
|
select ACPI
|
|
select ACPI_PCI
|
|
|
|
config SHAKTI_C
|
|
bool
|
|
default y
|
|
depends on RISCV64
|
|
select RISCV_ACLINT
|
|
select SHAKTI_UART
|
|
select SIFIVE_PLIC
|
|
select UNIMP
|
|
|
|
config SIFIVE_E
|
|
bool
|
|
default y
|
|
depends on RISCV32 || RISCV64
|
|
select RISCV_ACLINT
|
|
select SIFIVE_GPIO
|
|
select SIFIVE_PLIC
|
|
select SIFIVE_UART
|
|
select SIFIVE_E_PRCI
|
|
select SIFIVE_E_AON
|
|
select UNIMP
|
|
|
|
config SIFIVE_U
|
|
bool
|
|
default y
|
|
depends on RISCV32 || RISCV64
|
|
select CADENCE
|
|
select CPU_CLUSTER
|
|
select DEVICE_TREE
|
|
select RISCV_ACLINT
|
|
select SIFIVE_GPIO
|
|
select SIFIVE_PDMA
|
|
select SIFIVE_PLIC
|
|
select SIFIVE_SPI
|
|
select SIFIVE_UART
|
|
select SIFIVE_U_OTP
|
|
select SIFIVE_U_PRCI
|
|
select SIFIVE_PWM
|
|
select SSI_M25P80
|
|
select SSI_SD
|
|
select UNIMP
|
|
|
|
config SPIKE
|
|
bool
|
|
default y
|
|
depends on RISCV32 || RISCV64
|
|
select DEVICE_TREE
|
|
select RISCV_NUMA
|
|
select HTIF
|
|
select RISCV_ACLINT
|
|
select SIFIVE_PLIC
|