blob: d8c57e6bb05f16a2a52b35178f9751ddef775c5f [file] [log] [blame]
Bin Meng510e3792018-09-26 06:55:21 -07001if TARGET_QEMU_VIRT
2
3config SYS_BOARD
4 default "qemu-riscv"
5
6config SYS_VENDOR
7 default "emulation"
8
9config SYS_CPU
Anup Patelfdff1f92019-02-25 08:14:10 +000010 default "generic"
Bin Meng510e3792018-09-26 06:55:21 -070011
12config SYS_CONFIG_NAME
13 default "qemu-riscv"
14
15config SYS_TEXT_BASE
Lukas Auere456a812019-08-21 21:14:49 +020016 default 0x81200000 if SPL
Anup Patelef8c3d32018-12-03 10:57:41 +053017 default 0x80000000 if !RISCV_SMODE
Anup Patel8aa278d2019-04-11 06:52:12 +000018 default 0x80200000 if RISCV_SMODE && ARCH_RV64I
19 default 0x80400000 if RISCV_SMODE && ARCH_RV32I
Bin Meng510e3792018-09-26 06:55:21 -070020
Lukas Auere456a812019-08-21 21:14:49 +020021config SPL_TEXT_BASE
22 default 0x80000000
23
24config SPL_OPENSBI_LOAD_ADDR
Bin Meng44016bc2019-08-07 23:04:41 -070025 hex
Lukas Auere456a812019-08-21 21:14:49 +020026 default 0x81000000
27
Bin Meng510e3792018-09-26 06:55:21 -070028config BOARD_SPECIFIC_OPTIONS # dummy
29 def_bool y
Anup Patelfdff1f92019-02-25 08:14:10 +000030 select GENERIC_RISCV
Lukas Auere456a812019-08-21 21:14:49 +020031 select SUPPORT_SPL
Heinrich Schuchardt2873ca22020-11-04 12:49:01 +010032 imply AHCI
Heinrich Schuchardt19dd2742020-11-04 12:49:00 +010033 imply SMP
34 imply BOARD_LATE_INIT
Heinrich Schuchardt2873ca22020-11-04 12:49:01 +010035 imply PCI_INIT_R
Heinrich Schuchardt19dd2742020-11-04 12:49:00 +010036 imply SPL_RAM_SUPPORT
37 imply SPL_RAM_DEVICE
38 imply CMD_PCI
39 imply CMD_POWEROFF
Heinrich Schuchardt22e324c2022-03-23 22:46:43 +010040 imply CMD_SBI
Heinrich Schuchardt2873ca22020-11-04 12:49:01 +010041 imply CMD_SCSI
Bin Meng440d9a42018-10-15 02:21:14 -070042 imply CMD_PING
Bin Meng440d9a42018-10-15 02:21:14 -070043 imply CMD_EXT2
44 imply CMD_EXT4
45 imply CMD_FAT
Heinrich Schuchardt19dd2742020-11-04 12:49:00 +010046 imply CMD_FS_GENERIC
47 imply DOS_PARTITION
48 imply ISO_PARTITION
49 imply EFI_PARTITION
Heinrich Schuchardt2873ca22020-11-04 12:49:01 +010050 imply SCSI_AHCI
51 imply AHCI_PCI
Heinrich Schuchardt19dd2742020-11-04 12:49:00 +010052 imply E1000
53 imply NVME
Bin Mengcd6b6192019-05-15 08:42:58 -070054 imply PCI
Bin Mengcd6b6192019-05-15 08:42:58 -070055 imply PCIE_ECAM_GENERIC
Heinrich Schuchardt2873ca22020-11-04 12:49:01 +010056 imply SCSI
57 imply DM_SCSI
Heinrich Schuchardt19dd2742020-11-04 12:49:00 +010058 imply SYS_NS16550
59 imply SIFIVE_SERIAL
Anup Patelbe7ce1a2022-01-27 11:41:08 +053060 imply HTIF_CONSOLE if 64BIT
Bin Menga0cc38a2020-06-22 22:29:45 -070061 imply SYSRESET
Bin Menga0cc38a2020-06-22 22:29:45 -070062 imply SYSRESET_CMD_POWEROFF
Heinrich Schuchardt19dd2742020-11-04 12:49:00 +010063 imply SYSRESET_SYSCON
64 imply VIRTIO_MMIO
65 imply VIRTIO_PCI
66 imply VIRTIO_NET
67 imply VIRTIO_BLK
Bin Mengd2486272021-08-07 13:00:02 +080068 imply MTD_NOR_FLASH
69 imply CFI_FLASH
Simon Glass239d22c2021-12-16 20:59:36 -070070 imply OF_HAS_PRIOR_STAGE
Bin Meng510e3792018-09-26 06:55:21 -070071
72endif