blob: f1578b10bcc5150505fa3ef13929f671eecec9fc [file] [log] [blame]
York Sunb3d71642016-09-26 08:09:26 -07001config ARCH_LS1012A
York Sunfcd0e742016-10-04 14:31:47 -07002 bool
Hou Zhiqiang4d1525a2017-01-06 17:41:11 +08003 select ARMV8_SET_SMPEN
Rajesh Bhagatcd786e82018-11-05 18:01:48 +00004 select ARM_ERRATA_855873 if !TFABOOT
Rajesh Bhagat52d237a2019-01-25 13:36:26 +00005 select FSL_LAYERSCAPE
York Sun4dd8c612016-10-04 14:31:48 -07006 select FSL_LSCH2
Sriram Dash4a943332018-01-30 15:58:44 +05307 select SYS_FSL_SRDS_1
8 select SYS_HAS_SERDES
York Sunb6fffd82016-10-04 18:03:08 -07009 select SYS_FSL_DDR_BE
York Sunb3d71642016-09-26 08:09:26 -070010 select SYS_FSL_MMDC
York Sun149eb332016-09-26 08:09:27 -070011 select SYS_FSL_ERRATUM_A010315
Ran Wang02dc77b2017-11-13 16:14:48 +080012 select SYS_FSL_ERRATUM_A009798
13 select SYS_FSL_ERRATUM_A008997
14 select SYS_FSL_ERRATUM_A009007
15 select SYS_FSL_ERRATUM_A009008
Simon Glass62adede2017-01-23 13:31:19 -070016 select ARCH_EARLY_INIT_R
Simon Glass7a99a872017-01-23 13:31:20 -070017 select BOARD_EARLY_INIT_F
Sriram Dash7122a0c2018-02-06 11:26:30 +053018 select SYS_I2C_MXC
19 select SYS_I2C_MXC_I2C1
20 select SYS_I2C_MXC_I2C2
Masahiro Yamadaacede7a2017-12-04 12:37:00 +090021 imply PANIC_HANG
York Sun149eb332016-09-26 08:09:27 -070022
Yuantian Tang4aefa162019-04-10 16:43:33 +080023config ARCH_LS1028A
24 bool
25 select ARMV8_SET_SMPEN
26 select FSL_LSCH3
27 select NXP_LSCH3_2
28 select SYS_FSL_HAS_CCI400
29 select SYS_FSL_SRDS_1
30 select SYS_HAS_SERDES
31 select SYS_FSL_DDR
32 select SYS_FSL_DDR_LE
33 select SYS_FSL_DDR_VER_50
34 select SYS_FSL_HAS_DDR3
35 select SYS_FSL_HAS_DDR4
36 select SYS_FSL_HAS_SEC
37 select SYS_FSL_SEC_COMPAT_5
38 select SYS_FSL_SEC_LE
39 select FSL_TZASC_1
40 select ARCH_EARLY_INIT_R
41 select BOARD_EARLY_INIT_F
42 select SYS_I2C_MXC
Ran Wange118acb2019-05-14 17:34:56 +080043 select SYS_FSL_ERRATUM_A008997
Yuantian Tang4aefa162019-04-10 16:43:33 +080044 select SYS_FSL_ERRATUM_A009007
45 select SYS_FSL_ERRATUM_A008514 if !TFABOOT
46 select SYS_FSL_ERRATUM_A009663 if !TFABOOT
47 select SYS_FSL_ERRATUM_A009942 if !TFABOOT
Laurentiu Tudor7ea2feb2019-10-18 09:01:56 +000048 select SYS_FSL_ERRATUM_A050382
Yuantian Tang4aefa162019-04-10 16:43:33 +080049 imply PANIC_HANG
50
York Sun149eb332016-09-26 08:09:27 -070051config ARCH_LS1043A
York Sunfcd0e742016-10-04 14:31:47 -070052 bool
Hou Zhiqiang4d1525a2017-01-06 17:41:11 +080053 select ARMV8_SET_SMPEN
Rajesh Bhagatcd786e82018-11-05 18:01:48 +000054 select ARM_ERRATA_855873 if !TFABOOT
Rajesh Bhagat52d237a2019-01-25 13:36:26 +000055 select FSL_LAYERSCAPE
York Sun4dd8c612016-10-04 14:31:48 -070056 select FSL_LSCH2
Sriram Dash4a943332018-01-30 15:58:44 +053057 select SYS_FSL_SRDS_1
58 select SYS_HAS_SERDES
York Sund297d392016-12-28 08:43:40 -080059 select SYS_FSL_DDR
York Sunb6fffd82016-10-04 18:03:08 -070060 select SYS_FSL_DDR_BE
61 select SYS_FSL_DDR_VER_50
Rajesh Bhagatcd786e82018-11-05 18:01:48 +000062 select SYS_FSL_ERRATUM_A008850 if !TFABOOT
Ran Wange64f7472017-09-04 18:46:50 +080063 select SYS_FSL_ERRATUM_A008997
Ran Wang3ba69482017-09-04 18:46:51 +080064 select SYS_FSL_ERRATUM_A009007
Ran Wangb358b7b2017-09-04 18:46:48 +080065 select SYS_FSL_ERRATUM_A009008
Rajesh Bhagatcd786e82018-11-05 18:01:48 +000066 select SYS_FSL_ERRATUM_A009660 if !TFABOOT
67 select SYS_FSL_ERRATUM_A009663 if !TFABOOT
Ran Wang9e8fabc2017-09-04 18:46:49 +080068 select SYS_FSL_ERRATUM_A009798
York Sun1dc61ca2016-12-28 08:43:41 -080069 select SYS_FSL_ERRATUM_A009929
Rajesh Bhagatcd786e82018-11-05 18:01:48 +000070 select SYS_FSL_ERRATUM_A009942 if !TFABOOT
York Sun149eb332016-09-26 08:09:27 -070071 select SYS_FSL_ERRATUM_A010315
Hou Zhiqiangc06b30a2016-09-29 12:42:44 +080072 select SYS_FSL_ERRATUM_A010539
York Sund297d392016-12-28 08:43:40 -080073 select SYS_FSL_HAS_DDR3
74 select SYS_FSL_HAS_DDR4
Simon Glass62adede2017-01-23 13:31:19 -070075 select ARCH_EARLY_INIT_R
Simon Glass7a99a872017-01-23 13:31:20 -070076 select BOARD_EARLY_INIT_F
Sriram Dash7122a0c2018-02-06 11:26:30 +053077 select SYS_I2C_MXC
78 select SYS_I2C_MXC_I2C1
79 select SYS_I2C_MXC_I2C2
80 select SYS_I2C_MXC_I2C3
81 select SYS_I2C_MXC_I2C4
Simon Glassc88a09a2017-08-04 16:34:34 -060082 imply CMD_PCI
York Sunb3d71642016-09-26 08:09:26 -070083
York Sunbad49842016-09-26 08:09:24 -070084config ARCH_LS1046A
York Sunfcd0e742016-10-04 14:31:47 -070085 bool
Hou Zhiqiang4d1525a2017-01-06 17:41:11 +080086 select ARMV8_SET_SMPEN
Rajesh Bhagat52d237a2019-01-25 13:36:26 +000087 select FSL_LAYERSCAPE
York Sun4dd8c612016-10-04 14:31:48 -070088 select FSL_LSCH2
Sriram Dash4a943332018-01-30 15:58:44 +053089 select SYS_FSL_SRDS_1
90 select SYS_HAS_SERDES
York Sund297d392016-12-28 08:43:40 -080091 select SYS_FSL_DDR
York Sunb6fffd82016-10-04 18:03:08 -070092 select SYS_FSL_DDR_BE
York Sunb6fffd82016-10-04 18:03:08 -070093 select SYS_FSL_DDR_VER_50
Rajesh Bhagatcd786e82018-11-05 18:01:48 +000094 select SYS_FSL_ERRATUM_A008336 if !TFABOOT
95 select SYS_FSL_ERRATUM_A008511 if !TFABOOT
96 select SYS_FSL_ERRATUM_A008850 if !TFABOOT
Ran Wange64f7472017-09-04 18:46:50 +080097 select SYS_FSL_ERRATUM_A008997
Ran Wang3ba69482017-09-04 18:46:51 +080098 select SYS_FSL_ERRATUM_A009007
Ran Wangb358b7b2017-09-04 18:46:48 +080099 select SYS_FSL_ERRATUM_A009008
Ran Wang9e8fabc2017-09-04 18:46:49 +0800100 select SYS_FSL_ERRATUM_A009798
York Sun1dc61ca2016-12-28 08:43:41 -0800101 select SYS_FSL_ERRATUM_A009801
Rajesh Bhagatcd786e82018-11-05 18:01:48 +0000102 select SYS_FSL_ERRATUM_A009803 if !TFABOOT
103 select SYS_FSL_ERRATUM_A009942 if !TFABOOT
104 select SYS_FSL_ERRATUM_A010165 if !TFABOOT
Hou Zhiqiangc06b30a2016-09-29 12:42:44 +0800105 select SYS_FSL_ERRATUM_A010539
York Sund297d392016-12-28 08:43:40 -0800106 select SYS_FSL_HAS_DDR4
York Sun6b62ef02016-10-04 18:01:34 -0700107 select SYS_FSL_SRDS_2
Simon Glass62adede2017-01-23 13:31:19 -0700108 select ARCH_EARLY_INIT_R
Simon Glass7a99a872017-01-23 13:31:20 -0700109 select BOARD_EARLY_INIT_F
Sriram Dash7122a0c2018-02-06 11:26:30 +0530110 select SYS_I2C_MXC
111 select SYS_I2C_MXC_I2C1
112 select SYS_I2C_MXC_I2C2
113 select SYS_I2C_MXC_I2C3
114 select SYS_I2C_MXC_I2C4
Simon Glass0e5faf02017-06-14 21:28:21 -0600115 imply SCSI
Tuomas Tynkkynenedf9f622017-12-08 15:36:19 +0200116 imply SCSI_AHCI
York Sunb3d71642016-09-26 08:09:26 -0700117
Ashish Kumarb25faa22017-08-31 16:12:53 +0530118config ARCH_LS1088A
119 bool
120 select ARMV8_SET_SMPEN
Pankit Gargf5c2a832018-12-27 04:37:55 +0000121 select ARM_ERRATA_855873 if !TFABOOT
Rajesh Bhagat52d237a2019-01-25 13:36:26 +0000122 select FSL_LAYERSCAPE
Ashish Kumarb25faa22017-08-31 16:12:53 +0530123 select FSL_LSCH3
Sriram Dash4a943332018-01-30 15:58:44 +0530124 select SYS_FSL_SRDS_1
125 select SYS_HAS_SERDES
Ashish Kumarb25faa22017-08-31 16:12:53 +0530126 select SYS_FSL_DDR
127 select SYS_FSL_DDR_LE
128 select SYS_FSL_DDR_VER_50
Ashish Kumarec455e22017-08-31 16:37:31 +0530129 select SYS_FSL_EC1
130 select SYS_FSL_EC2
Pankit Gargf5c2a832018-12-27 04:37:55 +0000131 select SYS_FSL_ERRATUM_A009803 if !TFABOOT
132 select SYS_FSL_ERRATUM_A009942 if !TFABOOT
133 select SYS_FSL_ERRATUM_A010165 if !TFABOOT
134 select SYS_FSL_ERRATUM_A008511 if !TFABOOT
135 select SYS_FSL_ERRATUM_A008850 if !TFABOOT
Ran Wangef277072017-09-22 15:21:34 +0800136 select SYS_FSL_ERRATUM_A009007
Ashish Kumarb25faa22017-08-31 16:12:53 +0530137 select SYS_FSL_HAS_CCI400
138 select SYS_FSL_HAS_DDR4
Ashish Kumarec455e22017-08-31 16:37:31 +0530139 select SYS_FSL_HAS_RGMII
Ashish Kumarb25faa22017-08-31 16:12:53 +0530140 select SYS_FSL_HAS_SEC
141 select SYS_FSL_SEC_COMPAT_5
142 select SYS_FSL_SEC_LE
143 select SYS_FSL_SRDS_1
144 select SYS_FSL_SRDS_2
145 select FSL_TZASC_1
Rajesh Bhagat5756f7e2019-01-20 05:30:06 +0000146 select FSL_TZASC_400
147 select FSL_TZPC_BP147
Ashish Kumarb25faa22017-08-31 16:12:53 +0530148 select ARCH_EARLY_INIT_R
149 select BOARD_EARLY_INIT_F
Sriram Dash7122a0c2018-02-06 11:26:30 +0530150 select SYS_I2C_MXC
Chuanhua Han98a5e402019-07-26 20:25:37 +0800151 select SYS_I2C_MXC_I2C1 if !TFABOOT
152 select SYS_I2C_MXC_I2C2 if !TFABOOT
153 select SYS_I2C_MXC_I2C3 if !TFABOOT
154 select SYS_I2C_MXC_I2C4 if !TFABOOT
Ashish Kumara179e562017-11-02 09:50:47 +0530155 imply SCSI
Masahiro Yamadaacede7a2017-12-04 12:37:00 +0900156 imply PANIC_HANG
Ashish Kumarb25faa22017-08-31 16:12:53 +0530157
York Sunfcd0e742016-10-04 14:31:47 -0700158config ARCH_LS2080A
159 bool
Hou Zhiqiang4d1525a2017-01-06 17:41:11 +0800160 select ARMV8_SET_SMPEN
Tom Rinibacb52c2017-03-07 07:13:42 -0500161 select ARM_ERRATA_826974
162 select ARM_ERRATA_828024
163 select ARM_ERRATA_829520
164 select ARM_ERRATA_833471
Rajesh Bhagat52d237a2019-01-25 13:36:26 +0000165 select FSL_LAYERSCAPE
York Sun4dd8c612016-10-04 14:31:48 -0700166 select FSL_LSCH3
Sriram Dash4a943332018-01-30 15:58:44 +0530167 select SYS_FSL_SRDS_1
168 select SYS_HAS_SERDES
York Sund297d392016-12-28 08:43:40 -0800169 select SYS_FSL_DDR
York Sunb6fffd82016-10-04 18:03:08 -0700170 select SYS_FSL_DDR_LE
171 select SYS_FSL_DDR_VER_50
Ashish Kumar97393d62017-08-18 10:54:36 +0530172 select SYS_FSL_HAS_CCN504
York Sun6b62ef02016-10-04 18:01:34 -0700173 select SYS_FSL_HAS_DP_DDR
York Sun92c36e22016-12-28 08:43:30 -0800174 select SYS_FSL_HAS_SEC
York Sund297d392016-12-28 08:43:40 -0800175 select SYS_FSL_HAS_DDR4
York Sun92c36e22016-12-28 08:43:30 -0800176 select SYS_FSL_SEC_COMPAT_5
York Sunfa4199422016-12-28 08:43:31 -0800177 select SYS_FSL_SEC_LE
York Sun6b62ef02016-10-04 18:01:34 -0700178 select SYS_FSL_SRDS_2
Ashish kumar76bd6ce2017-04-07 11:40:32 +0530179 select FSL_TZASC_1
180 select FSL_TZASC_2
Rajesh Bhagat5756f7e2019-01-20 05:30:06 +0000181 select FSL_TZASC_400
182 select FSL_TZPC_BP147
Rajesh Bhagatd5691be2018-12-27 04:37:59 +0000183 select SYS_FSL_ERRATUM_A008336 if !TFABOOT
184 select SYS_FSL_ERRATUM_A008511 if !TFABOOT
185 select SYS_FSL_ERRATUM_A008514 if !TFABOOT
York Sun1dc61ca2016-12-28 08:43:41 -0800186 select SYS_FSL_ERRATUM_A008585
Ran Wange64f7472017-09-04 18:46:50 +0800187 select SYS_FSL_ERRATUM_A008997
Ran Wang3ba69482017-09-04 18:46:51 +0800188 select SYS_FSL_ERRATUM_A009007
Ran Wangb358b7b2017-09-04 18:46:48 +0800189 select SYS_FSL_ERRATUM_A009008
York Sun1dc61ca2016-12-28 08:43:41 -0800190 select SYS_FSL_ERRATUM_A009635
Rajesh Bhagatd5691be2018-12-27 04:37:59 +0000191 select SYS_FSL_ERRATUM_A009663 if !TFABOOT
Ran Wang9e8fabc2017-09-04 18:46:49 +0800192 select SYS_FSL_ERRATUM_A009798
York Sun1dc61ca2016-12-28 08:43:41 -0800193 select SYS_FSL_ERRATUM_A009801
Rajesh Bhagatd5691be2018-12-27 04:37:59 +0000194 select SYS_FSL_ERRATUM_A009803 if !TFABOOT
195 select SYS_FSL_ERRATUM_A009942 if !TFABOOT
196 select SYS_FSL_ERRATUM_A010165 if !TFABOOT
Ashish kumar3b52a232017-02-23 16:03:57 +0530197 select SYS_FSL_ERRATUM_A009203
Simon Glass62adede2017-01-23 13:31:19 -0700198 select ARCH_EARLY_INIT_R
Simon Glass7a99a872017-01-23 13:31:20 -0700199 select BOARD_EARLY_INIT_F
Sriram Dash7122a0c2018-02-06 11:26:30 +0530200 select SYS_I2C_MXC
Chuanhua Han3f27fff2019-07-26 19:24:03 +0800201 select SYS_I2C_MXC_I2C1 if !TFABOOT
202 select SYS_I2C_MXC_I2C2 if !TFABOOT
203 select SYS_I2C_MXC_I2C3 if !TFABOOT
204 select SYS_I2C_MXC_I2C4 if !TFABOOT
Masahiro Yamada9afc6c52018-04-25 18:47:52 +0900205 imply DISTRO_DEFAULTS
Masahiro Yamadaacede7a2017-12-04 12:37:00 +0900206 imply PANIC_HANG
York Sun4dd8c612016-10-04 14:31:48 -0700207
Priyanka Jainef76b2e2018-10-29 09:17:09 +0000208config ARCH_LX2160A
209 bool
210 select ARMV8_SET_SMPEN
211 select FSL_LSCH3
212 select NXP_LSCH3_2
213 select SYS_HAS_SERDES
214 select SYS_FSL_SRDS_1
215 select SYS_FSL_SRDS_2
216 select SYS_NXP_SRDS_3
217 select SYS_FSL_DDR
218 select SYS_FSL_DDR_LE
219 select SYS_FSL_DDR_VER_50
220 select SYS_FSL_EC1
221 select SYS_FSL_EC2
222 select SYS_FSL_HAS_RGMII
223 select SYS_FSL_HAS_SEC
224 select SYS_FSL_HAS_CCN508
225 select SYS_FSL_HAS_DDR4
226 select SYS_FSL_SEC_COMPAT_5
227 select SYS_FSL_SEC_LE
228 select ARCH_EARLY_INIT_R
229 select BOARD_EARLY_INIT_F
230 select SYS_I2C_MXC
Priyanka Jainef76b2e2018-10-29 09:17:09 +0000231 imply DISTRO_DEFAULTS
232 imply PANIC_HANG
233 imply SCSI
234 imply SCSI_AHCI
235
York Sun4dd8c612016-10-04 14:31:48 -0700236config FSL_LSCH2
237 bool
Ashish Kumar11234062017-08-11 11:09:14 +0530238 select SYS_FSL_HAS_CCI400
York Sun92c36e22016-12-28 08:43:30 -0800239 select SYS_FSL_HAS_SEC
240 select SYS_FSL_SEC_COMPAT_5
York Sunfa4199422016-12-28 08:43:31 -0800241 select SYS_FSL_SEC_BE
York Sun4dd8c612016-10-04 14:31:48 -0700242
243config FSL_LSCH3
244 bool
245
Priyanka Jain88c25662018-10-29 09:11:29 +0000246config NXP_LSCH3_2
247 bool
248
York Sun4dd8c612016-10-04 14:31:48 -0700249menu "Layerscape architecture"
250 depends on FSL_LSCH2 || FSL_LSCH3
York Sunfcd0e742016-10-04 14:31:47 -0700251
Rajesh Bhagat52d237a2019-01-25 13:36:26 +0000252config FSL_LAYERSCAPE
253 bool
254
Hou Zhiqiangd553bf22016-12-13 14:54:24 +0800255config FSL_PCIE_COMPAT
256 string "PCIe compatible of Kernel DT"
Hou Zhiqiang2b08d142019-04-08 10:15:50 +0000257 depends on PCIE_LAYERSCAPE || PCIE_LAYERSCAPE_GEN4
Hou Zhiqiangd553bf22016-12-13 14:54:24 +0800258 default "fsl,ls1012a-pcie" if ARCH_LS1012A
Yuantian Tang4aefa162019-04-10 16:43:33 +0800259 default "fsl,ls1028a-pcie" if ARCH_LS1028A
Hou Zhiqiangd553bf22016-12-13 14:54:24 +0800260 default "fsl,ls1043a-pcie" if ARCH_LS1043A
261 default "fsl,ls1046a-pcie" if ARCH_LS1046A
262 default "fsl,ls2080a-pcie" if ARCH_LS2080A
Ashish Kumarb25faa22017-08-31 16:12:53 +0530263 default "fsl,ls1088a-pcie" if ARCH_LS1088A
Priyanka Jainef76b2e2018-10-29 09:17:09 +0000264 default "fsl,lx2160a-pcie" if ARCH_LX2160A
Hou Zhiqiangd553bf22016-12-13 14:54:24 +0800265 help
266 This compatible is used to find pci controller node in Kernel DT
267 to complete fixup.
268
Wenbin Songa8f57a92017-01-17 18:31:15 +0800269config HAS_FEATURE_GIC64K_ALIGN
270 bool
271 default y if ARCH_LS1043A
272
Wenbin Songc6bc7c02017-01-17 18:31:16 +0800273config HAS_FEATURE_ENHANCED_MSI
274 bool
275 default y if ARCH_LS1043A
Wenbin Songa8f57a92017-01-17 18:31:15 +0800276
macro.wave.z@gmail.comec2d7ed2016-12-08 11:58:21 +0800277menu "Layerscape PPA"
278config FSL_LS_PPA
279 bool "FSL Layerscape PPA firmware support"
macro.wave.z@gmail.com01bd3342016-12-08 11:58:22 +0800280 depends on !ARMV8_PSCI
Hou Zhiqiangbff56d52017-01-16 17:31:49 +0800281 select ARMV8_SEC_FIRMWARE_SUPPORT
Hou Zhiqiang6be115d2017-01-16 17:31:48 +0800282 select SEC_FIRMWARE_ARMV8_PSCI
Hou Zhiqiangbff56d52017-01-16 17:31:49 +0800283 select ARMV8_SEC_FIRMWARE_ERET_ADDR_REVERT if FSL_LSCH2
macro.wave.z@gmail.comec2d7ed2016-12-08 11:58:21 +0800284 help
285 The FSL Primary Protected Application (PPA) is a software component
286 which is loaded during boot stage, and then remains resident in RAM
287 and runs in the TrustZone after boot.
288 Say y to enable it.
York Sunf2aaf842017-05-15 08:52:00 -0700289
290config SPL_FSL_LS_PPA
291 bool "FSL Layerscape PPA firmware support for SPL build"
292 depends on !ARMV8_PSCI
293 select SPL_ARMV8_SEC_FIRMWARE_SUPPORT
294 select SEC_FIRMWARE_ARMV8_PSCI
295 select ARMV8_SEC_FIRMWARE_ERET_ADDR_REVERT if FSL_LSCH2
296 help
297 The FSL Primary Protected Application (PPA) is a software component
298 which is loaded during boot stage, and then remains resident in RAM
299 and runs in the TrustZone after boot. This is to load PPA during SPL
300 stage instead of the RAM version of U-Boot. Once PPA is initialized,
301 the rest of U-Boot (including RAM version) runs at EL2.
Hou Zhiqiangbff56d52017-01-16 17:31:49 +0800302choice
303 prompt "FSL Layerscape PPA firmware loading-media select"
304 depends on FSL_LS_PPA
Hou Zhiqiangbd6e2cd2017-03-17 16:12:33 +0800305 default SYS_LS_PPA_FW_IN_MMC if SD_BOOT
306 default SYS_LS_PPA_FW_IN_NAND if NAND_BOOT
Hou Zhiqiangbff56d52017-01-16 17:31:49 +0800307 default SYS_LS_PPA_FW_IN_XIP
308
309config SYS_LS_PPA_FW_IN_XIP
310 bool "XIP"
311 help
312 Say Y here if the PPA firmware locate at XIP flash, such
313 as NOR or QSPI flash.
314
Hou Zhiqiangbd6e2cd2017-03-17 16:12:33 +0800315config SYS_LS_PPA_FW_IN_MMC
316 bool "eMMC or SD Card"
317 help
318 Say Y here if the PPA firmware locate at eMMC/SD card.
319
320config SYS_LS_PPA_FW_IN_NAND
321 bool "NAND"
322 help
323 Say Y here if the PPA firmware locate at NAND flash.
324
Hou Zhiqiangbff56d52017-01-16 17:31:49 +0800325endchoice
326
Sumit Garg8fddf752017-04-20 05:09:11 +0530327config LS_PPA_ESBC_HDR_SIZE
328 hex "Length of PPA ESBC header"
329 depends on FSL_LS_PPA && CHAIN_OF_TRUST && !SYS_LS_PPA_FW_IN_XIP
330 default 0x2000
331 help
332 Length (in bytes) of PPA ESBC header to be copied from MMC/SD or
333 NAND to memory to validate PPA image.
334
macro.wave.z@gmail.comec2d7ed2016-12-08 11:58:21 +0800335endmenu
336
Ran Wange64f7472017-09-04 18:46:50 +0800337config SYS_FSL_ERRATUM_A008997
338 bool "Workaround for USB PHY erratum A008997"
339
Ran Wang3ba69482017-09-04 18:46:51 +0800340config SYS_FSL_ERRATUM_A009007
341 bool
342 help
343 Workaround for USB PHY erratum A009007
344
Ran Wangb358b7b2017-09-04 18:46:48 +0800345config SYS_FSL_ERRATUM_A009008
346 bool "Workaround for USB PHY erratum A009008"
347
Ran Wang9e8fabc2017-09-04 18:46:49 +0800348config SYS_FSL_ERRATUM_A009798
349 bool "Workaround for USB PHY erratum A009798"
350
York Sun149eb332016-09-26 08:09:27 -0700351config SYS_FSL_ERRATUM_A010315
352 bool "Workaround for PCIe erratum A010315"
Hou Zhiqiangc06b30a2016-09-29 12:42:44 +0800353
354config SYS_FSL_ERRATUM_A010539
355 bool "Workaround for PIN MUX erratum A010539"
York Sun4dd8c612016-10-04 14:31:48 -0700356
York Sunf188d222016-10-04 14:45:01 -0700357config MAX_CPUS
358 int "Maximum number of CPUs permitted for Layerscape"
Yuantian Tang4aefa162019-04-10 16:43:33 +0800359 default 2 if ARCH_LS1028A
York Sunf188d222016-10-04 14:45:01 -0700360 default 4 if ARCH_LS1043A
361 default 4 if ARCH_LS1046A
362 default 16 if ARCH_LS2080A
Ashish Kumarb25faa22017-08-31 16:12:53 +0530363 default 8 if ARCH_LS1088A
Priyanka Jainef76b2e2018-10-29 09:17:09 +0000364 default 16 if ARCH_LX2160A
York Sunf188d222016-10-04 14:45:01 -0700365 default 1
366 help
367 Set this number to the maximum number of possible CPUs in the SoC.
368 SoCs may have multiple clusters with each cluster may have multiple
369 ports. If some ports are reserved but higher ports are used for
370 cores, count the reserved ports. This will allocate enough memory
371 in spin table to properly handle all cores.
372
Meenakshi Aggarwalbbd33182018-11-30 22:32:11 +0530373config EMC2305
374 bool "Fan controller"
375 help
376 Enable the EMC2305 fan controller for configuration of fan
377 speed.
378
Udit Agarwal22ec2382019-11-07 16:11:32 +0000379config NXP_ESBC
380 bool "NXP_ESBC"
York Sun728e7002016-12-02 09:32:35 -0800381 help
382 Enable Freescale Secure Boot feature
383
Yuan Yao52ae4fd2016-12-01 10:13:52 +0800384config QSPI_AHB_INIT
385 bool "Init the QSPI AHB bus"
386 help
387 The default setting for QSPI AHB bus just support 3bytes addressing.
388 But some QSPI flash size up to 64MBytes, so initialize the QSPI AHB
389 bus for those flashes to support the full QSPI flash size.
390
Ashish Kumar11234062017-08-11 11:09:14 +0530391config SYS_CCI400_OFFSET
392 hex "Offset for CCI400 base"
393 depends on SYS_FSL_HAS_CCI400
Yuantian Tang4aefa162019-04-10 16:43:33 +0800394 default 0x3090000 if ARCH_LS1088A || ARCH_LS1028A
Ashish Kumar11234062017-08-11 11:09:14 +0530395 default 0x180000 if FSL_LSCH2
396 help
397 Offset for CCI400 base
398 CCI400 base addr = CCSRBAR + CCI400_OFFSET
399
York Sune7310a32016-10-04 14:45:54 -0700400config SYS_FSL_IFC_BANK_COUNT
401 int "Maximum banks of Integrated flash controller"
Ashish Kumarb25faa22017-08-31 16:12:53 +0530402 depends on ARCH_LS1043A || ARCH_LS1046A || ARCH_LS2080A || ARCH_LS1088A
York Sune7310a32016-10-04 14:45:54 -0700403 default 4 if ARCH_LS1043A
404 default 4 if ARCH_LS1046A
Ashish Kumarb25faa22017-08-31 16:12:53 +0530405 default 8 if ARCH_LS2080A || ARCH_LS1088A
York Sune7310a32016-10-04 14:45:54 -0700406
Ashish Kumar11234062017-08-11 11:09:14 +0530407config SYS_FSL_HAS_CCI400
408 bool
409
Ashish Kumar97393d62017-08-18 10:54:36 +0530410config SYS_FSL_HAS_CCN504
411 bool
412
Priyanka Jainef76b2e2018-10-29 09:17:09 +0000413config SYS_FSL_HAS_CCN508
414 bool
415
York Sun0dc9abb2016-10-04 14:46:50 -0700416config SYS_FSL_HAS_DP_DDR
417 bool
418
York Sun6b62ef02016-10-04 18:01:34 -0700419config SYS_FSL_SRDS_1
420 bool
421
422config SYS_FSL_SRDS_2
423 bool
424
Priyanka Jain1a602532018-09-27 10:32:05 +0530425config SYS_NXP_SRDS_3
426 bool
427
York Sun6b62ef02016-10-04 18:01:34 -0700428config SYS_HAS_SERDES
429 bool
430
Ashish kumar76bd6ce2017-04-07 11:40:32 +0530431config FSL_TZASC_1
432 bool
433
434config FSL_TZASC_2
435 bool
436
Rajesh Bhagat5756f7e2019-01-20 05:30:06 +0000437config FSL_TZASC_400
438 bool
439
440config FSL_TZPC_BP147
441 bool
York Sun4dd8c612016-10-04 14:31:48 -0700442endmenu
York Sun1dc61ca2016-12-28 08:43:41 -0800443
Hou Zhiqiang3f91cda2017-01-10 16:44:15 +0800444menu "Layerscape clock tree configuration"
445 depends on FSL_LSCH2 || FSL_LSCH3
446
447config SYS_FSL_CLK
448 bool "Enable clock tree initialization"
449 default y
450
451config CLUSTER_CLK_FREQ
452 int "Reference clock of core cluster"
453 depends on ARCH_LS1012A
454 default 100000000
455 help
456 This number is the reference clock frequency of core PLL.
457 For most platforms, the core PLL and Platform PLL have the same
458 reference clock, but for some platforms, LS1012A for instance,
459 they are provided sepatately.
460
461config SYS_FSL_PCLK_DIV
462 int "Platform clock divider"
Yuantian Tang4aefa162019-04-10 16:43:33 +0800463 default 1 if ARCH_LS1028A
Hou Zhiqiang3f91cda2017-01-10 16:44:15 +0800464 default 1 if ARCH_LS1043A
465 default 1 if ARCH_LS1046A
Ashish Kumarb25faa22017-08-31 16:12:53 +0530466 default 1 if ARCH_LS1088A
Hou Zhiqiang3f91cda2017-01-10 16:44:15 +0800467 default 2
468 help
469 This is the divider that is used to derive Platform clock from
470 Platform PLL, in another word:
471 Platform_clk = Platform_PLL_freq / this_divider
472
473config SYS_FSL_DSPI_CLK_DIV
474 int "DSPI clock divider"
475 default 1 if ARCH_LS1043A
476 default 2
477 help
478 This is the divider that is used to derive DSPI clock from Platform
Hou Zhiqiang0c8fcb62017-07-03 18:37:11 +0800479 clock, in another word DSPI_clk = Platform_clk / this_divider.
Hou Zhiqiang3f91cda2017-01-10 16:44:15 +0800480
481config SYS_FSL_DUART_CLK_DIV
482 int "DUART clock divider"
483 default 1 if ARCH_LS1043A
Priyanka Jainef76b2e2018-10-29 09:17:09 +0000484 default 4 if ARCH_LX2160A
Hou Zhiqiang3f91cda2017-01-10 16:44:15 +0800485 default 2
486 help
487 This is the divider that is used to derive DUART clock from Platform
488 clock, in another word DUART_clk = Platform_clk / this_divider.
489
490config SYS_FSL_I2C_CLK_DIV
491 int "I2C clock divider"
492 default 1 if ARCH_LS1043A
Chuanhua Han44d4d332019-08-02 16:53:53 +0800493 default 4 if ARCH_LS1012A
494 default 4 if ARCH_LS1028A
495 default 8 if ARCH_LX2160A
496 default 8 if ARCH_LS1088A
Hou Zhiqiang3f91cda2017-01-10 16:44:15 +0800497 default 2
498 help
499 This is the divider that is used to derive I2C clock from Platform
500 clock, in another word I2C_clk = Platform_clk / this_divider.
501
502config SYS_FSL_IFC_CLK_DIV
503 int "IFC clock divider"
504 default 1 if ARCH_LS1043A
Chuanhua Han3df89cc2019-08-08 17:04:58 +0800505 default 4 if ARCH_LS1012A
506 default 4 if ARCH_LS1028A
507 default 8 if ARCH_LX2160A
508 default 8 if ARCH_LS1088A
Hou Zhiqiang3f91cda2017-01-10 16:44:15 +0800509 default 2
510 help
511 This is the divider that is used to derive IFC clock from Platform
512 clock, in another word IFC_clk = Platform_clk / this_divider.
513
514config SYS_FSL_LPUART_CLK_DIV
515 int "LPUART clock divider"
516 default 1 if ARCH_LS1043A
517 default 2
518 help
519 This is the divider that is used to derive LPUART clock from Platform
520 clock, in another word LPUART_clk = Platform_clk / this_divider.
521
522config SYS_FSL_SDHC_CLK_DIV
523 int "SDHC clock divider"
524 default 1 if ARCH_LS1043A
525 default 1 if ARCH_LS1012A
526 default 2
527 help
528 This is the divider that is used to derive SDHC clock from Platform
529 clock, in another word SDHC_clk = Platform_clk / this_divider.
Hou Zhiqiangfef32c62018-04-25 16:28:44 +0800530
531config SYS_FSL_QMAN_CLK_DIV
532 int "QMAN clock divider"
533 default 1 if ARCH_LS1043A
534 default 2
535 help
536 This is the divider that is used to derive QMAN clock from Platform
537 clock, in another word QMAN_clk = Platform_clk / this_divider.
Hou Zhiqiang3f91cda2017-01-10 16:44:15 +0800538endmenu
539
York Sund6964b32017-03-06 09:02:24 -0800540config RESV_RAM
541 bool
542 help
543 Reserve memory from the top, tracked by gd->arch.resv_ram. This
544 reserved RAM can be used by special driver that resides in memory
545 after U-Boot exits. It's up to implementation to allocate and allow
546 access to this reserved memory. For example, the reserved RAM can
547 be at the high end of physical memory. The reserve RAM may be
548 excluded from memory bank(s) passed to OS, or marked as reserved.
549
Ashish Kumarec455e22017-08-31 16:37:31 +0530550config SYS_FSL_EC1
551 bool
552 help
Priyanka Jainef76b2e2018-10-29 09:17:09 +0000553 Ethernet controller 1, this is connected to
554 MAC17 for LX2160A or to MAC3 for other SoCs
Ashish Kumarec455e22017-08-31 16:37:31 +0530555 Provides DPAA2 capabilities
556
557config SYS_FSL_EC2
558 bool
559 help
Priyanka Jainef76b2e2018-10-29 09:17:09 +0000560 Ethernet controller 2, this is connected to
561 MAC18 for LX2160A or to MAC4 for other SoCs
Ashish Kumarec455e22017-08-31 16:37:31 +0530562 Provides DPAA2 capabilities
563
York Sun1dc61ca2016-12-28 08:43:41 -0800564config SYS_FSL_ERRATUM_A008336
565 bool
566
567config SYS_FSL_ERRATUM_A008514
568 bool
569
570config SYS_FSL_ERRATUM_A008585
571 bool
572
573config SYS_FSL_ERRATUM_A008850
574 bool
575
Ashish kumar3b52a232017-02-23 16:03:57 +0530576config SYS_FSL_ERRATUM_A009203
577 bool
578
York Sun1dc61ca2016-12-28 08:43:41 -0800579config SYS_FSL_ERRATUM_A009635
580 bool
581
582config SYS_FSL_ERRATUM_A009660
583 bool
584
585config SYS_FSL_ERRATUM_A009929
586 bool
York Sun1a770752017-03-06 09:02:26 -0800587
Laurentiu Tudor7ea2feb2019-10-18 09:01:56 +0000588config SYS_FSL_ERRATUM_A050382
589 bool
Ashish Kumarec455e22017-08-31 16:37:31 +0530590
591config SYS_FSL_HAS_RGMII
592 bool
593 depends on SYS_FSL_EC1 || SYS_FSL_EC2
594
Philipp Tomsich2d6a0cc2017-08-03 23:23:55 +0200595config SPL_LDSCRIPT
596 default "arch/arm/cpu/armv8/u-boot-spl.lds" if ARCH_LS1043A || ARCH_LS1046A || ARCH_LS2080A
Ran Wang5959f842017-10-23 10:09:21 +0800597
598config HAS_FSL_XHCI_USB
599 bool
600 default y if ARCH_LS1043A || ARCH_LS1046A
601 help
602 For some SoC(such as LS1043A and LS1046A), USB and QE-HDLC multiplex use
603 pins, select it when the pins are assigned to USB.