mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-08 22:24:32 +00:00
a0cc38ab44
This adds syscon reboot and poweroff support to QEMU RISC-V. Signed-off-by: Bin Meng <bin.meng@windriver.com> Reviewed-by: Pragnesh Patel <pragnesh.patel@sifive.com>
61 lines
1.1 KiB
Text
61 lines
1.1 KiB
Text
if TARGET_QEMU_VIRT
|
|
|
|
config SYS_BOARD
|
|
default "qemu-riscv"
|
|
|
|
config SYS_VENDOR
|
|
default "emulation"
|
|
|
|
config SYS_CPU
|
|
default "generic"
|
|
|
|
config SYS_CONFIG_NAME
|
|
default "qemu-riscv"
|
|
|
|
config SYS_TEXT_BASE
|
|
default 0x81200000 if SPL
|
|
default 0x80000000 if !RISCV_SMODE
|
|
default 0x80200000 if RISCV_SMODE && ARCH_RV64I
|
|
default 0x80400000 if RISCV_SMODE && ARCH_RV32I
|
|
|
|
config SPL_TEXT_BASE
|
|
default 0x80000000
|
|
|
|
config SPL_OPENSBI_LOAD_ADDR
|
|
hex
|
|
default 0x81000000
|
|
|
|
config BOARD_SPECIFIC_OPTIONS # dummy
|
|
def_bool y
|
|
select GENERIC_RISCV
|
|
select SUPPORT_SPL
|
|
imply SYS_NS16550
|
|
imply VIRTIO_MMIO
|
|
imply VIRTIO_NET
|
|
imply VIRTIO_BLK
|
|
imply VIRTIO_PCI
|
|
imply CMD_PING
|
|
imply CMD_FS_GENERIC
|
|
imply DOS_PARTITION
|
|
imply EFI_PARTITION
|
|
imply ISO_PARTITION
|
|
imply CMD_EXT2
|
|
imply CMD_EXT4
|
|
imply CMD_FAT
|
|
imply BOARD_LATE_INIT
|
|
imply SIFIVE_SERIAL
|
|
imply SMP
|
|
imply PCI
|
|
imply DM_PCI
|
|
imply PCIE_ECAM_GENERIC
|
|
imply CMD_PCI
|
|
imply E1000
|
|
imply NVME
|
|
imply SPL_RAM_SUPPORT
|
|
imply SPL_RAM_DEVICE
|
|
imply SYSRESET
|
|
imply SYSRESET_SYSCON
|
|
imply CMD_POWEROFF
|
|
imply SYSRESET_CMD_POWEROFF
|
|
|
|
endif
|