qemu-arm.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. /* SPDX-License-Identifier: GPL-2.0+ */
  2. /*
  3. * Copyright (c) 2017 Tuomas Tynkkynen
  4. */
  5. #ifndef __CONFIG_H
  6. #define __CONFIG_H
  7. #include <linux/sizes.h>
  8. /* Physical memory map */
  9. #define CONFIG_NR_DRAM_BANKS 1
  10. #define CONFIG_SYS_SDRAM_BASE 0x40000000
  11. /* The DTB generated by QEMU is placed at start of RAM, stay away from there */
  12. #define CONFIG_SYS_INIT_SP_ADDR (CONFIG_SYS_SDRAM_BASE + SZ_2M)
  13. #define CONFIG_SYS_LOAD_ADDR (CONFIG_SYS_SDRAM_BASE + SZ_2M)
  14. #define CONFIG_SYS_MALLOC_LEN SZ_16M
  15. /* For timer, QEMU emulates an ARMv7/ARMv8 architected timer */
  16. #define CONFIG_SYS_HZ 1000
  17. /* For block devices, QEMU emulates an ICH9 AHCI controller over PCI */
  18. #define CONFIG_SYS_SCSI_MAX_SCSI_ID 6
  19. /* QEMU emulates the ARM AMBA PL031 RTC */
  20. #define CONFIG_SYS_RTC_PL031_BASE 0x09010000
  21. /* Environment options */
  22. #define CONFIG_ENV_SIZE SZ_64K
  23. #define BOOT_TARGET_DEVICES(func) \
  24. func(SCSI, scsi, 0)
  25. #include <config_distro_bootcmd.h>
  26. #define CONFIG_PREBOOT "pci enum"
  27. #define CONFIG_EXTRA_ENV_SETTINGS \
  28. "fdt_high=0xffffffff\0" \
  29. "initrd_high=0xffffffff\0" \
  30. "fdt_addr=0x40000000\0" \
  31. "scriptaddr=0x40200000\0" \
  32. "pxefile_addr_r=0x40300000\0" \
  33. "kernel_addr_r=0x40400000\0" \
  34. "ramdisk_addr_r=0x44000000\0" \
  35. BOOTENV
  36. #define CONFIG_SYS_CBSIZE 512
  37. #endif /* __CONFIG_H */