Lokesh Vutla | 9bdec00 | 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 | |
Apurva Nandan | a727fa0 | 2024-02-24 01:51:40 +0530 | [diff] [blame] | 7 | config SOC_K3_AM625 |
| 8 | bool "TI's K3 based AM625 SoC Family Support" |
| 9 | |
| 10 | config SOC_K3_AM62A7 |
| 11 | bool "TI's K3 based AM62A7 SoC Family Support" |
| 12 | |
| 13 | config SOC_K3_AM642 |
| 14 | bool "TI's K3 based AM642 SoC Family Support" |
| 15 | |
Andrew Davis | 1be5e97 | 2022-07-15 10:25:27 -0500 | [diff] [blame] | 16 | config SOC_K3_AM654 |
| 17 | bool "TI's K3 based AM654 SoC Family Support" |
Lokesh Vutla | 3288644 | 2018-08-27 15:57:09 +0530 | [diff] [blame] | 18 | |
Lokesh Vutla | a228532 | 2019-06-13 10:29:42 +0530 | [diff] [blame] | 19 | config SOC_K3_J721E |
| 20 | bool "TI's K3 based J721E SoC Family Support" |
| 21 | |
David Huang | 6109820 | 2022-01-25 20:56:31 +0530 | [diff] [blame] | 22 | config SOC_K3_J721S2 |
| 23 | bool "TI's K3 based J721S2 SoC Family Support" |
| 24 | |
Apurva Nandan | 67ebc30 | 2024-02-24 01:51:41 +0530 | [diff] [blame^] | 25 | config SOC_K3_J784S4 |
| 26 | bool "TI's K3 based J784S4 SoC Family Support" |
| 27 | |
Lokesh Vutla | 9bdec00 | 2018-08-27 15:57:08 +0530 | [diff] [blame] | 28 | endchoice |
| 29 | |
Nishanth Menon | 27ee03c | 2023-11-04 02:21:44 -0500 | [diff] [blame] | 30 | if SOC_K3_J721E |
| 31 | config SOC_K3_J721E_J7200 |
| 32 | bool "TI's K3 based J7200 SoC variant Family Support" |
| 33 | endif |
| 34 | |
Lokesh Vutla | 9bdec00 | 2018-08-27 15:57:08 +0530 | [diff] [blame] | 35 | config SYS_SOC |
| 36 | default "k3" |
| 37 | |
Lokesh Vutla | 3288644 | 2018-08-27 15:57:09 +0530 | [diff] [blame] | 38 | config SYS_K3_NON_SECURE_MSRAM_SIZE |
| 39 | hex |
Andrew Davis | 1be5e97 | 2022-07-15 10:25:27 -0500 | [diff] [blame] | 40 | default 0x80000 if SOC_K3_AM654 |
Apurva Nandan | 67ebc30 | 2024-02-24 01:51:41 +0530 | [diff] [blame^] | 41 | default 0x100000 if SOC_K3_J721E || SOC_K3_J721S2 || SOC_K3_J784S4 |
Dave Gerlach | 96571ec | 2021-04-23 11:27:32 -0500 | [diff] [blame] | 42 | default 0x1c0000 if SOC_K3_AM642 |
Bryan Brattlof | daa39a6 | 2022-11-03 19:13:55 -0500 | [diff] [blame] | 43 | default 0x3c000 if SOC_K3_AM625 || SOC_K3_AM62A7 |
Lokesh Vutla | 3288644 | 2018-08-27 15:57:09 +0530 | [diff] [blame] | 44 | help |
Dave Gerlach | 96571ec | 2021-04-23 11:27:32 -0500 | [diff] [blame] | 45 | Describes the total size of the MCU or OCMC MSRAM present on |
| 46 | the SoC in use. This doesn't specify the total size of SPL as |
| 47 | ROM can use some part of this RAM. Once ROM gives control to |
| 48 | SPL then this complete size can be usable. |
Lokesh Vutla | 3288644 | 2018-08-27 15:57:09 +0530 | [diff] [blame] | 49 | |
| 50 | config SYS_K3_MAX_DOWNLODABLE_IMAGE_SIZE |
| 51 | hex |
Andrew Davis | 1be5e97 | 2022-07-15 10:25:27 -0500 | [diff] [blame] | 52 | default 0x58000 if SOC_K3_AM654 |
Apurva Nandan | 67ebc30 | 2024-02-24 01:51:41 +0530 | [diff] [blame^] | 53 | default 0xc0000 if SOC_K3_J721E || SOC_K3_J721S2 || SOC_K3_J784S4 |
Dave Gerlach | 96571ec | 2021-04-23 11:27:32 -0500 | [diff] [blame] | 54 | default 0x180000 if SOC_K3_AM642 |
Bryan Brattlof | daa39a6 | 2022-11-03 19:13:55 -0500 | [diff] [blame] | 55 | default 0x38000 if SOC_K3_AM625 || SOC_K3_AM62A7 |
Lokesh Vutla | 3288644 | 2018-08-27 15:57:09 +0530 | [diff] [blame] | 56 | help |
| 57 | Describes the maximum size of the image that ROM can download |
| 58 | from any boot media. |
| 59 | |
| 60 | config SYS_K3_MCU_SCRATCHPAD_BASE |
| 61 | hex |
Andrew Davis | 1be5e97 | 2022-07-15 10:25:27 -0500 | [diff] [blame] | 62 | default 0x40280000 if SOC_K3_AM654 |
Apurva Nandan | 67ebc30 | 2024-02-24 01:51:41 +0530 | [diff] [blame^] | 63 | default 0x41cff9fc if SOC_K3_J721E || SOC_K3_J721S2 || SOC_K3_J784S4 |
Lokesh Vutla | 3288644 | 2018-08-27 15:57:09 +0530 | [diff] [blame] | 64 | help |
| 65 | Describes the base address of MCU Scratchpad RAM. |
| 66 | |
| 67 | config SYS_K3_MCU_SCRATCHPAD_SIZE |
| 68 | hex |
Andrew Davis | 1be5e97 | 2022-07-15 10:25:27 -0500 | [diff] [blame] | 69 | default 0x200 if SOC_K3_AM654 |
Apurva Nandan | 67ebc30 | 2024-02-24 01:51:41 +0530 | [diff] [blame^] | 70 | default 0x200 if SOC_K3_J721E || SOC_K3_J721S2 || SOC_K3_J784S4 |
Lokesh Vutla | 3288644 | 2018-08-27 15:57:09 +0530 | [diff] [blame] | 71 | help |
| 72 | Describes the size of MCU Scratchpad RAM. |
| 73 | |
Lokesh Vutla | c7bfb85 | 2018-08-27 15:57:11 +0530 | [diff] [blame] | 74 | config SYS_K3_BOOT_PARAM_TABLE_INDEX |
| 75 | hex |
Andrew Davis | 1be5e97 | 2022-07-15 10:25:27 -0500 | [diff] [blame] | 76 | default 0x41c7fbfc if SOC_K3_AM654 |
Andreas Dannenberg | 4524b3f | 2019-06-27 20:03:21 -0500 | [diff] [blame] | 77 | default 0x41cffbfc if SOC_K3_J721E |
Apurva Nandan | 67ebc30 | 2024-02-24 01:51:41 +0530 | [diff] [blame^] | 78 | default 0x41cfdbfc if SOC_K3_J721S2 || SOC_K3_J784S4 |
Dave Gerlach | 96571ec | 2021-04-23 11:27:32 -0500 | [diff] [blame] | 79 | default 0x701bebfc if SOC_K3_AM642 |
Bryan Brattlof | cdea121 | 2022-12-23 19:15:23 -0600 | [diff] [blame] | 80 | default 0x43c3f290 if SOC_K3_AM625 |
| 81 | default 0x43c3f290 if SOC_K3_AM62A7 && CPU_V7R |
| 82 | default 0x7000f290 if SOC_K3_AM62A7 && ARM64 |
Lokesh Vutla | c7bfb85 | 2018-08-27 15:57:11 +0530 | [diff] [blame] | 83 | help |
| 84 | Address at which ROM stores the value which determines if SPL |
| 85 | is booted up by primary boot media or secondary boot media. |
| 86 | |
Lokesh Vutla | 6b6a394 | 2018-11-02 19:51:04 +0530 | [diff] [blame] | 87 | config SYS_K3_KEY |
| 88 | string "Key used to generate x509 certificate" |
| 89 | help |
| 90 | This option enables to provide a custom key that can be used for |
| 91 | generating x509 certificate for spl binary. If not needed leave |
| 92 | it blank so that a random key is generated and used. |
| 93 | |
| 94 | config SYS_K3_BOOT_CORE_ID |
| 95 | int |
| 96 | default 16 |
| 97 | |
Andreas Dannenberg | d13ec8c | 2019-08-15 15:55:28 -0500 | [diff] [blame] | 98 | config K3_EARLY_CONS |
| 99 | bool "Activate to allow for an early console during SPL" |
| 100 | depends on SPL |
| 101 | help |
| 102 | Turn this option on to enable an early console functionality in SPL |
| 103 | before the main console is being brought up. This can be useful in |
| 104 | situations where the main console is dependent on System Firmware |
| 105 | (SYSFW) being up and running, which is usually not the case during |
| 106 | the very early stages of boot. Using this early console functionality |
| 107 | will allow for an alternate serial port to be used to support things |
| 108 | like UART-based boot and early diagnostic messages until the main |
| 109 | console is ready to get activated. |
| 110 | |
| 111 | config K3_EARLY_CONS_IDX |
| 112 | depends on K3_EARLY_CONS |
| 113 | int "Index of serial device to use for SPL early console" |
| 114 | default 1 |
| 115 | help |
| 116 | Use this option to set the index of the serial device to be used |
| 117 | for the early console during SPL execution. |
| 118 | |
Lokesh Vutla | 5d83fd2 | 2018-11-02 19:51:05 +0530 | [diff] [blame] | 119 | config SYS_K3_SPL_ATF |
| 120 | bool "Start Cortex-A from SPL" |
Andrew Davis | 05a116d | 2023-11-14 09:59:49 -0600 | [diff] [blame] | 121 | depends on CPU_V7R |
Lokesh Vutla | 5d83fd2 | 2018-11-02 19:51:05 +0530 | [diff] [blame] | 122 | help |
| 123 | Enabling this will try to start Cortex-A (typically with ATF) |
| 124 | after SPL from R5. |
| 125 | |
Aswath Govindraju | 560ea8a | 2021-06-04 22:00:31 +0530 | [diff] [blame] | 126 | config K3_ATF_LOAD_ADDR |
| 127 | hex "Load address of ATF image" |
| 128 | default 0x70000000 |
| 129 | help |
| 130 | The load address for the ATF image. This value defaults to 0x70000000 |
| 131 | if not provided in the board defconfig file. |
| 132 | |
Tero Kristo | 18b8c03 | 2021-06-11 11:45:03 +0300 | [diff] [blame] | 133 | config K3_DM_FW |
| 134 | bool "Separate DM firmware image" |
Apurva Nandan | 67ebc30 | 2024-02-24 01:51:41 +0530 | [diff] [blame^] | 135 | depends on CPU_V7R && (SOC_K3_J721E || SOC_K3_J721S2 || SOC_K3_AM625 || SOC_K3_AM62A7 || SOC_K3_J784S4) && !CLK_TI_SCI && !TI_SCI_POWER_DOMAIN |
Tero Kristo | 18b8c03 | 2021-06-11 11:45:03 +0300 | [diff] [blame] | 136 | default y |
| 137 | help |
| 138 | Enabling this will indicate that the system has separate DM |
| 139 | and TIFS firmware images in place, instead of a single SYSFW |
| 140 | firmware. Due to DM being executed on the same core as R5 SPL |
| 141 | bootloader, it makes RM and PM services not being available |
| 142 | during R5 SPL execution time. |
| 143 | |
Yogesh Siraswar | 26ebaed | 2022-07-15 11:38:53 -0500 | [diff] [blame] | 144 | config K3_X509_SWRV |
| 145 | int "SWRV for X509 certificate used for boot images" |
| 146 | default 1 |
| 147 | help |
| 148 | SWRV for X509 certificate used for boot images |
| 149 | |
Andrew Davis | c6f2a23 | 2023-11-14 09:59:50 -0600 | [diff] [blame] | 150 | if CPU_V7R |
| 151 | source "arch/arm/mach-k3/r5/Kconfig" |
| 152 | endif |
| 153 | |
Andrew Davis | ecfef3c | 2023-11-01 15:35:26 -0500 | [diff] [blame] | 154 | source "arch/arm/mach-k3/am65x/Kconfig" |
Andrew Davis | ac35ed3 | 2023-11-01 15:35:27 -0500 | [diff] [blame] | 155 | source "arch/arm/mach-k3/am64x/Kconfig" |
Andrew Davis | 308b600 | 2023-11-01 15:35:28 -0500 | [diff] [blame] | 156 | source "arch/arm/mach-k3/am62x/Kconfig" |
Andrew Davis | 11ab49e | 2023-11-01 15:35:29 -0500 | [diff] [blame] | 157 | source "arch/arm/mach-k3/am62ax/Kconfig" |
Andrew Davis | ec2d812 | 2023-11-01 15:35:25 -0500 | [diff] [blame] | 158 | source "arch/arm/mach-k3/j721e/Kconfig" |
Andrew Davis | ba38c1b | 2023-11-01 15:35:30 -0500 | [diff] [blame] | 159 | source "arch/arm/mach-k3/j721s2/Kconfig" |
Andrew Davis | 308b600 | 2023-11-01 15:35:28 -0500 | [diff] [blame] | 160 | |
Lokesh Vutla | 9bdec00 | 2018-08-27 15:57:08 +0530 | [diff] [blame] | 161 | endif |