blob: 108e9fdb00a9d037721910d7820f2f715eed9f5a [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
Simon Glass72cc5382022-10-20 18:22:39 -060015config 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
Bin Menge702dea2022-10-17 00:42:06 +080026 default 0x80100000
Lukas Auerdf3f1002019-08-21 21:14:49 +020027
Bin Mengcc7ee032023-07-23 12:40:38 +080028config PRE_CON_BUF_ADDR
29 hex
30 default 0x81000000
31
Bin Meng8a8694d2018-09-26 06:55:21 -070032config BOARD_SPECIFIC_OPTIONS # dummy
33 def_bool y
Anup Patel1240cd62019-02-25 08:14:10 +000034 select GENERIC_RISCV
Lukas Auerdf3f1002019-08-21 21:14:49 +020035 select SUPPORT_SPL
Heinrich Schuchardt60585512020-11-04 12:49:01 +010036 imply AHCI
Heinrich Schuchardtd50b4ef2020-11-04 12:49:00 +010037 imply SMP
38 imply BOARD_LATE_INIT
Heinrich Schuchardt60585512020-11-04 12:49:01 +010039 imply PCI_INIT_R
Heinrich Schuchardtd50b4ef2020-11-04 12:49:00 +010040 imply SPL_RAM_SUPPORT
41 imply SPL_RAM_DEVICE
42 imply CMD_PCI
43 imply CMD_POWEROFF
Heinrich Schuchardt375c1082022-03-23 22:46:43 +010044 imply CMD_SBI
Heinrich Schuchardt60585512020-11-04 12:49:01 +010045 imply CMD_SCSI
Bin Mengf08aa022018-10-15 02:21:14 -070046 imply CMD_PING
Bin Mengf08aa022018-10-15 02:21:14 -070047 imply CMD_EXT2
48 imply CMD_EXT4
49 imply CMD_FAT
Heinrich Schuchardtd50b4ef2020-11-04 12:49:00 +010050 imply CMD_FS_GENERIC
51 imply DOS_PARTITION
52 imply ISO_PARTITION
53 imply EFI_PARTITION
Heinrich Schuchardt60585512020-11-04 12:49:01 +010054 imply SCSI_AHCI
55 imply AHCI_PCI
Heinrich Schuchardtd50b4ef2020-11-04 12:49:00 +010056 imply E1000
57 imply NVME
Bin Mengc5ad8892019-05-15 08:42:58 -070058 imply PCI
Bin Mengc5ad8892019-05-15 08:42:58 -070059 imply PCIE_ECAM_GENERIC
Heinrich Schuchardt30885e42023-07-28 15:54:15 +020060 imply DM_RNG
Heinrich Schuchardt60585512020-11-04 12:49:01 +010061 imply SCSI
Heinrich Schuchardtd50b4ef2020-11-04 12:49:00 +010062 imply SYS_NS16550
63 imply SIFIVE_SERIAL
Anup Patel207f0d32022-01-27 11:41:08 +053064 imply HTIF_CONSOLE if 64BIT
Bin Mengdbe74cd2020-06-22 22:29:45 -070065 imply SYSRESET
Bin Mengdbe74cd2020-06-22 22:29:45 -070066 imply SYSRESET_CMD_POWEROFF
Heinrich Schuchardtd50b4ef2020-11-04 12:49:00 +010067 imply SYSRESET_SYSCON
68 imply VIRTIO_MMIO
69 imply VIRTIO_PCI
70 imply VIRTIO_NET
71 imply VIRTIO_BLK
Bin Meng29d71922021-08-07 13:00:02 +080072 imply MTD_NOR_FLASH
73 imply CFI_FLASH
Simon Glass94886db2021-12-16 20:59:36 -070074 imply OF_HAS_PRIOR_STAGE
Bin Mengcbb84f32023-07-23 12:40:33 +080075 imply VIDEO
76 imply VIDEO_BOCHS
77 imply SYS_WHITE_ON_BLACK
Bin Mengcc7ee032023-07-23 12:40:38 +080078 imply PRE_CONSOLE_BUFFER
Bin Mengf6809fb2023-07-23 12:40:41 +080079 imply USB
80 imply USB_XHCI_HCD
81 imply USB_XHCI_PCI
82 imply USB_KEYBOARD
83 imply CMD_USB
Bin Meng8a8694d2018-09-26 06:55:21 -070084
85endif