blob: 7ce12018e7af4b9ed86edd46a2ca619b383e5d7f [file] [log] [blame]
Bin Meng8a8694d2018-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 Patel1240cd62019-02-25 08:14:10 +000010 default "generic"
Bin Meng8a8694d2018-09-26 06:55:21 -070011
12config SYS_CONFIG_NAME
13 default "qemu-riscv"
14
15config SYS_TEXT_BASE
Lukas Auerdf3f1002019-08-21 21:14:49 +020016 default 0x81200000 if SPL
Anup Patelea6a7a02018-12-03 10:57:41 +053017 default 0x80000000 if !RISCV_SMODE
Anup Patel3d7cb7b2019-04-11 06:52:12 +000018 default 0x80200000 if RISCV_SMODE && ARCH_RV64I
19 default 0x80400000 if RISCV_SMODE && ARCH_RV32I
Bin Meng8a8694d2018-09-26 06:55:21 -070020
Lukas Auerdf3f1002019-08-21 21:14:49 +020021config SPL_TEXT_BASE
22 default 0x80000000
23
24config SPL_OPENSBI_LOAD_ADDR
Bin Meng99e54e62019-08-07 23:04:41 -070025 hex
Lukas Auerdf3f1002019-08-21 21:14:49 +020026 default 0x81000000
27
Bin Meng8a8694d2018-09-26 06:55:21 -070028config BOARD_SPECIFIC_OPTIONS # dummy
29 def_bool y
Anup Patel1240cd62019-02-25 08:14:10 +000030 select GENERIC_RISCV
Lukas Auerdf3f1002019-08-21 21:14:49 +020031 select SUPPORT_SPL
Bin Meng8a8694d2018-09-26 06:55:21 -070032 imply SYS_NS16550
Bin Meng184eadb2018-10-15 02:21:13 -070033 imply VIRTIO_MMIO
34 imply VIRTIO_NET
35 imply VIRTIO_BLK
David Abdurachmanov86302662019-07-03 15:50:44 +030036 imply VIRTIO_PCI
Bin Mengf08aa022018-10-15 02:21:14 -070037 imply CMD_PING
38 imply CMD_FS_GENERIC
39 imply DOS_PARTITION
40 imply EFI_PARTITION
41 imply ISO_PARTITION
42 imply CMD_EXT2
43 imply CMD_EXT4
44 imply CMD_FAT
Lukas Auer7fcf2122018-11-22 11:26:36 +010045 imply BOARD_LATE_INIT
Lukas Auer74c2f122018-11-22 11:26:37 +010046 imply OF_BOARD_SETUP
Anup Patel9fce0cc2018-12-15 11:35:16 +053047 imply SIFIVE_SERIAL
Lukas Auerf11af612019-03-17 19:28:42 +010048 imply SMP
Bin Mengc5ad8892019-05-15 08:42:58 -070049 imply PCI
50 imply DM_PCI
51 imply PCIE_ECAM_GENERIC
52 imply CMD_PCI
Bin Meng0abfa5e2019-05-15 08:42:59 -070053 imply E1000
54 imply NVME
Lukas Auerdf3f1002019-08-21 21:14:49 +020055 imply SPL_RAM_SUPPORT
56 imply SPL_RAM_DEVICE
Bin Meng8a8694d2018-09-26 06:55:21 -070057
58endif