Lokesh Vutla | 586bde9 | 2018-08-27 15:57:08 +0530 | [diff] [blame] | 1 | if ARCH_K3 |
| 2 | |
| 3 | choice |
| 4 | prompt "Texas Instruments' K3 based SoC select" |
| 5 | optional |
| 6 | |
Andrew Davis | 80b93bb | 2022-07-15 10:25:27 -0500 | [diff] [blame] | 7 | config SOC_K3_AM654 |
| 8 | bool "TI's K3 based AM654 SoC Family Support" |
Lokesh Vutla | ed0e605 | 2018-08-27 15:57:09 +0530 | [diff] [blame] | 9 | |
Lokesh Vutla | c2562d7 | 2019-06-13 10:29:42 +0530 | [diff] [blame] | 10 | config SOC_K3_J721E |
| 11 | bool "TI's K3 based J721E SoC Family Support" |
| 12 | |
David Huang | 681023a | 2022-01-25 20:56:31 +0530 | [diff] [blame] | 13 | config SOC_K3_J721S2 |
| 14 | bool "TI's K3 based J721S2 SoC Family Support" |
| 15 | |
Dave Gerlach | eb54168 | 2021-04-23 11:27:32 -0500 | [diff] [blame] | 16 | config SOC_K3_AM642 |
| 17 | bool "TI's K3 based AM642 SoC Family Support" |
| 18 | |
Suman Anna | d98e860 | 2022-05-25 13:38:42 +0530 | [diff] [blame] | 19 | config SOC_K3_AM625 |
| 20 | bool "TI's K3 based AM625 SoC Family Support" |
| 21 | |
Bryan Brattlof | b511b37 | 2022-11-03 19:13:55 -0500 | [diff] [blame] | 22 | config SOC_K3_AM62A7 |
| 23 | bool "TI's K3 based AM62A7 SoC Family Support" |
| 24 | |
Lokesh Vutla | 586bde9 | 2018-08-27 15:57:08 +0530 | [diff] [blame] | 25 | endchoice |
| 26 | |
| 27 | config SYS_SOC |
| 28 | default "k3" |
| 29 | |
Lokesh Vutla | ed0e605 | 2018-08-27 15:57:09 +0530 | [diff] [blame] | 30 | config SYS_K3_NON_SECURE_MSRAM_SIZE |
| 31 | hex |
Andrew Davis | 80b93bb | 2022-07-15 10:25:27 -0500 | [diff] [blame] | 32 | default 0x80000 if SOC_K3_AM654 |
David Huang | 681023a | 2022-01-25 20:56:31 +0530 | [diff] [blame] | 33 | default 0x100000 if SOC_K3_J721E || SOC_K3_J721S2 |
Dave Gerlach | eb54168 | 2021-04-23 11:27:32 -0500 | [diff] [blame] | 34 | default 0x1c0000 if SOC_K3_AM642 |
Bryan Brattlof | b511b37 | 2022-11-03 19:13:55 -0500 | [diff] [blame] | 35 | default 0x3c000 if SOC_K3_AM625 || SOC_K3_AM62A7 |
Lokesh Vutla | ed0e605 | 2018-08-27 15:57:09 +0530 | [diff] [blame] | 36 | help |
Dave Gerlach | eb54168 | 2021-04-23 11:27:32 -0500 | [diff] [blame] | 37 | Describes the total size of the MCU or OCMC MSRAM present on |
| 38 | the SoC in use. This doesn't specify the total size of SPL as |
| 39 | ROM can use some part of this RAM. Once ROM gives control to |
| 40 | SPL then this complete size can be usable. |
Lokesh Vutla | ed0e605 | 2018-08-27 15:57:09 +0530 | [diff] [blame] | 41 | |
| 42 | config SYS_K3_MAX_DOWNLODABLE_IMAGE_SIZE |
| 43 | hex |
Andrew Davis | 80b93bb | 2022-07-15 10:25:27 -0500 | [diff] [blame] | 44 | default 0x58000 if SOC_K3_AM654 |
David Huang | 681023a | 2022-01-25 20:56:31 +0530 | [diff] [blame] | 45 | default 0xc0000 if SOC_K3_J721E || SOC_K3_J721S2 |
Dave Gerlach | eb54168 | 2021-04-23 11:27:32 -0500 | [diff] [blame] | 46 | default 0x180000 if SOC_K3_AM642 |
Bryan Brattlof | b511b37 | 2022-11-03 19:13:55 -0500 | [diff] [blame] | 47 | default 0x38000 if SOC_K3_AM625 || SOC_K3_AM62A7 |
Lokesh Vutla | ed0e605 | 2018-08-27 15:57:09 +0530 | [diff] [blame] | 48 | help |
| 49 | Describes the maximum size of the image that ROM can download |
| 50 | from any boot media. |
| 51 | |
| 52 | config SYS_K3_MCU_SCRATCHPAD_BASE |
| 53 | hex |
Andrew Davis | 80b93bb | 2022-07-15 10:25:27 -0500 | [diff] [blame] | 54 | default 0x40280000 if SOC_K3_AM654 |
David Huang | 681023a | 2022-01-25 20:56:31 +0530 | [diff] [blame] | 55 | default 0x40280000 if SOC_K3_J721E || SOC_K3_J721S2 |
Lokesh Vutla | ed0e605 | 2018-08-27 15:57:09 +0530 | [diff] [blame] | 56 | help |
| 57 | Describes the base address of MCU Scratchpad RAM. |
| 58 | |
| 59 | config SYS_K3_MCU_SCRATCHPAD_SIZE |
| 60 | hex |
Andrew Davis | 80b93bb | 2022-07-15 10:25:27 -0500 | [diff] [blame] | 61 | default 0x200 if SOC_K3_AM654 |
David Huang | 681023a | 2022-01-25 20:56:31 +0530 | [diff] [blame] | 62 | default 0x200 if SOC_K3_J721E || SOC_K3_J721S2 |
Lokesh Vutla | ed0e605 | 2018-08-27 15:57:09 +0530 | [diff] [blame] | 63 | help |
| 64 | Describes the size of MCU Scratchpad RAM. |
| 65 | |
Lokesh Vutla | e006460 | 2018-08-27 15:57:11 +0530 | [diff] [blame] | 66 | config SYS_K3_BOOT_PARAM_TABLE_INDEX |
| 67 | hex |
Andrew Davis | 80b93bb | 2022-07-15 10:25:27 -0500 | [diff] [blame] | 68 | default 0x41c7fbfc if SOC_K3_AM654 |
Andreas Dannenberg | a06df8f | 2019-06-27 20:03:21 -0500 | [diff] [blame] | 69 | default 0x41cffbfc if SOC_K3_J721E |
David Huang | 681023a | 2022-01-25 20:56:31 +0530 | [diff] [blame] | 70 | default 0x41cfdbfc if SOC_K3_J721S2 |
Dave Gerlach | eb54168 | 2021-04-23 11:27:32 -0500 | [diff] [blame] | 71 | default 0x701bebfc if SOC_K3_AM642 |
Bryan Brattlof | b511b37 | 2022-11-03 19:13:55 -0500 | [diff] [blame] | 72 | default 0x43c3f290 if SOC_K3_AM625 || SOC_K3_AM62A7 |
Lokesh Vutla | e006460 | 2018-08-27 15:57:11 +0530 | [diff] [blame] | 73 | help |
| 74 | Address at which ROM stores the value which determines if SPL |
| 75 | is booted up by primary boot media or secondary boot media. |
| 76 | |
Lokesh Vutla | 890b2e7 | 2018-11-02 19:51:04 +0530 | [diff] [blame] | 77 | config SYS_K3_KEY |
| 78 | string "Key used to generate x509 certificate" |
| 79 | help |
| 80 | This option enables to provide a custom key that can be used for |
| 81 | generating x509 certificate for spl binary. If not needed leave |
| 82 | it blank so that a random key is generated and used. |
| 83 | |
| 84 | config SYS_K3_BOOT_CORE_ID |
| 85 | int |
| 86 | default 16 |
| 87 | |
Andreas Dannenberg | e630afe1 | 2019-08-15 15:55:28 -0500 | [diff] [blame] | 88 | config K3_EARLY_CONS |
| 89 | bool "Activate to allow for an early console during SPL" |
| 90 | depends on SPL |
| 91 | help |
| 92 | Turn this option on to enable an early console functionality in SPL |
| 93 | before the main console is being brought up. This can be useful in |
| 94 | situations where the main console is dependent on System Firmware |
| 95 | (SYSFW) being up and running, which is usually not the case during |
| 96 | the very early stages of boot. Using this early console functionality |
| 97 | will allow for an alternate serial port to be used to support things |
| 98 | like UART-based boot and early diagnostic messages until the main |
| 99 | console is ready to get activated. |
| 100 | |
| 101 | config K3_EARLY_CONS_IDX |
| 102 | depends on K3_EARLY_CONS |
| 103 | int "Index of serial device to use for SPL early console" |
| 104 | default 1 |
| 105 | help |
| 106 | Use this option to set the index of the serial device to be used |
| 107 | for the early console during SPL execution. |
| 108 | |
Andreas Dannenberg | 6df8706 | 2019-06-04 17:55:47 -0500 | [diff] [blame] | 109 | config K3_LOAD_SYSFW |
| 110 | bool |
| 111 | depends on SPL |
| 112 | |
| 113 | config K3_SYSFW_IMAGE_NAME |
| 114 | string "File name of SYSFW firmware and configuration blob" |
| 115 | depends on K3_LOAD_SYSFW |
| 116 | default "sysfw.itb" |
| 117 | help |
| 118 | Filename of the combined System Firmware and configuration image tree |
| 119 | blob to be loaded when booting from a filesystem. |
| 120 | |
| 121 | config K3_SYSFW_IMAGE_MMCSD_RAW_MODE_SECT |
| 122 | hex "MMC sector to load SYSFW firmware and configuration blob from" |
| 123 | depends on K3_LOAD_SYSFW && SYS_MMCSD_RAW_MODE_U_BOOT_USE_SECTOR |
| 124 | default 0x3600 |
| 125 | help |
| 126 | Address on the MMC to load the combined System Firmware and |
| 127 | configuration image tree blob from, when the MMC is being used |
| 128 | in raw mode. Units: MMC sectors (1 sector = 512 bytes). |
| 129 | |
| 130 | config K3_SYSFW_IMAGE_MMCSD_RAW_MODE_PART |
| 131 | hex "MMC partition to load SYSFW firmware and configuration blob from" |
| 132 | depends on K3_LOAD_SYSFW && SYS_MMCSD_RAW_MODE_U_BOOT_USE_PARTITION |
| 133 | default 2 |
| 134 | help |
| 135 | Partition on the MMC to the combined System Firmware and configuration |
| 136 | image tree blob from, when the MMC is being used in raw mode. |
| 137 | |
| 138 | config K3_SYSFW_IMAGE_SIZE_MAX |
| 139 | int "Amount of memory dynamically allocated for loading SYSFW blob" |
| 140 | depends on K3_LOAD_SYSFW |
Bryan Brattlof | b511b37 | 2022-11-03 19:13:55 -0500 | [diff] [blame] | 141 | default 163840 if SOC_K3_AM625 || SOC_K3_AM62A7 |
Andrew F. Davis | b76bea1 | 2020-04-30 15:12:19 -0400 | [diff] [blame] | 142 | default 278000 |
Andreas Dannenberg | 6df8706 | 2019-06-04 17:55:47 -0500 | [diff] [blame] | 143 | help |
| 144 | Amount of memory (in bytes) reserved through dynamic allocation at |
| 145 | runtime for loading the combined System Firmware and configuration image |
| 146 | tree blob. Keep it as tight as possible, as this directly affects the |
| 147 | overall SPL memory footprint. |
| 148 | |
Lokesh Vutla | 7d0866b | 2020-02-04 11:09:50 +0530 | [diff] [blame] | 149 | config K3_SYSFW_IMAGE_SPI_OFFS |
| 150 | hex "SPI offset of SYSFW firmware and configuration blob" |
| 151 | depends on K3_LOAD_SYSFW |
| 152 | default 0x6C0000 |
| 153 | help |
| 154 | Offset of the combined System Firmware and configuration image tree |
| 155 | blob to be loaded when booting from a SPI flash memory. |
| 156 | |
Lokesh Vutla | a3501a4 | 2018-11-02 19:51:05 +0530 | [diff] [blame] | 157 | config SYS_K3_SPL_ATF |
| 158 | bool "Start Cortex-A from SPL" |
| 159 | depends on SPL && CPU_V7R |
| 160 | help |
| 161 | Enabling this will try to start Cortex-A (typically with ATF) |
| 162 | after SPL from R5. |
| 163 | |
Aswath Govindraju | 0c51509 | 2021-06-04 22:00:31 +0530 | [diff] [blame] | 164 | config K3_ATF_LOAD_ADDR |
| 165 | hex "Load address of ATF image" |
| 166 | default 0x70000000 |
| 167 | help |
| 168 | The load address for the ATF image. This value defaults to 0x70000000 |
| 169 | if not provided in the board defconfig file. |
| 170 | |
Tero Kristo | 99214c1 | 2021-06-11 11:45:03 +0300 | [diff] [blame] | 171 | config K3_DM_FW |
| 172 | bool "Separate DM firmware image" |
Bryan Brattlof | b511b37 | 2022-11-03 19:13:55 -0500 | [diff] [blame] | 173 | depends on SPL && CPU_V7R && (SOC_K3_J721E || SOC_K3_J721S2 || SOC_K3_AM625 || SOC_K3_AM62A7) && !CLK_TI_SCI && !TI_SCI_POWER_DOMAIN |
Tero Kristo | 99214c1 | 2021-06-11 11:45:03 +0300 | [diff] [blame] | 174 | default y |
| 175 | help |
| 176 | Enabling this will indicate that the system has separate DM |
| 177 | and TIFS firmware images in place, instead of a single SYSFW |
| 178 | firmware. Due to DM being executed on the same core as R5 SPL |
| 179 | bootloader, it makes RM and PM services not being available |
| 180 | during R5 SPL execution time. |
| 181 | |
Yogesh Siraswar | 0019427 | 2022-07-15 11:38:53 -0500 | [diff] [blame] | 182 | config K3_X509_SWRV |
| 183 | int "SWRV for X509 certificate used for boot images" |
| 184 | default 1 |
| 185 | help |
| 186 | SWRV for X509 certificate used for boot images |
| 187 | |
Lokesh Vutla | 0911d95 | 2018-08-27 15:59:06 +0530 | [diff] [blame] | 188 | source "board/ti/am65x/Kconfig" |
Dave Gerlach | 33b7258 | 2021-04-23 11:27:42 -0500 | [diff] [blame] | 189 | source "board/ti/am64x/Kconfig" |
Suman Anna | 900349b | 2022-05-25 13:38:47 +0530 | [diff] [blame] | 190 | source "board/ti/am62x/Kconfig" |
Bryan Brattlof | b511b37 | 2022-11-03 19:13:55 -0500 | [diff] [blame] | 191 | source "board/ti/am62ax/Kconfig" |
Lokesh Vutla | f818503 | 2019-06-13 10:29:49 +0530 | [diff] [blame] | 192 | source "board/ti/j721e/Kconfig" |
Jan Kiszka | a2db09e | 2021-09-18 08:17:53 +0200 | [diff] [blame] | 193 | source "board/siemens/iot2050/Kconfig" |
David Huang | 681023a | 2022-01-25 20:56:31 +0530 | [diff] [blame] | 194 | source "board/ti/j721s2/Kconfig" |
Lokesh Vutla | 586bde9 | 2018-08-27 15:57:08 +0530 | [diff] [blame] | 195 | endif |