blob: 3f6c983aaf41697dbe9ccb5ad5317ff037575288 [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
43 select SYS_I2C_MXC_I2C1
44 select SYS_I2C_MXC_I2C2
45 select SYS_I2C_MXC_I2C3
46 select SYS_I2C_MXC_I2C4
47 select SYS_I2C_MXC_I2C5
48 select SYS_I2C_MXC_I2C6
49 select SYS_I2C_MXC_I2C7
50 select SYS_I2C_MXC_I2C8
Ran Wange118acb2019-05-14 17:34:56 +080051 select SYS_FSL_ERRATUM_A008997
Yuantian Tang4aefa162019-04-10 16:43:33 +080052 select SYS_FSL_ERRATUM_A009007
53 select SYS_FSL_ERRATUM_A008514 if !TFABOOT
54 select SYS_FSL_ERRATUM_A009663 if !TFABOOT
55 select SYS_FSL_ERRATUM_A009942 if !TFABOOT
56 imply PANIC_HANG
57
York Sun149eb332016-09-26 08:09:27 -070058config ARCH_LS1043A
York Sunfcd0e742016-10-04 14:31:47 -070059 bool
Hou Zhiqiang4d1525a2017-01-06 17:41:11 +080060 select ARMV8_SET_SMPEN
Rajesh Bhagatcd786e82018-11-05 18:01:48 +000061 select ARM_ERRATA_855873 if !TFABOOT
Rajesh Bhagat52d237a2019-01-25 13:36:26 +000062 select FSL_LAYERSCAPE
York Sun4dd8c612016-10-04 14:31:48 -070063 select FSL_LSCH2
Sriram Dash4a943332018-01-30 15:58:44 +053064 select SYS_FSL_SRDS_1
65 select SYS_HAS_SERDES
York Sund297d392016-12-28 08:43:40 -080066 select SYS_FSL_DDR
York Sunb6fffd82016-10-04 18:03:08 -070067 select SYS_FSL_DDR_BE
68 select SYS_FSL_DDR_VER_50
Rajesh Bhagatcd786e82018-11-05 18:01:48 +000069 select SYS_FSL_ERRATUM_A008850 if !TFABOOT
Ran Wange64f7472017-09-04 18:46:50 +080070 select SYS_FSL_ERRATUM_A008997
Ran Wang3ba69482017-09-04 18:46:51 +080071 select SYS_FSL_ERRATUM_A009007
Ran Wangb358b7b2017-09-04 18:46:48 +080072 select SYS_FSL_ERRATUM_A009008
Rajesh Bhagatcd786e82018-11-05 18:01:48 +000073 select SYS_FSL_ERRATUM_A009660 if !TFABOOT
74 select SYS_FSL_ERRATUM_A009663 if !TFABOOT
Ran Wang9e8fabc2017-09-04 18:46:49 +080075 select SYS_FSL_ERRATUM_A009798
York Sun1dc61ca2016-12-28 08:43:41 -080076 select SYS_FSL_ERRATUM_A009929
Rajesh Bhagatcd786e82018-11-05 18:01:48 +000077 select SYS_FSL_ERRATUM_A009942 if !TFABOOT
York Sun149eb332016-09-26 08:09:27 -070078 select SYS_FSL_ERRATUM_A010315
Hou Zhiqiangc06b30a2016-09-29 12:42:44 +080079 select SYS_FSL_ERRATUM_A010539
York Sund297d392016-12-28 08:43:40 -080080 select SYS_FSL_HAS_DDR3
81 select SYS_FSL_HAS_DDR4
Simon Glass62adede2017-01-23 13:31:19 -070082 select ARCH_EARLY_INIT_R
Simon Glass7a99a872017-01-23 13:31:20 -070083 select BOARD_EARLY_INIT_F
Sriram Dash7122a0c2018-02-06 11:26:30 +053084 select SYS_I2C_MXC
85 select SYS_I2C_MXC_I2C1
86 select SYS_I2C_MXC_I2C2
87 select SYS_I2C_MXC_I2C3
88 select SYS_I2C_MXC_I2C4
Simon Glassc88a09a2017-08-04 16:34:34 -060089 imply CMD_PCI
York Sunb3d71642016-09-26 08:09:26 -070090
York Sunbad49842016-09-26 08:09:24 -070091config ARCH_LS1046A
York Sunfcd0e742016-10-04 14:31:47 -070092 bool
Hou Zhiqiang4d1525a2017-01-06 17:41:11 +080093 select ARMV8_SET_SMPEN
Rajesh Bhagat52d237a2019-01-25 13:36:26 +000094 select FSL_LAYERSCAPE
York Sun4dd8c612016-10-04 14:31:48 -070095 select FSL_LSCH2
Sriram Dash4a943332018-01-30 15:58:44 +053096 select SYS_FSL_SRDS_1
97 select SYS_HAS_SERDES
York Sund297d392016-12-28 08:43:40 -080098 select SYS_FSL_DDR
York Sunb6fffd82016-10-04 18:03:08 -070099 select SYS_FSL_DDR_BE
York Sunb6fffd82016-10-04 18:03:08 -0700100 select SYS_FSL_DDR_VER_50
Rajesh Bhagatcd786e82018-11-05 18:01:48 +0000101 select SYS_FSL_ERRATUM_A008336 if !TFABOOT
102 select SYS_FSL_ERRATUM_A008511 if !TFABOOT
103 select SYS_FSL_ERRATUM_A008850 if !TFABOOT
Ran Wange64f7472017-09-04 18:46:50 +0800104 select SYS_FSL_ERRATUM_A008997
Ran Wang3ba69482017-09-04 18:46:51 +0800105 select SYS_FSL_ERRATUM_A009007
Ran Wangb358b7b2017-09-04 18:46:48 +0800106 select SYS_FSL_ERRATUM_A009008
Ran Wang9e8fabc2017-09-04 18:46:49 +0800107 select SYS_FSL_ERRATUM_A009798
York Sun1dc61ca2016-12-28 08:43:41 -0800108 select SYS_FSL_ERRATUM_A009801
Rajesh Bhagatcd786e82018-11-05 18:01:48 +0000109 select SYS_FSL_ERRATUM_A009803 if !TFABOOT
110 select SYS_FSL_ERRATUM_A009942 if !TFABOOT
111 select SYS_FSL_ERRATUM_A010165 if !TFABOOT
Hou Zhiqiangc06b30a2016-09-29 12:42:44 +0800112 select SYS_FSL_ERRATUM_A010539
York Sund297d392016-12-28 08:43:40 -0800113 select SYS_FSL_HAS_DDR4
York Sun6b62ef02016-10-04 18:01:34 -0700114 select SYS_FSL_SRDS_2
Simon Glass62adede2017-01-23 13:31:19 -0700115 select ARCH_EARLY_INIT_R
Simon Glass7a99a872017-01-23 13:31:20 -0700116 select BOARD_EARLY_INIT_F
Sriram Dash7122a0c2018-02-06 11:26:30 +0530117 select SYS_I2C_MXC
118 select SYS_I2C_MXC_I2C1
119 select SYS_I2C_MXC_I2C2
120 select SYS_I2C_MXC_I2C3
121 select SYS_I2C_MXC_I2C4
Simon Glass0e5faf02017-06-14 21:28:21 -0600122 imply SCSI
Tuomas Tynkkynenedf9f622017-12-08 15:36:19 +0200123 imply SCSI_AHCI
York Sunb3d71642016-09-26 08:09:26 -0700124
Ashish Kumarb25faa22017-08-31 16:12:53 +0530125config ARCH_LS1088A
126 bool
127 select ARMV8_SET_SMPEN
Pankit Gargf5c2a832018-12-27 04:37:55 +0000128 select ARM_ERRATA_855873 if !TFABOOT
Rajesh Bhagat52d237a2019-01-25 13:36:26 +0000129 select FSL_LAYERSCAPE
Ashish Kumarb25faa22017-08-31 16:12:53 +0530130 select FSL_LSCH3
Sriram Dash4a943332018-01-30 15:58:44 +0530131 select SYS_FSL_SRDS_1
132 select SYS_HAS_SERDES
Ashish Kumarb25faa22017-08-31 16:12:53 +0530133 select SYS_FSL_DDR
134 select SYS_FSL_DDR_LE
135 select SYS_FSL_DDR_VER_50
Ashish Kumarec455e22017-08-31 16:37:31 +0530136 select SYS_FSL_EC1
137 select SYS_FSL_EC2
Pankit Gargf5c2a832018-12-27 04:37:55 +0000138 select SYS_FSL_ERRATUM_A009803 if !TFABOOT
139 select SYS_FSL_ERRATUM_A009942 if !TFABOOT
140 select SYS_FSL_ERRATUM_A010165 if !TFABOOT
141 select SYS_FSL_ERRATUM_A008511 if !TFABOOT
142 select SYS_FSL_ERRATUM_A008850 if !TFABOOT
Ran Wangef277072017-09-22 15:21:34 +0800143 select SYS_FSL_ERRATUM_A009007
Ashish Kumarb25faa22017-08-31 16:12:53 +0530144 select SYS_FSL_HAS_CCI400
145 select SYS_FSL_HAS_DDR4
Ashish Kumarec455e22017-08-31 16:37:31 +0530146 select SYS_FSL_HAS_RGMII
Ashish Kumarb25faa22017-08-31 16:12:53 +0530147 select SYS_FSL_HAS_SEC
148 select SYS_FSL_SEC_COMPAT_5
149 select SYS_FSL_SEC_LE
150 select SYS_FSL_SRDS_1
151 select SYS_FSL_SRDS_2
152 select FSL_TZASC_1
Rajesh Bhagat5756f7e2019-01-20 05:30:06 +0000153 select FSL_TZASC_400
154 select FSL_TZPC_BP147
Ashish Kumarb25faa22017-08-31 16:12:53 +0530155 select ARCH_EARLY_INIT_R
156 select BOARD_EARLY_INIT_F
Sriram Dash7122a0c2018-02-06 11:26:30 +0530157 select SYS_I2C_MXC
158 select SYS_I2C_MXC_I2C1
159 select SYS_I2C_MXC_I2C2
160 select SYS_I2C_MXC_I2C3
161 select SYS_I2C_MXC_I2C4
Ashish Kumara179e562017-11-02 09:50:47 +0530162 imply SCSI
Masahiro Yamadaacede7a2017-12-04 12:37:00 +0900163 imply PANIC_HANG
Ashish Kumarb25faa22017-08-31 16:12:53 +0530164
York Sunfcd0e742016-10-04 14:31:47 -0700165config ARCH_LS2080A
166 bool
Hou Zhiqiang4d1525a2017-01-06 17:41:11 +0800167 select ARMV8_SET_SMPEN
Tom Rinibacb52c2017-03-07 07:13:42 -0500168 select ARM_ERRATA_826974
169 select ARM_ERRATA_828024
170 select ARM_ERRATA_829520
171 select ARM_ERRATA_833471
Rajesh Bhagat52d237a2019-01-25 13:36:26 +0000172 select FSL_LAYERSCAPE
York Sun4dd8c612016-10-04 14:31:48 -0700173 select FSL_LSCH3
Sriram Dash4a943332018-01-30 15:58:44 +0530174 select SYS_FSL_SRDS_1
175 select SYS_HAS_SERDES
York Sund297d392016-12-28 08:43:40 -0800176 select SYS_FSL_DDR
York Sunb6fffd82016-10-04 18:03:08 -0700177 select SYS_FSL_DDR_LE
178 select SYS_FSL_DDR_VER_50
Ashish Kumar97393d62017-08-18 10:54:36 +0530179 select SYS_FSL_HAS_CCN504
York Sun6b62ef02016-10-04 18:01:34 -0700180 select SYS_FSL_HAS_DP_DDR
York Sun92c36e22016-12-28 08:43:30 -0800181 select SYS_FSL_HAS_SEC
York Sund297d392016-12-28 08:43:40 -0800182 select SYS_FSL_HAS_DDR4
York Sun92c36e22016-12-28 08:43:30 -0800183 select SYS_FSL_SEC_COMPAT_5
York Sunfa4199422016-12-28 08:43:31 -0800184 select SYS_FSL_SEC_LE
York Sun6b62ef02016-10-04 18:01:34 -0700185 select SYS_FSL_SRDS_2
Ashish kumar76bd6ce2017-04-07 11:40:32 +0530186 select FSL_TZASC_1
187 select FSL_TZASC_2
Rajesh Bhagat5756f7e2019-01-20 05:30:06 +0000188 select FSL_TZASC_400
189 select FSL_TZPC_BP147
Rajesh Bhagatd5691be2018-12-27 04:37:59 +0000190 select SYS_FSL_ERRATUM_A008336 if !TFABOOT
191 select SYS_FSL_ERRATUM_A008511 if !TFABOOT
192 select SYS_FSL_ERRATUM_A008514 if !TFABOOT
York Sun1dc61ca2016-12-28 08:43:41 -0800193 select SYS_FSL_ERRATUM_A008585
Ran Wange64f7472017-09-04 18:46:50 +0800194 select SYS_FSL_ERRATUM_A008997
Ran Wang3ba69482017-09-04 18:46:51 +0800195 select SYS_FSL_ERRATUM_A009007
Ran Wangb358b7b2017-09-04 18:46:48 +0800196 select SYS_FSL_ERRATUM_A009008
York Sun1dc61ca2016-12-28 08:43:41 -0800197 select SYS_FSL_ERRATUM_A009635
Rajesh Bhagatd5691be2018-12-27 04:37:59 +0000198 select SYS_FSL_ERRATUM_A009663 if !TFABOOT
Ran Wang9e8fabc2017-09-04 18:46:49 +0800199 select SYS_FSL_ERRATUM_A009798
York Sun1dc61ca2016-12-28 08:43:41 -0800200 select SYS_FSL_ERRATUM_A009801
Rajesh Bhagatd5691be2018-12-27 04:37:59 +0000201 select SYS_FSL_ERRATUM_A009803 if !TFABOOT
202 select SYS_FSL_ERRATUM_A009942 if !TFABOOT
203 select SYS_FSL_ERRATUM_A010165 if !TFABOOT
Ashish kumar3b52a232017-02-23 16:03:57 +0530204 select SYS_FSL_ERRATUM_A009203
Simon Glass62adede2017-01-23 13:31:19 -0700205 select ARCH_EARLY_INIT_R
Simon Glass7a99a872017-01-23 13:31:20 -0700206 select BOARD_EARLY_INIT_F
Sriram Dash7122a0c2018-02-06 11:26:30 +0530207 select SYS_I2C_MXC
208 select SYS_I2C_MXC_I2C1
209 select SYS_I2C_MXC_I2C2
210 select SYS_I2C_MXC_I2C3
211 select SYS_I2C_MXC_I2C4
Masahiro Yamada9afc6c52018-04-25 18:47:52 +0900212 imply DISTRO_DEFAULTS
Masahiro Yamadaacede7a2017-12-04 12:37:00 +0900213 imply PANIC_HANG
York Sun4dd8c612016-10-04 14:31:48 -0700214
Priyanka Jainef76b2e2018-10-29 09:17:09 +0000215config ARCH_LX2160A
216 bool
217 select ARMV8_SET_SMPEN
218 select FSL_LSCH3
219 select NXP_LSCH3_2
220 select SYS_HAS_SERDES
221 select SYS_FSL_SRDS_1
222 select SYS_FSL_SRDS_2
223 select SYS_NXP_SRDS_3
224 select SYS_FSL_DDR
225 select SYS_FSL_DDR_LE
226 select SYS_FSL_DDR_VER_50
227 select SYS_FSL_EC1
228 select SYS_FSL_EC2
229 select SYS_FSL_HAS_RGMII
230 select SYS_FSL_HAS_SEC
231 select SYS_FSL_HAS_CCN508
232 select SYS_FSL_HAS_DDR4
233 select SYS_FSL_SEC_COMPAT_5
234 select SYS_FSL_SEC_LE
235 select ARCH_EARLY_INIT_R
236 select BOARD_EARLY_INIT_F
237 select SYS_I2C_MXC
238 select SYS_I2C_MXC_I2C1
239 select SYS_I2C_MXC_I2C2
240 select SYS_I2C_MXC_I2C3
241 select SYS_I2C_MXC_I2C4
242 select SYS_I2C_MXC_I2C5
243 select SYS_I2C_MXC_I2C6
244 select SYS_I2C_MXC_I2C7
245 select SYS_I2C_MXC_I2C8
246 imply DISTRO_DEFAULTS
247 imply PANIC_HANG
248 imply SCSI
249 imply SCSI_AHCI
250
York Sun4dd8c612016-10-04 14:31:48 -0700251config FSL_LSCH2
252 bool
Ashish Kumar11234062017-08-11 11:09:14 +0530253 select SYS_FSL_HAS_CCI400
York Sun92c36e22016-12-28 08:43:30 -0800254 select SYS_FSL_HAS_SEC
255 select SYS_FSL_SEC_COMPAT_5
York Sunfa4199422016-12-28 08:43:31 -0800256 select SYS_FSL_SEC_BE
York Sun4dd8c612016-10-04 14:31:48 -0700257
258config FSL_LSCH3
259 bool
260
Priyanka Jain88c25662018-10-29 09:11:29 +0000261config NXP_LSCH3_2
262 bool
263
York Sun6c089742017-03-06 09:02:25 -0800264config FSL_MC_ENET
265 bool "Management Complex network"
Priyanka Jainef76b2e2018-10-29 09:17:09 +0000266 depends on ARCH_LS2080A || ARCH_LS1088A || ARCH_LX2160A
York Sun6c089742017-03-06 09:02:25 -0800267 default y
268 select RESV_RAM
269 help
270 Enable Management Complex (MC) network
271
York Sun4dd8c612016-10-04 14:31:48 -0700272menu "Layerscape architecture"
273 depends on FSL_LSCH2 || FSL_LSCH3
York Sunfcd0e742016-10-04 14:31:47 -0700274
Rajesh Bhagat52d237a2019-01-25 13:36:26 +0000275config FSL_LAYERSCAPE
276 bool
277
Hou Zhiqiangd553bf22016-12-13 14:54:24 +0800278config FSL_PCIE_COMPAT
279 string "PCIe compatible of Kernel DT"
Hou Zhiqiang2b08d142019-04-08 10:15:50 +0000280 depends on PCIE_LAYERSCAPE || PCIE_LAYERSCAPE_GEN4
Hou Zhiqiangd553bf22016-12-13 14:54:24 +0800281 default "fsl,ls1012a-pcie" if ARCH_LS1012A
Yuantian Tang4aefa162019-04-10 16:43:33 +0800282 default "fsl,ls1028a-pcie" if ARCH_LS1028A
Hou Zhiqiangd553bf22016-12-13 14:54:24 +0800283 default "fsl,ls1043a-pcie" if ARCH_LS1043A
284 default "fsl,ls1046a-pcie" if ARCH_LS1046A
285 default "fsl,ls2080a-pcie" if ARCH_LS2080A
Ashish Kumarb25faa22017-08-31 16:12:53 +0530286 default "fsl,ls1088a-pcie" if ARCH_LS1088A
Priyanka Jainef76b2e2018-10-29 09:17:09 +0000287 default "fsl,lx2160a-pcie" if ARCH_LX2160A
Hou Zhiqiangd553bf22016-12-13 14:54:24 +0800288 help
289 This compatible is used to find pci controller node in Kernel DT
290 to complete fixup.
291
Wenbin Songa8f57a92017-01-17 18:31:15 +0800292config HAS_FEATURE_GIC64K_ALIGN
293 bool
294 default y if ARCH_LS1043A
295
Wenbin Songc6bc7c02017-01-17 18:31:16 +0800296config HAS_FEATURE_ENHANCED_MSI
297 bool
298 default y if ARCH_LS1043A
Wenbin Songa8f57a92017-01-17 18:31:15 +0800299
macro.wave.z@gmail.comec2d7ed2016-12-08 11:58:21 +0800300menu "Layerscape PPA"
301config FSL_LS_PPA
302 bool "FSL Layerscape PPA firmware support"
macro.wave.z@gmail.com01bd3342016-12-08 11:58:22 +0800303 depends on !ARMV8_PSCI
Hou Zhiqiangbff56d52017-01-16 17:31:49 +0800304 select ARMV8_SEC_FIRMWARE_SUPPORT
Hou Zhiqiang6be115d2017-01-16 17:31:48 +0800305 select SEC_FIRMWARE_ARMV8_PSCI
Hou Zhiqiangbff56d52017-01-16 17:31:49 +0800306 select ARMV8_SEC_FIRMWARE_ERET_ADDR_REVERT if FSL_LSCH2
macro.wave.z@gmail.comec2d7ed2016-12-08 11:58:21 +0800307 help
308 The FSL Primary Protected Application (PPA) is a software component
309 which is loaded during boot stage, and then remains resident in RAM
310 and runs in the TrustZone after boot.
311 Say y to enable it.
York Sunf2aaf842017-05-15 08:52:00 -0700312
313config SPL_FSL_LS_PPA
314 bool "FSL Layerscape PPA firmware support for SPL build"
315 depends on !ARMV8_PSCI
316 select SPL_ARMV8_SEC_FIRMWARE_SUPPORT
317 select SEC_FIRMWARE_ARMV8_PSCI
318 select ARMV8_SEC_FIRMWARE_ERET_ADDR_REVERT if FSL_LSCH2
319 help
320 The FSL Primary Protected Application (PPA) is a software component
321 which is loaded during boot stage, and then remains resident in RAM
322 and runs in the TrustZone after boot. This is to load PPA during SPL
323 stage instead of the RAM version of U-Boot. Once PPA is initialized,
324 the rest of U-Boot (including RAM version) runs at EL2.
Hou Zhiqiangbff56d52017-01-16 17:31:49 +0800325choice
326 prompt "FSL Layerscape PPA firmware loading-media select"
327 depends on FSL_LS_PPA
Hou Zhiqiangbd6e2cd2017-03-17 16:12:33 +0800328 default SYS_LS_PPA_FW_IN_MMC if SD_BOOT
329 default SYS_LS_PPA_FW_IN_NAND if NAND_BOOT
Hou Zhiqiangbff56d52017-01-16 17:31:49 +0800330 default SYS_LS_PPA_FW_IN_XIP
331
332config SYS_LS_PPA_FW_IN_XIP
333 bool "XIP"
334 help
335 Say Y here if the PPA firmware locate at XIP flash, such
336 as NOR or QSPI flash.
337
Hou Zhiqiangbd6e2cd2017-03-17 16:12:33 +0800338config SYS_LS_PPA_FW_IN_MMC
339 bool "eMMC or SD Card"
340 help
341 Say Y here if the PPA firmware locate at eMMC/SD card.
342
343config SYS_LS_PPA_FW_IN_NAND
344 bool "NAND"
345 help
346 Say Y here if the PPA firmware locate at NAND flash.
347
Hou Zhiqiangbff56d52017-01-16 17:31:49 +0800348endchoice
349
Sumit Garg8fddf752017-04-20 05:09:11 +0530350config LS_PPA_ESBC_HDR_SIZE
351 hex "Length of PPA ESBC header"
352 depends on FSL_LS_PPA && CHAIN_OF_TRUST && !SYS_LS_PPA_FW_IN_XIP
353 default 0x2000
354 help
355 Length (in bytes) of PPA ESBC header to be copied from MMC/SD or
356 NAND to memory to validate PPA image.
357
macro.wave.z@gmail.comec2d7ed2016-12-08 11:58:21 +0800358endmenu
359
Ran Wange64f7472017-09-04 18:46:50 +0800360config SYS_FSL_ERRATUM_A008997
361 bool "Workaround for USB PHY erratum A008997"
362
Ran Wang3ba69482017-09-04 18:46:51 +0800363config SYS_FSL_ERRATUM_A009007
364 bool
365 help
366 Workaround for USB PHY erratum A009007
367
Ran Wangb358b7b2017-09-04 18:46:48 +0800368config SYS_FSL_ERRATUM_A009008
369 bool "Workaround for USB PHY erratum A009008"
370
Ran Wang9e8fabc2017-09-04 18:46:49 +0800371config SYS_FSL_ERRATUM_A009798
372 bool "Workaround for USB PHY erratum A009798"
373
York Sun149eb332016-09-26 08:09:27 -0700374config SYS_FSL_ERRATUM_A010315
375 bool "Workaround for PCIe erratum A010315"
Hou Zhiqiangc06b30a2016-09-29 12:42:44 +0800376
377config SYS_FSL_ERRATUM_A010539
378 bool "Workaround for PIN MUX erratum A010539"
York Sun4dd8c612016-10-04 14:31:48 -0700379
York Sunf188d222016-10-04 14:45:01 -0700380config MAX_CPUS
381 int "Maximum number of CPUs permitted for Layerscape"
Yuantian Tang4aefa162019-04-10 16:43:33 +0800382 default 2 if ARCH_LS1028A
York Sunf188d222016-10-04 14:45:01 -0700383 default 4 if ARCH_LS1043A
384 default 4 if ARCH_LS1046A
385 default 16 if ARCH_LS2080A
Ashish Kumarb25faa22017-08-31 16:12:53 +0530386 default 8 if ARCH_LS1088A
Priyanka Jainef76b2e2018-10-29 09:17:09 +0000387 default 16 if ARCH_LX2160A
York Sunf188d222016-10-04 14:45:01 -0700388 default 1
389 help
390 Set this number to the maximum number of possible CPUs in the SoC.
391 SoCs may have multiple clusters with each cluster may have multiple
392 ports. If some ports are reserved but higher ports are used for
393 cores, count the reserved ports. This will allocate enough memory
394 in spin table to properly handle all cores.
395
Meenakshi Aggarwalbbd33182018-11-30 22:32:11 +0530396config EMC2305
397 bool "Fan controller"
398 help
399 Enable the EMC2305 fan controller for configuration of fan
400 speed.
401
York Sun728e7002016-12-02 09:32:35 -0800402config SECURE_BOOT
York Sun8a3d8ed2017-01-04 10:32:08 -0800403 bool "Secure Boot"
York Sun728e7002016-12-02 09:32:35 -0800404 help
405 Enable Freescale Secure Boot feature
406
Yuan Yao52ae4fd2016-12-01 10:13:52 +0800407config QSPI_AHB_INIT
408 bool "Init the QSPI AHB bus"
409 help
410 The default setting for QSPI AHB bus just support 3bytes addressing.
411 But some QSPI flash size up to 64MBytes, so initialize the QSPI AHB
412 bus for those flashes to support the full QSPI flash size.
413
Ashish Kumar11234062017-08-11 11:09:14 +0530414config SYS_CCI400_OFFSET
415 hex "Offset for CCI400 base"
416 depends on SYS_FSL_HAS_CCI400
Yuantian Tang4aefa162019-04-10 16:43:33 +0800417 default 0x3090000 if ARCH_LS1088A || ARCH_LS1028A
Ashish Kumar11234062017-08-11 11:09:14 +0530418 default 0x180000 if FSL_LSCH2
419 help
420 Offset for CCI400 base
421 CCI400 base addr = CCSRBAR + CCI400_OFFSET
422
York Sune7310a32016-10-04 14:45:54 -0700423config SYS_FSL_IFC_BANK_COUNT
424 int "Maximum banks of Integrated flash controller"
Ashish Kumarb25faa22017-08-31 16:12:53 +0530425 depends on ARCH_LS1043A || ARCH_LS1046A || ARCH_LS2080A || ARCH_LS1088A
York Sune7310a32016-10-04 14:45:54 -0700426 default 4 if ARCH_LS1043A
427 default 4 if ARCH_LS1046A
Ashish Kumarb25faa22017-08-31 16:12:53 +0530428 default 8 if ARCH_LS2080A || ARCH_LS1088A
York Sune7310a32016-10-04 14:45:54 -0700429
Ashish Kumar11234062017-08-11 11:09:14 +0530430config SYS_FSL_HAS_CCI400
431 bool
432
Ashish Kumar97393d62017-08-18 10:54:36 +0530433config SYS_FSL_HAS_CCN504
434 bool
435
Priyanka Jainef76b2e2018-10-29 09:17:09 +0000436config SYS_FSL_HAS_CCN508
437 bool
438
York Sun0dc9abb2016-10-04 14:46:50 -0700439config SYS_FSL_HAS_DP_DDR
440 bool
441
York Sun6b62ef02016-10-04 18:01:34 -0700442config SYS_FSL_SRDS_1
443 bool
444
445config SYS_FSL_SRDS_2
446 bool
447
Priyanka Jain1a602532018-09-27 10:32:05 +0530448config SYS_NXP_SRDS_3
449 bool
450
York Sun6b62ef02016-10-04 18:01:34 -0700451config SYS_HAS_SERDES
452 bool
453
Ashish kumar76bd6ce2017-04-07 11:40:32 +0530454config FSL_TZASC_1
455 bool
456
457config FSL_TZASC_2
458 bool
459
Rajesh Bhagat5756f7e2019-01-20 05:30:06 +0000460config FSL_TZASC_400
461 bool
462
463config FSL_TZPC_BP147
464 bool
York Sun4dd8c612016-10-04 14:31:48 -0700465endmenu
York Sun1dc61ca2016-12-28 08:43:41 -0800466
Hou Zhiqiang3f91cda2017-01-10 16:44:15 +0800467menu "Layerscape clock tree configuration"
468 depends on FSL_LSCH2 || FSL_LSCH3
469
470config SYS_FSL_CLK
471 bool "Enable clock tree initialization"
472 default y
473
474config CLUSTER_CLK_FREQ
475 int "Reference clock of core cluster"
476 depends on ARCH_LS1012A
477 default 100000000
478 help
479 This number is the reference clock frequency of core PLL.
480 For most platforms, the core PLL and Platform PLL have the same
481 reference clock, but for some platforms, LS1012A for instance,
482 they are provided sepatately.
483
484config SYS_FSL_PCLK_DIV
485 int "Platform clock divider"
Yuantian Tang4aefa162019-04-10 16:43:33 +0800486 default 1 if ARCH_LS1028A
Hou Zhiqiang3f91cda2017-01-10 16:44:15 +0800487 default 1 if ARCH_LS1043A
488 default 1 if ARCH_LS1046A
Ashish Kumarb25faa22017-08-31 16:12:53 +0530489 default 1 if ARCH_LS1088A
Hou Zhiqiang3f91cda2017-01-10 16:44:15 +0800490 default 2
491 help
492 This is the divider that is used to derive Platform clock from
493 Platform PLL, in another word:
494 Platform_clk = Platform_PLL_freq / this_divider
495
496config SYS_FSL_DSPI_CLK_DIV
497 int "DSPI clock divider"
498 default 1 if ARCH_LS1043A
499 default 2
500 help
501 This is the divider that is used to derive DSPI clock from Platform
Hou Zhiqiang0c8fcb62017-07-03 18:37:11 +0800502 clock, in another word DSPI_clk = Platform_clk / this_divider.
Hou Zhiqiang3f91cda2017-01-10 16:44:15 +0800503
504config SYS_FSL_DUART_CLK_DIV
505 int "DUART clock divider"
506 default 1 if ARCH_LS1043A
Priyanka Jainef76b2e2018-10-29 09:17:09 +0000507 default 4 if ARCH_LX2160A
Hou Zhiqiang3f91cda2017-01-10 16:44:15 +0800508 default 2
509 help
510 This is the divider that is used to derive DUART clock from Platform
511 clock, in another word DUART_clk = Platform_clk / this_divider.
512
513config SYS_FSL_I2C_CLK_DIV
514 int "I2C clock divider"
515 default 1 if ARCH_LS1043A
516 default 2
517 help
518 This is the divider that is used to derive I2C clock from Platform
519 clock, in another word I2C_clk = Platform_clk / this_divider.
520
521config SYS_FSL_IFC_CLK_DIV
522 int "IFC clock divider"
523 default 1 if ARCH_LS1043A
524 default 2
525 help
526 This is the divider that is used to derive IFC clock from Platform
527 clock, in another word IFC_clk = Platform_clk / this_divider.
528
529config SYS_FSL_LPUART_CLK_DIV
530 int "LPUART clock divider"
531 default 1 if ARCH_LS1043A
532 default 2
533 help
534 This is the divider that is used to derive LPUART clock from Platform
535 clock, in another word LPUART_clk = Platform_clk / this_divider.
536
537config SYS_FSL_SDHC_CLK_DIV
538 int "SDHC clock divider"
539 default 1 if ARCH_LS1043A
540 default 1 if ARCH_LS1012A
541 default 2
542 help
543 This is the divider that is used to derive SDHC clock from Platform
544 clock, in another word SDHC_clk = Platform_clk / this_divider.
Hou Zhiqiangfef32c62018-04-25 16:28:44 +0800545
546config SYS_FSL_QMAN_CLK_DIV
547 int "QMAN clock divider"
548 default 1 if ARCH_LS1043A
549 default 2
550 help
551 This is the divider that is used to derive QMAN clock from Platform
552 clock, in another word QMAN_clk = Platform_clk / this_divider.
Hou Zhiqiang3f91cda2017-01-10 16:44:15 +0800553endmenu
554
York Sund6964b32017-03-06 09:02:24 -0800555config RESV_RAM
556 bool
557 help
558 Reserve memory from the top, tracked by gd->arch.resv_ram. This
559 reserved RAM can be used by special driver that resides in memory
560 after U-Boot exits. It's up to implementation to allocate and allow
561 access to this reserved memory. For example, the reserved RAM can
562 be at the high end of physical memory. The reserve RAM may be
563 excluded from memory bank(s) passed to OS, or marked as reserved.
564
Ashish Kumarec455e22017-08-31 16:37:31 +0530565config SYS_FSL_EC1
566 bool
567 help
Priyanka Jainef76b2e2018-10-29 09:17:09 +0000568 Ethernet controller 1, this is connected to
569 MAC17 for LX2160A or to MAC3 for other SoCs
Ashish Kumarec455e22017-08-31 16:37:31 +0530570 Provides DPAA2 capabilities
571
572config SYS_FSL_EC2
573 bool
574 help
Priyanka Jainef76b2e2018-10-29 09:17:09 +0000575 Ethernet controller 2, this is connected to
576 MAC18 for LX2160A or to MAC4 for other SoCs
Ashish Kumarec455e22017-08-31 16:37:31 +0530577 Provides DPAA2 capabilities
578
York Sun1dc61ca2016-12-28 08:43:41 -0800579config SYS_FSL_ERRATUM_A008336
580 bool
581
582config SYS_FSL_ERRATUM_A008514
583 bool
584
585config SYS_FSL_ERRATUM_A008585
586 bool
587
588config SYS_FSL_ERRATUM_A008850
589 bool
590
Ashish kumar3b52a232017-02-23 16:03:57 +0530591config SYS_FSL_ERRATUM_A009203
592 bool
593
York Sun1dc61ca2016-12-28 08:43:41 -0800594config SYS_FSL_ERRATUM_A009635
595 bool
596
597config SYS_FSL_ERRATUM_A009660
598 bool
599
600config SYS_FSL_ERRATUM_A009929
601 bool
York Sun1a770752017-03-06 09:02:26 -0800602
Ashish Kumarec455e22017-08-31 16:37:31 +0530603
604config SYS_FSL_HAS_RGMII
605 bool
606 depends on SYS_FSL_EC1 || SYS_FSL_EC2
607
608
York Sun1a770752017-03-06 09:02:26 -0800609config SYS_MC_RSV_MEM_ALIGN
610 hex "Management Complex reserved memory alignment"
611 depends on RESV_RAM
Priyanka Jainef76b2e2018-10-29 09:17:09 +0000612 default 0x20000000 if ARCH_LS2080A || ARCH_LS1088A || ARCH_LX2160A
York Sun1a770752017-03-06 09:02:26 -0800613 help
614 Reserved memory needs to be aligned for MC to use. Default value
615 is 512MB.
Philipp Tomsich2d6a0cc2017-08-03 23:23:55 +0200616
617config SPL_LDSCRIPT
618 default "arch/arm/cpu/armv8/u-boot-spl.lds" if ARCH_LS1043A || ARCH_LS1046A || ARCH_LS2080A
Ran Wang5959f842017-10-23 10:09:21 +0800619
620config HAS_FSL_XHCI_USB
621 bool
622 default y if ARCH_LS1043A || ARCH_LS1046A
623 help
624 For some SoC(such as LS1043A and LS1046A), USB and QE-HDLC multiplex use
625 pins, select it when the pins are assigned to USB.
Rajesh Bhagat5efbecf2018-11-05 18:01:37 +0000626
627config TFABOOT
628 bool "Support for booting from TFA"
629 default n
630 help
631 Enabling this will make a U-Boot binary that is capable of being
632 booted via TFA.