Kconfig 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174
  1. if ARM64
  2. config ARMV8_SPL_EXCEPTION_VECTORS
  3. bool "Install crash dump exception vectors"
  4. depends on SPL
  5. help
  6. The default exception vector table is only used for the crash
  7. dump, but still takes quite a lot of space in the image size.
  8. Say N here if you are running out of code space in the image
  9. and want to save some space at the cost of less debugging info.
  10. config ARMV8_MULTIENTRY
  11. bool "Enable multiple CPUs to enter into U-Boot"
  12. config ARMV8_SET_SMPEN
  13. bool "Enable data coherency with other cores in cluster"
  14. help
  15. Say Y here if there is not any trust firmware to set
  16. CPUECTLR_EL1.SMPEN bit before U-Boot.
  17. For A53, it enables data coherency with other cores in the
  18. cluster, and for A57/A72, it enables receiving of instruction
  19. cache and TLB maintenance operations.
  20. Cortex A53/57/72 cores require CPUECTLR_EL1.SMPEN set even
  21. for single core systems. Unfortunately write access to this
  22. register may be controlled by EL3/EL2 firmware. To be more
  23. precise, by default (if there is EL2/EL3 firmware running)
  24. this register is RO for NS EL1.
  25. This switch can be used to avoid writing to CPUECTLR_EL1,
  26. it can be safely enabled when EL2/EL3 initialized SMPEN bit
  27. or when CPU implementation doesn't include that register.
  28. config ARMV8_SPIN_TABLE
  29. bool "Support spin-table enable method"
  30. depends on ARMV8_MULTIENTRY && OF_LIBFDT
  31. help
  32. Say Y here to support "spin-table" enable method for booting Linux.
  33. To use this feature, you must do:
  34. - Specify enable-method = "spin-table" in each CPU node in the
  35. Device Tree you are using to boot the kernel
  36. - Bring secondary CPUs into U-Boot proper in a board specific
  37. manner. This must be done *after* relocation. Otherwise, the
  38. secondary CPUs will spin in unprotected memory area because the
  39. master CPU protects the relocated spin code.
  40. U-Boot automatically does:
  41. - Set "cpu-release-addr" property of each CPU node
  42. (overwrites it if already exists).
  43. - Reserve the code for the spin-table and the release address
  44. via a /memreserve/ region in the Device Tree.
  45. menu "ARMv8 secure monitor firmware"
  46. config ARMV8_SEC_FIRMWARE_SUPPORT
  47. bool "Enable ARMv8 secure monitor firmware framework support"
  48. select FIT
  49. select OF_LIBFDT
  50. help
  51. This framework is aimed at making secure monitor firmware load
  52. process brief.
  53. Note: Only FIT format image is supported.
  54. You should prepare and provide the below information:
  55. - Address of secure firmware.
  56. - Address to hold the return address from secure firmware.
  57. - Secure firmware FIT image related information.
  58. Such as: SEC_FIRMWARE_FIT_IMAGE and SEC_FIRMWARE_FIT_CNF_NAME
  59. - The target exception level that secure monitor firmware will
  60. return to.
  61. config SPL_ARMV8_SEC_FIRMWARE_SUPPORT
  62. bool "Enable ARMv8 secure monitor firmware framework support for SPL"
  63. select SPL_FIT
  64. select SPL_OF_LIBFDT
  65. help
  66. Say Y here to support this framework in SPL phase.
  67. config SPL_RECOVER_DATA_SECTION
  68. bool "save/restore SPL data section"
  69. help
  70. Say Y here to save SPL data section for cold boot, and restore
  71. at warm boot in SPL phase.
  72. config SEC_FIRMWARE_ARMV8_PSCI
  73. bool "PSCI implementation in secure monitor firmware"
  74. depends on ARMV8_SEC_FIRMWARE_SUPPORT || SPL_ARMV8_SEC_FIRMWARE_SUPPORT
  75. help
  76. This config enables the ARMv8 PSCI implementation in secure monitor
  77. firmware. This is a private PSCI implementation and different from
  78. those implemented under the common ARMv8 PSCI framework.
  79. config ARMV8_SEC_FIRMWARE_ERET_ADDR_REVERT
  80. bool "ARMv8 secure monitor firmware ERET address byteorder swap"
  81. depends on ARMV8_SEC_FIRMWARE_SUPPORT || SPL_ARMV8_SEC_FIRMWARE_SUPPORT
  82. help
  83. Say Y here when the endianness of the register or memory holding the
  84. Secure firmware exception return address is different with core's.
  85. endmenu
  86. config PSCI_RESET
  87. bool "Use PSCI for reset and shutdown"
  88. default y
  89. select ARM_SMCCC if OF_CONTROL
  90. depends on !ARCH_EXYNOS7 && !ARCH_BCM283X && \
  91. !TARGET_LS2080AQDS && \
  92. !TARGET_LS2080ARDB && !TARGET_LS2080A_EMU && \
  93. !TARGET_LS1088ARDB && !TARGET_LS1088AQDS && \
  94. !TARGET_LS1012ARDB && !TARGET_LS1012AFRDM && \
  95. !TARGET_LS1012A2G5RDB && !TARGET_LS1012AQDS && \
  96. !TARGET_LS1012AFRWY && \
  97. !TARGET_LS1028ARDB && !TARGET_LS1028AQDS && \
  98. !TARGET_LS1043ARDB && !TARGET_LS1043AQDS && \
  99. !TARGET_LS1046ARDB && !TARGET_LS1046AQDS && \
  100. !TARGET_LS1046AFRWY && \
  101. !TARGET_LS2081ARDB && !TARGET_LX2160ARDB && \
  102. !TARGET_LX2160AQDS && !TARGET_LX2162AQDS && \
  103. !ARCH_UNIPHIER
  104. help
  105. Most armv8 systems have PSCI support enabled in EL3, either through
  106. ARM Trusted Firmware or other firmware.
  107. On these systems, we do not need to implement system reset manually,
  108. but can instead rely on higher level firmware to deal with it.
  109. Select Y here to make use of PSCI calls for system reset
  110. config ARMV8_PSCI
  111. bool "Enable PSCI support" if EXPERT
  112. help
  113. PSCI is Power State Coordination Interface defined by ARM.
  114. The PSCI in U-boot provides a general framework and each platform
  115. can implement their own specific PSCI functions.
  116. Say Y here to enable PSCI support on ARMv8 platform.
  117. config ARMV8_PSCI_NR_CPUS
  118. int "Maximum supported CPUs for PSCI"
  119. depends on ARMV8_PSCI
  120. default 4
  121. help
  122. The maximum number of CPUs supported in the PSCI firmware.
  123. It is no problem to set a larger value than the number of CPUs in
  124. the actual hardware implementation.
  125. config ARMV8_PSCI_CPUS_PER_CLUSTER
  126. int "Number of CPUs per cluster"
  127. depends on ARMV8_PSCI
  128. default 0
  129. help
  130. The number of CPUs per cluster, suppose each cluster has same number
  131. of CPU cores, platforms with asymmetric clusters don't apply here.
  132. A value 0 or no definition of it works for single cluster system.
  133. System with multi-cluster should difine their own exact value.
  134. config ARMV8_EA_EL3_FIRST
  135. bool "External aborts and SError interrupt exception are taken in EL3"
  136. help
  137. Exception handling at all exception levels for External Abort and
  138. SError interrupt exception are taken in EL3.
  139. if SYS_HAS_ARMV8_SECURE_BASE
  140. config ARMV8_SECURE_BASE
  141. hex "Secure address for PSCI image"
  142. depends on ARMV8_PSCI
  143. help
  144. Address for placing the PSCI text, data and stack sections.
  145. If not defined, the PSCI sections are placed together with the u-boot
  146. but platform can choose to place PSCI code image separately in other
  147. places such as some secure RAM built-in SOC etc.
  148. endif
  149. endif