Asami Doi | f795242 | 2019-06-11 16:01:31 +0900 | [diff] [blame] | 1 | # SPDX-License-Identifier: GPL-2.0-or-later |
| 2 | |
| 3 | # Emulation for QEMU 2.8 ARM Virtual Machine (alias of virt-2.8) |
| 4 | # https://wiki.qemu.org/Documentation/Platforms/ARM |
| 5 | |
| 6 | if BOARD_EMULATION_QEMU_AARCH64 |
| 7 | |
| 8 | config BOARD_SPECIFIC_OPTIONS |
| 9 | def_bool y |
| 10 | select ARCH_BOOTBLOCK_ARMV8_64 |
| 11 | select ARCH_VERSTAGE_ARMV8_64 |
| 12 | select ARCH_ROMSTAGE_ARMV8_64 |
| 13 | select ARCH_RAMSTAGE_ARMV8_64 |
| 14 | select ARM64_USE_ARCH_TIMER |
| 15 | select BOARD_ROMSIZE_KB_4096 |
Asami Doi | f795242 | 2019-06-11 16:01:31 +0900 | [diff] [blame] | 16 | select BOOTBLOCK_CUSTOM |
| 17 | select BOOT_DEVICE_NOT_SPI_FLASH |
Asami Doi | f795242 | 2019-06-11 16:01:31 +0900 | [diff] [blame] | 18 | select DRIVERS_UART_PL011 |
| 19 | select HAVE_LINEAR_FRAMEBUFFER |
| 20 | select MAINBOARD_FORCE_NATIVE_VGA_INIT |
| 21 | select MAINBOARD_HAS_NATIVE_VGA_INIT |
| 22 | select MISSING_BOARD_RESET |
Patrick Rudolph | 792fd51 | 2020-01-23 14:10:07 +0100 | [diff] [blame] | 23 | select ARM64_USE_ARM_TRUSTED_FIRMWARE |
Asami Doi | f795242 | 2019-06-11 16:01:31 +0900 | [diff] [blame] | 24 | |
Furquan Shaikh | 46514c2 | 2020-06-11 11:59:07 -0700 | [diff] [blame] | 25 | config MEMLAYOUT_LD_FILE |
| 26 | string |
| 27 | default "src/mainboard/emulation/qemu-aarch64/memlayout.ld" |
| 28 | |
Asami Doi | f795242 | 2019-06-11 16:01:31 +0900 | [diff] [blame] | 29 | config MAINBOARD_DIR |
Patrick Georgi | 0bb8346 | 2019-11-22 20:58:58 +0100 | [diff] [blame] | 30 | default "emulation/qemu-aarch64" |
Asami Doi | f795242 | 2019-06-11 16:01:31 +0900 | [diff] [blame] | 31 | |
| 32 | config MAINBOARD_PART_NUMBER |
Asami Doi | f795242 | 2019-06-11 16:01:31 +0900 | [diff] [blame] | 33 | default "QEMU AArch64" |
| 34 | |
| 35 | config MAX_CPUS |
| 36 | int |
| 37 | default 2 |
| 38 | |
| 39 | config MAINBOARD_VENDOR |
| 40 | string |
| 41 | default "QEMU" |
| 42 | |
| 43 | config DRAM_SIZE_MB |
| 44 | int |
Asami Doi | a5d9e7a | 2019-08-22 14:11:17 +0900 | [diff] [blame] | 45 | default 261120 # The maximum dram size is 255GiB. |
Asami Doi | f795242 | 2019-06-11 16:01:31 +0900 | [diff] [blame] | 46 | |
| 47 | endif # BOARD_EMULATION_QEMU_AARCH64 |