qemu-arm.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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_SYS_SDRAM_BASE 0x40000000
  10. /* The DTB generated by QEMU is placed at start of RAM, stay away from there */
  11. #define CONFIG_SYS_INIT_SP_ADDR (CONFIG_SYS_SDRAM_BASE + SZ_2M)
  12. #define CONFIG_SYS_LOAD_ADDR (CONFIG_SYS_SDRAM_BASE + SZ_2M)
  13. #define CONFIG_SYS_MALLOC_LEN SZ_16M
  14. /* For timer, QEMU emulates an ARMv7/ARMv8 architected timer */
  15. #define CONFIG_SYS_HZ 1000
  16. /* Environment options */
  17. #define BOOT_TARGET_DEVICES(func) \
  18. func(USB, usb, 0) \
  19. func(SCSI, scsi, 0) \
  20. func(VIRTIO, virtio, 0) \
  21. func(DHCP, dhcp, na)
  22. #include <config_distro_bootcmd.h>
  23. #define CONFIG_EXTRA_ENV_SETTINGS \
  24. "fdt_high=0xffffffff\0" \
  25. "initrd_high=0xffffffff\0" \
  26. "fdt_addr=0x40000000\0" \
  27. "scriptaddr=0x40200000\0" \
  28. "pxefile_addr_r=0x40300000\0" \
  29. "kernel_addr_r=0x40400000\0" \
  30. "ramdisk_addr_r=0x44000000\0" \
  31. BOOTENV
  32. #define CONFIG_SYS_CBSIZE 512
  33. #define CONFIG_SYS_MONITOR_BASE CONFIG_SYS_TEXT_BASE
  34. #ifdef CONFIG_TFABOOT
  35. #define CONFIG_SYS_FLASH_BASE 0x4000000
  36. #define CONFIG_SYS_MAX_FLASH_BANKS 1
  37. #else
  38. #define CONFIG_SYS_FLASH_BASE 0x0
  39. #define CONFIG_SYS_MAX_FLASH_BANKS 2
  40. #endif
  41. #define CONFIG_SYS_MAX_FLASH_SECT 256 /* Sector: 256K, Bank: 64M */
  42. #endif /* __CONFIG_H */