Kconfig 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  1. if ARCH_K3
  2. choice
  3. prompt "Texas Instruments' K3 based SoC select"
  4. optional
  5. config SOC_K3_AM6
  6. bool "TI's K3 based AM6 SoC Family Support"
  7. config SOC_K3_J721E
  8. bool "TI's K3 based J721E SoC Family Support"
  9. endchoice
  10. config SYS_SOC
  11. default "k3"
  12. config SYS_K3_NON_SECURE_MSRAM_SIZE
  13. hex
  14. default 0x80000 if SOC_K3_AM6
  15. default 0x100000 if SOC_K3_J721E
  16. help
  17. Describes the total size of the MCU MSRAM. This doesn't
  18. specify the total size of SPL as ROM can use some part
  19. of this RAM. Once ROM gives control to SPL then this
  20. complete size can be usable.
  21. config SYS_K3_MAX_DOWNLODABLE_IMAGE_SIZE
  22. hex
  23. default 0x58000 if SOC_K3_AM6
  24. default 0xc0000 if SOC_K3_J721E
  25. help
  26. Describes the maximum size of the image that ROM can download
  27. from any boot media.
  28. config SYS_K3_MCU_SCRATCHPAD_BASE
  29. hex
  30. default 0x40280000 if SOC_K3_AM6
  31. default 0x40280000 if SOC_K3_J721E
  32. help
  33. Describes the base address of MCU Scratchpad RAM.
  34. config SYS_K3_MCU_SCRATCHPAD_SIZE
  35. hex
  36. default 0x200 if SOC_K3_AM6
  37. default 0x200 if SOC_K3_J721E
  38. help
  39. Describes the size of MCU Scratchpad RAM.
  40. config SYS_K3_BOOT_PARAM_TABLE_INDEX
  41. hex
  42. default 0x41c7fbfc if SOC_K3_AM6
  43. default 0x41cffbfc if SOC_K3_J721E
  44. help
  45. Address at which ROM stores the value which determines if SPL
  46. is booted up by primary boot media or secondary boot media.
  47. config SYS_K3_KEY
  48. string "Key used to generate x509 certificate"
  49. help
  50. This option enables to provide a custom key that can be used for
  51. generating x509 certificate for spl binary. If not needed leave
  52. it blank so that a random key is generated and used.
  53. config SYS_K3_BOOT_CORE_ID
  54. int
  55. default 16
  56. config K3_EARLY_CONS
  57. bool "Activate to allow for an early console during SPL"
  58. depends on SPL
  59. help
  60. Turn this option on to enable an early console functionality in SPL
  61. before the main console is being brought up. This can be useful in
  62. situations where the main console is dependent on System Firmware
  63. (SYSFW) being up and running, which is usually not the case during
  64. the very early stages of boot. Using this early console functionality
  65. will allow for an alternate serial port to be used to support things
  66. like UART-based boot and early diagnostic messages until the main
  67. console is ready to get activated.
  68. config K3_EARLY_CONS_IDX
  69. depends on K3_EARLY_CONS
  70. int "Index of serial device to use for SPL early console"
  71. default 1
  72. help
  73. Use this option to set the index of the serial device to be used
  74. for the early console during SPL execution.
  75. config K3_LOAD_SYSFW
  76. bool
  77. depends on SPL
  78. config K3_SYSFW_IMAGE_NAME
  79. string "File name of SYSFW firmware and configuration blob"
  80. depends on K3_LOAD_SYSFW
  81. default "sysfw.itb"
  82. help
  83. Filename of the combined System Firmware and configuration image tree
  84. blob to be loaded when booting from a filesystem.
  85. config K3_SYSFW_IMAGE_MMCSD_RAW_MODE_SECT
  86. hex "MMC sector to load SYSFW firmware and configuration blob from"
  87. depends on K3_LOAD_SYSFW && SYS_MMCSD_RAW_MODE_U_BOOT_USE_SECTOR
  88. default 0x3600
  89. help
  90. Address on the MMC to load the combined System Firmware and
  91. configuration image tree blob from, when the MMC is being used
  92. in raw mode. Units: MMC sectors (1 sector = 512 bytes).
  93. config K3_SYSFW_IMAGE_MMCSD_RAW_MODE_PART
  94. hex "MMC partition to load SYSFW firmware and configuration blob from"
  95. depends on K3_LOAD_SYSFW && SYS_MMCSD_RAW_MODE_U_BOOT_USE_PARTITION
  96. default 2
  97. help
  98. Partition on the MMC to the combined System Firmware and configuration
  99. image tree blob from, when the MMC is being used in raw mode.
  100. config K3_SYSFW_IMAGE_SIZE_MAX
  101. int "Amount of memory dynamically allocated for loading SYSFW blob"
  102. depends on K3_LOAD_SYSFW
  103. default 277000
  104. help
  105. Amount of memory (in bytes) reserved through dynamic allocation at
  106. runtime for loading the combined System Firmware and configuration image
  107. tree blob. Keep it as tight as possible, as this directly affects the
  108. overall SPL memory footprint.
  109. config K3_SYSFW_IMAGE_SPI_OFFS
  110. hex "SPI offset of SYSFW firmware and configuration blob"
  111. depends on K3_LOAD_SYSFW
  112. default 0x6C0000
  113. help
  114. Offset of the combined System Firmware and configuration image tree
  115. blob to be loaded when booting from a SPI flash memory.
  116. config SYS_K3_SPL_ATF
  117. bool "Start Cortex-A from SPL"
  118. depends on SPL && CPU_V7R
  119. help
  120. Enabling this will try to start Cortex-A (typically with ATF)
  121. after SPL from R5.
  122. source "board/ti/am65x/Kconfig"
  123. source "board/ti/j721e/Kconfig"
  124. endif