synquacer.h 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. /*
  3. * Copyright (C) 2016-2017 Socionext Inc.
  4. */
  5. #ifndef __CONFIG_H
  6. #define __CONFIG_H
  7. /* Timers for fasp(TIMCLK) */
  8. #define CONFIG_SYS_HZ 1000 /* 1 msec */
  9. #define CONFIG_SYS_TIMERBASE 0x31080000 /* AP Timer 1 (ARM-SP804) */
  10. /*
  11. * SDRAM (for initialize)
  12. */
  13. #define CONFIG_SYS_SDRAM_BASE (0x80000000) /* Start address of DDR3 */
  14. #define PHYS_SDRAM_SIZE (0x7c000000) /* Default size (2GB - Secure memory) */
  15. #define CONFIG_VERY_BIG_RAM /* SynQuacer supports up to 64GB */
  16. #define CONFIG_MAX_MEM_MAPPED PHYS_SDRAM_SIZE
  17. #define SQ_DRAMINFO_BASE (0x2e00ffc0) /* DRAM info from TF-A */
  18. /*
  19. * Boot info
  20. */
  21. #define CONFIG_SYS_INIT_SP_ADDR (0xe0000000) /* stack of init proccess */
  22. #define CONFIG_SYS_MALLOC_LEN (0x01000000) /* 16Mbyte size of malloc() */
  23. #define CONFIG_SYS_LOAD_ADDR CONFIG_SYS_SDRAM_BASE /* default kernel load address */
  24. /*
  25. * Hardware drivers support
  26. */
  27. /* RTC */
  28. #define CONFIG_SYS_I2C_RTC_ADDR 0x51
  29. /* Serial (pl011) */
  30. #define UART_CLK (62500000)
  31. #define CONFIG_SERIAL_MULTI
  32. #define CONFIG_PL011_SERIAL
  33. #define CONFIG_PL011_CLOCK UART_CLK
  34. #define CONFIG_PL01x_PORTS {(void *)(0x2a400000)}
  35. #define CONFIG_ENV_OVERWRITE /* ethaddr can be reprogrammed */
  36. /* Support MTD */
  37. #define CONFIG_SYS_MAX_FLASH_BANKS 1
  38. #define CONFIG_SYS_FLASH_BASE (0x08000000)
  39. #define CONFIG_SYS_FLASH_BANKS_LIST {CONFIG_SYS_FLASH_BASE}
  40. #define CONFIG_SYS_MEMTEST_START (CONFIG_SYS_SDRAM_BASE + (512 * 1024))
  41. #define CONFIG_SYS_MEMTEST_END (CONFIG_SYS_SDRAM_BASE + PHYS_SDRAM_SIZE)
  42. #define CONFIG_BAUDRATE 115200
  43. #define CONFIG_SYS_BAUDRATE_TABLE {115200, 19200, 38400, 57600, 9600 }
  44. #define CONFIG_SYS_CBSIZE 1024
  45. #define CONFIG_SYS_MAXARGS 128
  46. #define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE + sizeof(CONFIG_SYS_PROMPT) + 16)
  47. /* Since U-Boot 64bit PCIe support is limited, disable 64bit MMIO support */
  48. /* #define CONFIG_SYS_PCI_64BIT 1 */
  49. #define DEFAULT_DFU_ALT_INFO "dfu_alt_info=" \
  50. "mtd nor1=u-boot.bin raw 200000 100000;" \
  51. "fip.bin raw 180000 78000;" \
  52. "optee.bin raw 500000 100000\0"
  53. /* Distro boot settings */
  54. #ifndef CONFIG_SPL_BUILD
  55. #ifdef CONFIG_CMD_USB
  56. #define BOOT_TARGET_DEVICE_USB(func) func(USB, usb, 0)
  57. #else
  58. #define BOOT_TARGET_DEVICE_USB(func)
  59. #endif
  60. #ifdef CONFIG_CMD_MMC
  61. #define BOOT_TARGET_DEVICE_MMC(func) func(MMC, mmc, 0)
  62. #else
  63. #define BOOT_TARGET_DEVICE_MMC(func)
  64. #endif
  65. #ifdef CONFIG_CMD_NVME
  66. #define BOOT_TARGET_DEVICE_NVME(func) func(NVME, nvme, 0)
  67. #else
  68. #define BOOT_TARGET_DEVICE_NVME(func)
  69. #endif
  70. #ifdef CONFIG_CMD_SCSI
  71. #define BOOT_TARGET_DEVICE_SCSI(func) func(SCSI, scsi, 0) func(SCSI, scsi, 1)
  72. #else
  73. #define BOOT_TARGET_DEVICE_SCSI(func)
  74. #endif
  75. #define BOOT_TARGET_DEVICES(func) \
  76. BOOT_TARGET_DEVICE_USB(func) \
  77. BOOT_TARGET_DEVICE_MMC(func) \
  78. BOOT_TARGET_DEVICE_SCSI(func) \
  79. BOOT_TARGET_DEVICE_NVME(func) \
  80. #include <config_distro_bootcmd.h>
  81. #else /* CONFIG_SPL_BUILD */
  82. #define BOOTENV
  83. #endif
  84. #define CONFIG_EXTRA_ENV_SETTINGS \
  85. "fdt_addr_r=0x9fe00000\0" \
  86. "kernel_addr_r=0x90000000\0" \
  87. "ramdisk_addr_r=0xa0000000\0" \
  88. "scriptaddr=0x88000000\0" \
  89. "pxefile_addr_r=0x88100000\0" \
  90. DEFAULT_DFU_ALT_INFO \
  91. BOOTENV
  92. #endif /* __CONFIG_H */