blob: 1928d6dda0caa07bf092541ca52d5d53eddd8a46 [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
25 default 0x81000000
26
Bin Meng510e3792018-09-26 06:55:21 -070027config BOARD_SPECIFIC_OPTIONS # dummy
28 def_bool y
Anup Patelfdff1f92019-02-25 08:14:10 +000029 select GENERIC_RISCV
Lukas Auere456a812019-08-21 21:14:49 +020030 select SUPPORT_SPL
Bin Meng510e3792018-09-26 06:55:21 -070031 imply SYS_NS16550
Bin Meng3c5196d2018-10-15 02:21:13 -070032 imply VIRTIO_MMIO
33 imply VIRTIO_NET
34 imply VIRTIO_BLK
David Abdurachmanov1493b142019-07-03 15:50:44 +030035 imply VIRTIO_PCI
Bin Meng440d9a42018-10-15 02:21:14 -070036 imply CMD_PING
37 imply CMD_FS_GENERIC
38 imply DOS_PARTITION
39 imply EFI_PARTITION
40 imply ISO_PARTITION
41 imply CMD_EXT2
42 imply CMD_EXT4
43 imply CMD_FAT
Lukas Auer66ffe572018-11-22 11:26:36 +010044 imply BOARD_LATE_INIT
Lukas Auer897206c2018-11-22 11:26:37 +010045 imply OF_BOARD_SETUP
Anup Patel9acaf602018-12-15 11:35:16 +053046 imply SIFIVE_SERIAL
Lukas Auerd0a8fd32019-03-17 19:28:42 +010047 imply SMP
Bin Mengcd6b6192019-05-15 08:42:58 -070048 imply PCI
49 imply DM_PCI
50 imply PCIE_ECAM_GENERIC
51 imply CMD_PCI
Bin Menge64db0d2019-05-15 08:42:59 -070052 imply E1000
53 imply NVME
Lukas Auere456a812019-08-21 21:14:49 +020054 imply SPL_RAM_SUPPORT
55 imply SPL_RAM_DEVICE
Bin Meng510e3792018-09-26 06:55:21 -070056
57endif