mb/google/nissa/var/rull: add ssd timing and modify ssd GPIO pins of rtd3
[coreboot2.git] / src / mainboard / emulation / qemu-riscv / Kconfig
blob9b5a6f0dce50986fd00be5d4d110f323052fbb20
1 ## SPDX-License-Identifier: GPL-2.0-only
3 # To execute, do:
4 # qemu-system-riscv64 -M virt -m 1024M -nographic -bios build/coreboot.rom \
5 #                     -drive if=pflash,file=build/coreboot.rom,format=raw
7 if BOARD_EMULATION_QEMU_RISCV_RV64
9 config BOARD_EMULATION_QEMU_RISCV
10         def_bool y
11         select ARCH_RISCV_RV64
12 endif
14 if BOARD_EMULATION_QEMU_RISCV_RV32
16 config BOARD_EMULATION_QEMU_RISCV
17         def_bool y
18         select ARCH_RISCV_RV32
19 endif
21 if BOARD_EMULATION_QEMU_RISCV
23 config BOARD_SPECIFIC_OPTIONS
24         def_bool y
25         select BOARD_ROMSIZE_KB_32768
26         select FLATTENED_DEVICE_TREE
27         select MISSING_BOARD_RESET
28         select DRIVERS_UART_8250MEM
29         select RISCV_HAS_OPENSBI
30         select ARCH_RISCV_S
31         select ARCH_RISCV_U
32         select ARCH_RISCV_PMP
33         select ARCH_BOOTBLOCK_RISCV
34         select ARCH_VERSTAGE_RISCV
35         select ARCH_ROMSTAGE_RISCV
36         select ARCH_RAMSTAGE_RISCV
37         select RISCV_USE_ARCH_TIMER
39 config MEMLAYOUT_LD_FILE
40         string
41         default "src/mainboard/emulation/qemu-riscv/memlayout.ld"
43 config MAINBOARD_DIR
44         default "emulation/qemu-riscv"
46 config MAINBOARD_PART_NUMBER
47         default "QEMU RISCV"
49 config MAX_CPUS
50         int
51         default 1
53 config RISCV_ARCH
54         string
55         default "rv64imafd" if ARCH_RISCV_RV64
56         default "rv32im" if ARCH_RISCV_RV32
58 config RISCV_ABI
59         string
60         default "lp64d" if ARCH_RISCV_RV64
61         default "ilp32" if ARCH_RISCV_RV32
63 config RISCV_CODEMODEL
64         string
65         default "medany" if ARCH_RISCV_RV64
66         default "medany" if ARCH_RISCV_RV32
68 config RISCV_WORKING_HARTID
69         int
70         default 0
72 config OPENSBI_PLATFORM
73         string
74         default "generic"
76 config OPENSBI_TEXT_START
77         hex
78         default 0x80020000
80 endif #  BOARD_EMULATION_QEMU_RISCV