blob: a01bf23514990e3bdb2b18d37926975b814c275b [file] [log] [blame]
Lokesh Vutla586bde92018-08-27 15:57:08 +05301if ARCH_K3
2
3choice
4 prompt "Texas Instruments' K3 based SoC select"
5 optional
6
Lokesh Vutlaed0e6052018-08-27 15:57:09 +05307config SOC_K3_AM6
8 bool "TI's K3 based AM6 SoC Family Support"
9
Lokesh Vutlac2562d72019-06-13 10:29:42 +053010config SOC_K3_J721E
11 bool "TI's K3 based J721E SoC Family Support"
12
David Huang681023a2022-01-25 20:56:31 +053013config SOC_K3_J721S2
14 bool "TI's K3 based J721S2 SoC Family Support"
15
Dave Gerlacheb541682021-04-23 11:27:32 -050016config SOC_K3_AM642
17 bool "TI's K3 based AM642 SoC Family Support"
18
Lokesh Vutla586bde92018-08-27 15:57:08 +053019endchoice
20
21config SYS_SOC
22 default "k3"
23
Lokesh Vutlaed0e6052018-08-27 15:57:09 +053024config SYS_K3_NON_SECURE_MSRAM_SIZE
25 hex
Lokesh Vutlac2562d72019-06-13 10:29:42 +053026 default 0x80000 if SOC_K3_AM6
David Huang681023a2022-01-25 20:56:31 +053027 default 0x100000 if SOC_K3_J721E || SOC_K3_J721S2
Dave Gerlacheb541682021-04-23 11:27:32 -050028 default 0x1c0000 if SOC_K3_AM642
Lokesh Vutlaed0e6052018-08-27 15:57:09 +053029 help
Dave Gerlacheb541682021-04-23 11:27:32 -050030 Describes the total size of the MCU or OCMC MSRAM present on
31 the SoC in use. This doesn't specify the total size of SPL as
32 ROM can use some part of this RAM. Once ROM gives control to
33 SPL then this complete size can be usable.
Lokesh Vutlaed0e6052018-08-27 15:57:09 +053034
35config SYS_K3_MAX_DOWNLODABLE_IMAGE_SIZE
36 hex
Lokesh Vutlac2562d72019-06-13 10:29:42 +053037 default 0x58000 if SOC_K3_AM6
David Huang681023a2022-01-25 20:56:31 +053038 default 0xc0000 if SOC_K3_J721E || SOC_K3_J721S2
Dave Gerlacheb541682021-04-23 11:27:32 -050039 default 0x180000 if SOC_K3_AM642
Lokesh Vutlaed0e6052018-08-27 15:57:09 +053040 help
41 Describes the maximum size of the image that ROM can download
42 from any boot media.
43
44config SYS_K3_MCU_SCRATCHPAD_BASE
45 hex
46 default 0x40280000 if SOC_K3_AM6
David Huang681023a2022-01-25 20:56:31 +053047 default 0x40280000 if SOC_K3_J721E || SOC_K3_J721S2
Lokesh Vutlaed0e6052018-08-27 15:57:09 +053048 help
49 Describes the base address of MCU Scratchpad RAM.
50
51config SYS_K3_MCU_SCRATCHPAD_SIZE
52 hex
53 default 0x200 if SOC_K3_AM6
David Huang681023a2022-01-25 20:56:31 +053054 default 0x200 if SOC_K3_J721E || SOC_K3_J721S2
Lokesh Vutlaed0e6052018-08-27 15:57:09 +053055 help
56 Describes the size of MCU Scratchpad RAM.
57
Lokesh Vutlae0064602018-08-27 15:57:11 +053058config SYS_K3_BOOT_PARAM_TABLE_INDEX
59 hex
60 default 0x41c7fbfc if SOC_K3_AM6
Andreas Dannenberga06df8f2019-06-27 20:03:21 -050061 default 0x41cffbfc if SOC_K3_J721E
David Huang681023a2022-01-25 20:56:31 +053062 default 0x41cfdbfc if SOC_K3_J721S2
Dave Gerlacheb541682021-04-23 11:27:32 -050063 default 0x701bebfc if SOC_K3_AM642
Lokesh Vutlae0064602018-08-27 15:57:11 +053064 help
65 Address at which ROM stores the value which determines if SPL
66 is booted up by primary boot media or secondary boot media.
67
Lokesh Vutla890b2e72018-11-02 19:51:04 +053068config SYS_K3_KEY
69 string "Key used to generate x509 certificate"
70 help
71 This option enables to provide a custom key that can be used for
72 generating x509 certificate for spl binary. If not needed leave
73 it blank so that a random key is generated and used.
74
75config SYS_K3_BOOT_CORE_ID
76 int
77 default 16
78
Andreas Dannenberge630afe12019-08-15 15:55:28 -050079config K3_EARLY_CONS
80 bool "Activate to allow for an early console during SPL"
81 depends on SPL
82 help
83 Turn this option on to enable an early console functionality in SPL
84 before the main console is being brought up. This can be useful in
85 situations where the main console is dependent on System Firmware
86 (SYSFW) being up and running, which is usually not the case during
87 the very early stages of boot. Using this early console functionality
88 will allow for an alternate serial port to be used to support things
89 like UART-based boot and early diagnostic messages until the main
90 console is ready to get activated.
91
92config K3_EARLY_CONS_IDX
93 depends on K3_EARLY_CONS
94 int "Index of serial device to use for SPL early console"
95 default 1
96 help
97 Use this option to set the index of the serial device to be used
98 for the early console during SPL execution.
99
Andreas Dannenberg6df87062019-06-04 17:55:47 -0500100config K3_LOAD_SYSFW
101 bool
102 depends on SPL
103
104config K3_SYSFW_IMAGE_NAME
105 string "File name of SYSFW firmware and configuration blob"
106 depends on K3_LOAD_SYSFW
107 default "sysfw.itb"
108 help
109 Filename of the combined System Firmware and configuration image tree
110 blob to be loaded when booting from a filesystem.
111
112config K3_SYSFW_IMAGE_MMCSD_RAW_MODE_SECT
113 hex "MMC sector to load SYSFW firmware and configuration blob from"
114 depends on K3_LOAD_SYSFW && SYS_MMCSD_RAW_MODE_U_BOOT_USE_SECTOR
115 default 0x3600
116 help
117 Address on the MMC to load the combined System Firmware and
118 configuration image tree blob from, when the MMC is being used
119 in raw mode. Units: MMC sectors (1 sector = 512 bytes).
120
121config K3_SYSFW_IMAGE_MMCSD_RAW_MODE_PART
122 hex "MMC partition to load SYSFW firmware and configuration blob from"
123 depends on K3_LOAD_SYSFW && SYS_MMCSD_RAW_MODE_U_BOOT_USE_PARTITION
124 default 2
125 help
126 Partition on the MMC to the combined System Firmware and configuration
127 image tree blob from, when the MMC is being used in raw mode.
128
129config K3_SYSFW_IMAGE_SIZE_MAX
130 int "Amount of memory dynamically allocated for loading SYSFW blob"
131 depends on K3_LOAD_SYSFW
Andrew F. Davisb76bea12020-04-30 15:12:19 -0400132 default 278000
Andreas Dannenberg6df87062019-06-04 17:55:47 -0500133 help
134 Amount of memory (in bytes) reserved through dynamic allocation at
135 runtime for loading the combined System Firmware and configuration image
136 tree blob. Keep it as tight as possible, as this directly affects the
137 overall SPL memory footprint.
138
Lokesh Vutla7d0866b2020-02-04 11:09:50 +0530139config K3_SYSFW_IMAGE_SPI_OFFS
140 hex "SPI offset of SYSFW firmware and configuration blob"
141 depends on K3_LOAD_SYSFW
142 default 0x6C0000
143 help
144 Offset of the combined System Firmware and configuration image tree
145 blob to be loaded when booting from a SPI flash memory.
146
Lokesh Vutlaa3501a42018-11-02 19:51:05 +0530147config SYS_K3_SPL_ATF
148 bool "Start Cortex-A from SPL"
149 depends on SPL && CPU_V7R
150 help
151 Enabling this will try to start Cortex-A (typically with ATF)
152 after SPL from R5.
153
Aswath Govindraju0c515092021-06-04 22:00:31 +0530154config K3_ATF_LOAD_ADDR
155 hex "Load address of ATF image"
156 default 0x70000000
157 help
158 The load address for the ATF image. This value defaults to 0x70000000
159 if not provided in the board defconfig file.
160
Tero Kristo99214c12021-06-11 11:45:03 +0300161config K3_DM_FW
162 bool "Separate DM firmware image"
David Huang681023a2022-01-25 20:56:31 +0530163 depends on SPL && CPU_V7R && (SOC_K3_J721E || SOC_K3_J721S2) && !CLK_TI_SCI && !TI_SCI_POWER_DOMAIN
Tero Kristo99214c12021-06-11 11:45:03 +0300164 default y
165 help
166 Enabling this will indicate that the system has separate DM
167 and TIFS firmware images in place, instead of a single SYSFW
168 firmware. Due to DM being executed on the same core as R5 SPL
169 bootloader, it makes RM and PM services not being available
170 during R5 SPL execution time.
171
Lokesh Vutla0911d952018-08-27 15:59:06 +0530172source "board/ti/am65x/Kconfig"
Dave Gerlach33b72582021-04-23 11:27:42 -0500173source "board/ti/am64x/Kconfig"
Lokesh Vutlaf8185032019-06-13 10:29:49 +0530174source "board/ti/j721e/Kconfig"
Jan Kiszkaa2db09e2021-09-18 08:17:53 +0200175source "board/siemens/iot2050/Kconfig"
David Huang681023a2022-01-25 20:56:31 +0530176source "board/ti/j721s2/Kconfig"
Lokesh Vutla586bde92018-08-27 15:57:08 +0530177endif