Kconfig 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177
  1. if ARCH_ZYNQMP
  2. config SPL_FS_FAT
  3. default y
  4. config SPL_LIBCOMMON_SUPPORT
  5. default y
  6. config SPL_LIBDISK_SUPPORT
  7. default y
  8. config SPL_LIBGENERIC_SUPPORT
  9. default y
  10. config SPL_MMC_SUPPORT
  11. default y if MMC_SDHCI_ZYNQ
  12. config SPL_SERIAL_SUPPORT
  13. default y
  14. config SPL_SPI_FLASH_SUPPORT
  15. default y if ZYNQ_QSPI
  16. config SPL_SPI_SUPPORT
  17. default y if ZYNQ_QSPI
  18. config SYS_BOARD
  19. default "zynqmp"
  20. config SYS_VENDOR
  21. string "Vendor name"
  22. default "xilinx"
  23. config SYS_SOC
  24. default "zynqmp"
  25. config SYS_CONFIG_NAME
  26. string "Board configuration name"
  27. default "xilinx_zynqmp"
  28. help
  29. This option contains information about board configuration name.
  30. Based on this option include/configs/<CONFIG_SYS_CONFIG_NAME>.h header
  31. will be used for board configuration.
  32. config SYS_MEM_RSVD_FOR_MMU
  33. bool "Reserve memory for MMU Table"
  34. help
  35. If defined this option is used to setup different space for
  36. MMU table than the one which will be allocated during
  37. relocation.
  38. config BOOT_INIT_FILE
  39. string "boot.bin init register filename"
  40. depends on SPL
  41. default ""
  42. help
  43. Add register writes to boot.bin format (max 256 pairs).
  44. Expect a table of register-value pairs, e.g. "0x12345678 0x4321"
  45. config PMUFW_INIT_FILE
  46. string "PMU firmware"
  47. depends on SPL
  48. default ""
  49. help
  50. Include external PMUFW (Platform Management Unit FirmWare) to
  51. a Xilinx bootable image (boot.bin).
  52. config ZYNQMP_SPL_PM_CFG_OBJ_FILE
  53. string "PMU firmware configuration object to load at runtime by SPL"
  54. depends on SPL
  55. help
  56. Path to a binary PMU firmware configuration object to be linked
  57. into U-Boot SPL and loaded at runtime into the PMU firmware.
  58. The ZynqMP Power Management Unit (PMU) needs a configuration
  59. object for most SoC peripherals to work. To have it loaded by
  60. U-Boot SPL set here the file name (absolute path or relative to
  61. the top source tree) of your configuration, which must be a
  62. binary blob. It will be linked in the SPL binary and loaded
  63. into the PMU firmware by U-Boot SPL during board
  64. initialization.
  65. Leave this option empty if your PMU firmware has a hard-coded
  66. configuration object or you are loading it by any other means.
  67. config ZYNQMP_USB
  68. bool "Configure ZynqMP USB"
  69. config ZYNQMP_NO_DDR
  70. bool "Disable DDR MMU mapping"
  71. help
  72. This option configures MMU with no DDR to avoid speculative
  73. access to DDR memory where DDR is not present.
  74. config SYS_MALLOC_F_LEN
  75. default 0x600
  76. config DEFINE_TCM_OCM_MMAP
  77. bool "Define TCM and OCM memory in MMU Table"
  78. default y if MP
  79. help
  80. This option if enabled defines the TCM and OCM memory and its
  81. memory attributes in MMU table entry.
  82. config ZYNQMP_PSU_INIT_ENABLED
  83. bool "Include psu_init"
  84. help
  85. Include psu_init to full u-boot. SPL include psu_init by default.
  86. config SPL_ZYNQMP_ALT_BOOTMODE_ENABLED
  87. bool "Overwrite SPL bootmode"
  88. depends on SPL
  89. help
  90. Overwrite bootmode selected via boot mode pins to tell SPL what should
  91. be the next boot device.
  92. config ZYNQ_SDHCI_MAX_FREQ
  93. default 200000000
  94. config SPL_ZYNQMP_ALT_BOOTMODE
  95. hex
  96. default 0x0 if JTAG_MODE
  97. default 0x1 if QSPI_MODE_24BIT
  98. default 0x2 if QSPI_MODE_32BIT
  99. default 0x3 if SD_MODE
  100. default 0x4 if NAND_MODE
  101. default 0x5 if SD_MODE1
  102. default 0x6 if EMMC_MODE
  103. default 0x7 if USB_MODE
  104. default 0xa if SW_USBHOST_MODE
  105. default 0xb if SW_SATA_MODE
  106. default 0xe if SD1_LSHFT_MODE
  107. choice
  108. prompt "Boot mode"
  109. depends on SPL_ZYNQMP_ALT_BOOTMODE_ENABLED
  110. default JTAG_MODE
  111. config JTAG_MODE
  112. bool "JTAG_MODE"
  113. config QSPI_MODE_24BIT
  114. bool "QSPI_MODE_24BIT"
  115. config QSPI_MODE_32BIT
  116. bool "QSPI_MODE_32BIT"
  117. config SD_MODE
  118. bool "SD_MODE"
  119. config SD_MODE1
  120. bool "SD_MODE1"
  121. config NAND_MODE
  122. bool "NAND_MODE"
  123. config EMMC_MODE
  124. bool "EMMC_MODE"
  125. config USB_MODE
  126. bool "USB"
  127. config SW_USBHOST_MODE
  128. bool "SW USBHOST_MODE"
  129. config SW_SATA_MODE
  130. bool "SW SATA_MODE"
  131. config SD1_LSHFT_MODE
  132. bool "SD1_LSHFT_MODE"
  133. endchoice
  134. source "board/xilinx/Kconfig"
  135. source "board/xilinx/zynqmp/Kconfig"
  136. endif