Kconfig 5.4 KB

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