Kconfig 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169
  1. if ARCH_STM32MP
  2. config SPL
  3. select SPL_CLK
  4. select SPL_DM
  5. select SPL_DM_SEQ_ALIAS
  6. select SPL_DRIVERS_MISC_SUPPORT
  7. select SPL_FRAMEWORK
  8. select SPL_GPIO_SUPPORT
  9. select SPL_LIBCOMMON_SUPPORT
  10. select SPL_LIBGENERIC_SUPPORT
  11. select SPL_OF_CONTROL
  12. select SPL_OF_TRANSLATE
  13. select SPL_PINCTRL
  14. select SPL_REGMAP
  15. select SPL_DM_RESET
  16. select SPL_SERIAL_SUPPORT
  17. select SPL_SPI_LOAD
  18. select SPL_SYSCON
  19. select SPL_WATCHDOG_SUPPORT if WATCHDOG
  20. imply BOOTSTAGE_STASH if SPL_BOOTSTAGE
  21. imply SPL_BOOTSTAGE if BOOTSTAGE
  22. imply SPL_DISPLAY_PRINT
  23. imply SPL_LIBDISK_SUPPORT
  24. config SYS_SOC
  25. default "stm32mp"
  26. config SYS_MALLOC_LEN
  27. default 0x2000000
  28. config ENV_SIZE
  29. default 0x2000
  30. config STM32MP15x
  31. bool "Support STMicroelectronics STM32MP15x Soc"
  32. select ARCH_SUPPORT_PSCI if !TFABOOT
  33. select ARM_SMCCC if TFABOOT
  34. select CPU_V7A
  35. select CPU_V7_HAS_NONSEC if !TFABOOT
  36. select CPU_V7_HAS_VIRT
  37. select OF_BOARD_SETUP
  38. select PINCTRL_STM32
  39. select STM32_RCC
  40. select STM32_RESET
  41. select STM32_SERIAL
  42. select SYS_ARCH_TIMER
  43. imply CMD_NVEDIT_INFO
  44. imply SYSRESET_PSCI if TFABOOT
  45. imply SYSRESET_SYSCON if !TFABOOT
  46. help
  47. support of STMicroelectronics SOC STM32MP15x family
  48. STM32MP157, STM32MP153 or STM32MP151
  49. STMicroelectronics MPU with core ARMv7
  50. dual core A7 for STM32MP157/3, monocore for STM32MP151
  51. target all the STMicroelectronics board with SOC STM32MP1 family
  52. choice
  53. prompt "STM32MP15x board select"
  54. optional
  55. config TARGET_ST_STM32MP15x
  56. bool "STMicroelectronics STM32MP15x boards"
  57. select STM32MP15x
  58. imply BOOTCOUNT_LIMIT
  59. imply BOOTSTAGE
  60. imply CMD_BOOTCOUNT
  61. imply CMD_BOOTSTAGE
  62. imply CMD_CLS if CMD_BMP
  63. imply DISABLE_CONSOLE
  64. imply PRE_CONSOLE_BUFFER
  65. imply SILENT_CONSOLE
  66. help
  67. target the STMicroelectronics board with SOC STM32MP15x
  68. managed by board/st/stm32mp1:
  69. Evalulation board (EV1) or Discovery board (DK1 and DK2).
  70. The difference between board are managed with devicetree
  71. config TARGET_DH_STM32MP1_PDK2
  72. bool "DH STM32MP1 PDK2"
  73. select STM32MP15x
  74. imply BOOTCOUNT_LIMIT
  75. imply CMD_BOOTCOUNT
  76. help
  77. Target the DH PDK2 development kit with STM32MP15x SoM.
  78. endchoice
  79. config SYS_TEXT_BASE
  80. default 0xC0100000
  81. config NR_DRAM_BANKS
  82. default 1
  83. config SYS_MMCSD_RAW_MODE_U_BOOT_PARTITION_MMC2
  84. hex "Partition on MMC2 to use to load U-Boot from"
  85. depends on SYS_MMCSD_RAW_MODE_U_BOOT_USE_PARTITION
  86. default 1
  87. help
  88. Partition on the second MMC to load U-Boot from when the MMC is being
  89. used in raw mode
  90. config STM32_ETZPC
  91. bool "STM32 Extended TrustZone Protection"
  92. depends on STM32MP15x
  93. default y
  94. help
  95. Say y to enable STM32 Extended TrustZone Protection
  96. config CMD_STM32PROG
  97. bool "command stm32prog for STM32CudeProgrammer"
  98. select DFU
  99. select DFU_RAM
  100. select DFU_VIRT
  101. select PARTITION_TYPE_GUID
  102. imply CMD_GPT if MMC
  103. imply CMD_MTD if MTD
  104. imply DFU_MMC if MMC
  105. imply DFU_MTD if MTD
  106. help
  107. activate a specific command stm32prog for STM32MP soc family
  108. witch update the device with the tools STM32CubeProgrammer,
  109. using UART with STM32 protocol or USB with DFU protocol
  110. NB: access to not volatile memory (NOR/NAND/SD/eMMC) is based
  111. on U-Boot DFU framework
  112. config CMD_STM32KEY
  113. bool "command stm32key to fuse public key hash"
  114. default y
  115. help
  116. fuse public key hash in corresponding fuse used to authenticate
  117. binary.
  118. config PRE_CON_BUF_ADDR
  119. default 0xC02FF000
  120. config PRE_CON_BUF_SZ
  121. default 4096
  122. config BOOTSTAGE_STASH_ADDR
  123. default 0xC3000000
  124. if BOOTCOUNT_LIMIT
  125. config SYS_BOOTCOUNT_SINGLEWORD
  126. default y
  127. # TAMP_BOOTCOUNT = TAMP_BACKUP_REGISTER(21)
  128. config SYS_BOOTCOUNT_ADDR
  129. default 0x5C00A154
  130. endif
  131. if DEBUG_UART
  132. config DEBUG_UART_BOARD_INIT
  133. default y
  134. # debug on UART4 by default
  135. config DEBUG_UART_BASE
  136. default 0x40010000
  137. # clock source is HSI on reset
  138. config DEBUG_UART_CLOCK
  139. default 64000000
  140. endif
  141. source "board/st/stm32mp1/Kconfig"
  142. source "board/dhelectronics/dh_stm32mp1/Kconfig"
  143. endif