blob: 9538c66e8be599c363a19d87038395178a0fbaee [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
Simon Glass98463902022-10-20 18:22:39 -060015config 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
Bin Mengcb052d72022-10-17 00:42:06 +080026 default 0x80100000
Lukas Auere456a812019-08-21 21:14:49 +020027
Bin Meng608b80b2023-07-23 12:40:38 +080028config PRE_CON_BUF_ADDR
29 hex
30 default 0x81000000
31
Bin Meng510e3792018-09-26 06:55:21 -070032config BOARD_SPECIFIC_OPTIONS # dummy
33 def_bool y
Anup Patelfdff1f92019-02-25 08:14:10 +000034 select GENERIC_RISCV
Lukas Auere456a812019-08-21 21:14:49 +020035 select SUPPORT_SPL
Heinrich Schuchardt91970e82023-12-19 16:04:05 +010036 select QFW if ACPI
37 select QFW_MMIO if QFW
Heinrich Schuchardt2873ca22020-11-04 12:49:01 +010038 imply AHCI
Heinrich Schuchardt19dd2742020-11-04 12:49:00 +010039 imply SMP
40 imply BOARD_LATE_INIT
Heinrich Schuchardt2873ca22020-11-04 12:49:01 +010041 imply PCI_INIT_R
Heinrich Schuchardt19dd2742020-11-04 12:49:00 +010042 imply SPL_RAM_SUPPORT
43 imply SPL_RAM_DEVICE
44 imply CMD_PCI
45 imply CMD_POWEROFF
Heinrich Schuchardt22e324c2022-03-23 22:46:43 +010046 imply CMD_SBI
Heinrich Schuchardt2873ca22020-11-04 12:49:01 +010047 imply CMD_SCSI
Bin Meng440d9a42018-10-15 02:21:14 -070048 imply CMD_PING
Bin Meng440d9a42018-10-15 02:21:14 -070049 imply CMD_EXT2
50 imply CMD_EXT4
51 imply CMD_FAT
Heinrich Schuchardt19dd2742020-11-04 12:49:00 +010052 imply CMD_FS_GENERIC
53 imply DOS_PARTITION
54 imply ISO_PARTITION
55 imply EFI_PARTITION
Heinrich Schuchardt2873ca22020-11-04 12:49:01 +010056 imply SCSI_AHCI
57 imply AHCI_PCI
Heinrich Schuchardt19dd2742020-11-04 12:49:00 +010058 imply E1000
Bin Mengcd6b6192019-05-15 08:42:58 -070059 imply PCI
Heinrich Schuchardt3980baa2023-11-16 11:22:51 +010060 imply NVME_PCI
Bin Mengcd6b6192019-05-15 08:42:58 -070061 imply PCIE_ECAM_GENERIC
Heinrich Schuchardt1b7de4f2023-07-28 15:54:15 +020062 imply DM_RNG
Heinrich Schuchardt21c85672023-12-31 00:53:01 +010063 imply DM_RTC
64 imply RTC_GOLDFISH
Heinrich Schuchardt2873ca22020-11-04 12:49:01 +010065 imply SCSI
Heinrich Schuchardt19dd2742020-11-04 12:49:00 +010066 imply SYS_NS16550
67 imply SIFIVE_SERIAL
Anup Patelbe7ce1a2022-01-27 11:41:08 +053068 imply HTIF_CONSOLE if 64BIT
Bin Menga0cc38a2020-06-22 22:29:45 -070069 imply SYSRESET
Bin Menga0cc38a2020-06-22 22:29:45 -070070 imply SYSRESET_CMD_POWEROFF
Heinrich Schuchardt19dd2742020-11-04 12:49:00 +010071 imply SYSRESET_SYSCON
72 imply VIRTIO_MMIO
73 imply VIRTIO_PCI
74 imply VIRTIO_NET
75 imply VIRTIO_BLK
Bin Mengd2486272021-08-07 13:00:02 +080076 imply MTD_NOR_FLASH
77 imply CFI_FLASH
Simon Glass239d22c2021-12-16 20:59:36 -070078 imply OF_HAS_PRIOR_STAGE
Bin Meng71616162023-07-23 12:40:33 +080079 imply VIDEO
80 imply VIDEO_BOCHS
81 imply SYS_WHITE_ON_BLACK
Bin Meng608b80b2023-07-23 12:40:38 +080082 imply PRE_CONSOLE_BUFFER
Bin Meng02be57c2023-07-23 12:40:41 +080083 imply USB
84 imply USB_XHCI_HCD
85 imply USB_XHCI_PCI
86 imply USB_KEYBOARD
87 imply CMD_USB
Bin Meng3555c922023-10-11 21:15:52 +080088 imply UFS
89 imply UFS_PCI
Bin Meng510e3792018-09-26 06:55:21 -070090
91endif