blob: be51b7d8566fe044ed11e0d6a74f0f286b72ecb2 [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
Biwen Li0a759bb2019-12-31 15:33:41 +080019 select SYS_I2C_MXC_I2C1 if !DM_I2C
20 select SYS_I2C_MXC_I2C2 if !DM_I2C
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
Michael Walle66f2a532020-05-10 01:20:11 +020026 select FSL_LAYERSCAPE
Yuantian Tang4aefa162019-04-10 16:43:33 +080027 select FSL_LSCH3
28 select NXP_LSCH3_2
29 select SYS_FSL_HAS_CCI400
30 select SYS_FSL_SRDS_1
31 select SYS_HAS_SERDES
32 select SYS_FSL_DDR
33 select SYS_FSL_DDR_LE
34 select SYS_FSL_DDR_VER_50
35 select SYS_FSL_HAS_DDR3
36 select SYS_FSL_HAS_DDR4
37 select SYS_FSL_HAS_SEC
38 select SYS_FSL_SEC_COMPAT_5
39 select SYS_FSL_SEC_LE
40 select FSL_TZASC_1
41 select ARCH_EARLY_INIT_R
42 select BOARD_EARLY_INIT_F
43 select SYS_I2C_MXC
Ran Wange118acb2019-05-14 17:34:56 +080044 select SYS_FSL_ERRATUM_A008997
Yuantian Tang4aefa162019-04-10 16:43:33 +080045 select SYS_FSL_ERRATUM_A009007
46 select SYS_FSL_ERRATUM_A008514 if !TFABOOT
47 select SYS_FSL_ERRATUM_A009663 if !TFABOOT
48 select SYS_FSL_ERRATUM_A009942 if !TFABOOT
Laurentiu Tudor7ea2feb2019-10-18 09:01:56 +000049 select SYS_FSL_ERRATUM_A050382
Hou Zhiqiangce4a92a2020-04-28 10:19:31 +080050 select RESV_RAM if GIC_V3_ITS
Yuantian Tang4aefa162019-04-10 16:43:33 +080051 imply PANIC_HANG
52
York Sun149eb332016-09-26 08:09:27 -070053config ARCH_LS1043A
York Sunfcd0e742016-10-04 14:31:47 -070054 bool
Hou Zhiqiang4d1525a2017-01-06 17:41:11 +080055 select ARMV8_SET_SMPEN
Rajesh Bhagatcd786e82018-11-05 18:01:48 +000056 select ARM_ERRATA_855873 if !TFABOOT
Rajesh Bhagat52d237a2019-01-25 13:36:26 +000057 select FSL_LAYERSCAPE
York Sun4dd8c612016-10-04 14:31:48 -070058 select FSL_LSCH2
Sriram Dash4a943332018-01-30 15:58:44 +053059 select SYS_FSL_SRDS_1
60 select SYS_HAS_SERDES
York Sund297d392016-12-28 08:43:40 -080061 select SYS_FSL_DDR
York Sunb6fffd82016-10-04 18:03:08 -070062 select SYS_FSL_DDR_BE
63 select SYS_FSL_DDR_VER_50
Rajesh Bhagatcd786e82018-11-05 18:01:48 +000064 select SYS_FSL_ERRATUM_A008850 if !TFABOOT
Ran Wange64f7472017-09-04 18:46:50 +080065 select SYS_FSL_ERRATUM_A008997
Ran Wang3ba69482017-09-04 18:46:51 +080066 select SYS_FSL_ERRATUM_A009007
Ran Wangb358b7b2017-09-04 18:46:48 +080067 select SYS_FSL_ERRATUM_A009008
Rajesh Bhagatcd786e82018-11-05 18:01:48 +000068 select SYS_FSL_ERRATUM_A009660 if !TFABOOT
69 select SYS_FSL_ERRATUM_A009663 if !TFABOOT
Ran Wang9e8fabc2017-09-04 18:46:49 +080070 select SYS_FSL_ERRATUM_A009798
Rajesh Bhagatcd786e82018-11-05 18:01:48 +000071 select SYS_FSL_ERRATUM_A009942 if !TFABOOT
York Sun149eb332016-09-26 08:09:27 -070072 select SYS_FSL_ERRATUM_A010315
Hou Zhiqiangc06b30a2016-09-29 12:42:44 +080073 select SYS_FSL_ERRATUM_A010539
York Sund297d392016-12-28 08:43:40 -080074 select SYS_FSL_HAS_DDR3
75 select SYS_FSL_HAS_DDR4
Simon Glass62adede2017-01-23 13:31:19 -070076 select ARCH_EARLY_INIT_R
Simon Glass7a99a872017-01-23 13:31:20 -070077 select BOARD_EARLY_INIT_F
Biwen Li42637e72020-06-04 18:42:14 +080078 select SYS_I2C_MXC
Biwen Li014460b2020-02-05 22:02:16 +080079 select SYS_I2C_MXC_I2C1 if !DM_I2C
80 select SYS_I2C_MXC_I2C2 if !DM_I2C
81 select SYS_I2C_MXC_I2C3 if !DM_I2C
82 select SYS_I2C_MXC_I2C4 if !DM_I2C
Simon Glassc88a09a2017-08-04 16:34:34 -060083 imply CMD_PCI
York Sunb3d71642016-09-26 08:09:26 -070084
York Sunbad49842016-09-26 08:09:24 -070085config ARCH_LS1046A
York Sunfcd0e742016-10-04 14:31:47 -070086 bool
Hou Zhiqiang4d1525a2017-01-06 17:41:11 +080087 select ARMV8_SET_SMPEN
Rajesh Bhagat52d237a2019-01-25 13:36:26 +000088 select FSL_LAYERSCAPE
York Sun4dd8c612016-10-04 14:31:48 -070089 select FSL_LSCH2
Sriram Dash4a943332018-01-30 15:58:44 +053090 select SYS_FSL_SRDS_1
91 select SYS_HAS_SERDES
York Sund297d392016-12-28 08:43:40 -080092 select SYS_FSL_DDR
York Sunb6fffd82016-10-04 18:03:08 -070093 select SYS_FSL_DDR_BE
York Sunb6fffd82016-10-04 18:03:08 -070094 select SYS_FSL_DDR_VER_50
Rajesh Bhagatcd786e82018-11-05 18:01:48 +000095 select SYS_FSL_ERRATUM_A008336 if !TFABOOT
96 select SYS_FSL_ERRATUM_A008511 if !TFABOOT
97 select SYS_FSL_ERRATUM_A008850 if !TFABOOT
Ran Wange64f7472017-09-04 18:46:50 +080098 select SYS_FSL_ERRATUM_A008997
Ran Wang3ba69482017-09-04 18:46:51 +080099 select SYS_FSL_ERRATUM_A009007
Ran Wangb358b7b2017-09-04 18:46:48 +0800100 select SYS_FSL_ERRATUM_A009008
Ran Wang9e8fabc2017-09-04 18:46:49 +0800101 select SYS_FSL_ERRATUM_A009798
York Sun1dc61ca2016-12-28 08:43:41 -0800102 select SYS_FSL_ERRATUM_A009801
Rajesh Bhagatcd786e82018-11-05 18:01:48 +0000103 select SYS_FSL_ERRATUM_A009803 if !TFABOOT
104 select SYS_FSL_ERRATUM_A009942 if !TFABOOT
105 select SYS_FSL_ERRATUM_A010165 if !TFABOOT
Hou Zhiqiangc06b30a2016-09-29 12:42:44 +0800106 select SYS_FSL_ERRATUM_A010539
York Sund297d392016-12-28 08:43:40 -0800107 select SYS_FSL_HAS_DDR4
York Sun6b62ef02016-10-04 18:01:34 -0700108 select SYS_FSL_SRDS_2
Simon Glass62adede2017-01-23 13:31:19 -0700109 select ARCH_EARLY_INIT_R
Simon Glass7a99a872017-01-23 13:31:20 -0700110 select BOARD_EARLY_INIT_F
Biwen Li42637e72020-06-04 18:42:14 +0800111 select SYS_I2C_MXC
Biwen Lif0018f52020-02-05 22:02:17 +0800112 select SYS_I2C_MXC_I2C1 if !DM_I2C
113 select SYS_I2C_MXC_I2C2 if !DM_I2C
114 select SYS_I2C_MXC_I2C3 if !DM_I2C
115 select SYS_I2C_MXC_I2C4 if !DM_I2C
Simon Glass0e5faf02017-06-14 21:28:21 -0600116 imply SCSI
Tuomas Tynkkynenedf9f622017-12-08 15:36:19 +0200117 imply SCSI_AHCI
York Sunb3d71642016-09-26 08:09:26 -0700118
Ashish Kumarb25faa22017-08-31 16:12:53 +0530119config ARCH_LS1088A
120 bool
121 select ARMV8_SET_SMPEN
Pankit Gargf5c2a832018-12-27 04:37:55 +0000122 select ARM_ERRATA_855873 if !TFABOOT
Rajesh Bhagat52d237a2019-01-25 13:36:26 +0000123 select FSL_LAYERSCAPE
Ashish Kumarb25faa22017-08-31 16:12:53 +0530124 select FSL_LSCH3
Sriram Dash4a943332018-01-30 15:58:44 +0530125 select SYS_FSL_SRDS_1
126 select SYS_HAS_SERDES
Ashish Kumarb25faa22017-08-31 16:12:53 +0530127 select SYS_FSL_DDR
128 select SYS_FSL_DDR_LE
129 select SYS_FSL_DDR_VER_50
Ashish Kumarec455e22017-08-31 16:37:31 +0530130 select SYS_FSL_EC1
131 select SYS_FSL_EC2
Pankit Gargf5c2a832018-12-27 04:37:55 +0000132 select SYS_FSL_ERRATUM_A009803 if !TFABOOT
133 select SYS_FSL_ERRATUM_A009942 if !TFABOOT
134 select SYS_FSL_ERRATUM_A010165 if !TFABOOT
135 select SYS_FSL_ERRATUM_A008511 if !TFABOOT
136 select SYS_FSL_ERRATUM_A008850 if !TFABOOT
Ran Wangef277072017-09-22 15:21:34 +0800137 select SYS_FSL_ERRATUM_A009007
Ashish Kumarb25faa22017-08-31 16:12:53 +0530138 select SYS_FSL_HAS_CCI400
139 select SYS_FSL_HAS_DDR4
Ashish Kumarec455e22017-08-31 16:37:31 +0530140 select SYS_FSL_HAS_RGMII
Ashish Kumarb25faa22017-08-31 16:12:53 +0530141 select SYS_FSL_HAS_SEC
142 select SYS_FSL_SEC_COMPAT_5
143 select SYS_FSL_SEC_LE
144 select SYS_FSL_SRDS_1
145 select SYS_FSL_SRDS_2
146 select FSL_TZASC_1
Rajesh Bhagat5756f7e2019-01-20 05:30:06 +0000147 select FSL_TZASC_400
148 select FSL_TZPC_BP147
Ashish Kumarb25faa22017-08-31 16:12:53 +0530149 select ARCH_EARLY_INIT_R
150 select BOARD_EARLY_INIT_F
Sriram Dash7122a0c2018-02-06 11:26:30 +0530151 select SYS_I2C_MXC
Chuanhua Han98a5e402019-07-26 20:25:37 +0800152 select SYS_I2C_MXC_I2C1 if !TFABOOT
153 select SYS_I2C_MXC_I2C2 if !TFABOOT
154 select SYS_I2C_MXC_I2C3 if !TFABOOT
155 select SYS_I2C_MXC_I2C4 if !TFABOOT
Hou Zhiqiangce4a92a2020-04-28 10:19:31 +0800156 select RESV_RAM if GIC_V3_ITS
Ashish Kumara179e562017-11-02 09:50:47 +0530157 imply SCSI
Masahiro Yamadaacede7a2017-12-04 12:37:00 +0900158 imply PANIC_HANG
Ashish Kumarb25faa22017-08-31 16:12:53 +0530159
York Sunfcd0e742016-10-04 14:31:47 -0700160config ARCH_LS2080A
161 bool
Hou Zhiqiang4d1525a2017-01-06 17:41:11 +0800162 select ARMV8_SET_SMPEN
Tom Rinibacb52c2017-03-07 07:13:42 -0500163 select ARM_ERRATA_826974
164 select ARM_ERRATA_828024
165 select ARM_ERRATA_829520
166 select ARM_ERRATA_833471
Rajesh Bhagat52d237a2019-01-25 13:36:26 +0000167 select FSL_LAYERSCAPE
York Sun4dd8c612016-10-04 14:31:48 -0700168 select FSL_LSCH3
Sriram Dash4a943332018-01-30 15:58:44 +0530169 select SYS_FSL_SRDS_1
170 select SYS_HAS_SERDES
York Sund297d392016-12-28 08:43:40 -0800171 select SYS_FSL_DDR
York Sunb6fffd82016-10-04 18:03:08 -0700172 select SYS_FSL_DDR_LE
173 select SYS_FSL_DDR_VER_50
Ashish Kumar97393d62017-08-18 10:54:36 +0530174 select SYS_FSL_HAS_CCN504
York Sun6b62ef02016-10-04 18:01:34 -0700175 select SYS_FSL_HAS_DP_DDR
York Sun92c36e22016-12-28 08:43:30 -0800176 select SYS_FSL_HAS_SEC
York Sund297d392016-12-28 08:43:40 -0800177 select SYS_FSL_HAS_DDR4
York Sun92c36e22016-12-28 08:43:30 -0800178 select SYS_FSL_SEC_COMPAT_5
York Sunfa4199422016-12-28 08:43:31 -0800179 select SYS_FSL_SEC_LE
York Sun6b62ef02016-10-04 18:01:34 -0700180 select SYS_FSL_SRDS_2
Ashish kumar76bd6ce2017-04-07 11:40:32 +0530181 select FSL_TZASC_1
182 select FSL_TZASC_2
Rajesh Bhagat5756f7e2019-01-20 05:30:06 +0000183 select FSL_TZASC_400
184 select FSL_TZPC_BP147
Rajesh Bhagatd5691be2018-12-27 04:37:59 +0000185 select SYS_FSL_ERRATUM_A008336 if !TFABOOT
186 select SYS_FSL_ERRATUM_A008511 if !TFABOOT
187 select SYS_FSL_ERRATUM_A008514 if !TFABOOT
York Sun1dc61ca2016-12-28 08:43:41 -0800188 select SYS_FSL_ERRATUM_A008585
Ran Wange64f7472017-09-04 18:46:50 +0800189 select SYS_FSL_ERRATUM_A008997
Ran Wang3ba69482017-09-04 18:46:51 +0800190 select SYS_FSL_ERRATUM_A009007
Ran Wangb358b7b2017-09-04 18:46:48 +0800191 select SYS_FSL_ERRATUM_A009008
York Sun1dc61ca2016-12-28 08:43:41 -0800192 select SYS_FSL_ERRATUM_A009635
Rajesh Bhagatd5691be2018-12-27 04:37:59 +0000193 select SYS_FSL_ERRATUM_A009663 if !TFABOOT
Ran Wang9e8fabc2017-09-04 18:46:49 +0800194 select SYS_FSL_ERRATUM_A009798
York Sun1dc61ca2016-12-28 08:43:41 -0800195 select SYS_FSL_ERRATUM_A009801
Rajesh Bhagatd5691be2018-12-27 04:37:59 +0000196 select SYS_FSL_ERRATUM_A009803 if !TFABOOT
197 select SYS_FSL_ERRATUM_A009942 if !TFABOOT
198 select SYS_FSL_ERRATUM_A010165 if !TFABOOT
Ashish kumar3b52a232017-02-23 16:03:57 +0530199 select SYS_FSL_ERRATUM_A009203
Simon Glass62adede2017-01-23 13:31:19 -0700200 select ARCH_EARLY_INIT_R
Simon Glass7a99a872017-01-23 13:31:20 -0700201 select BOARD_EARLY_INIT_F
Sriram Dash7122a0c2018-02-06 11:26:30 +0530202 select SYS_I2C_MXC
Chuanhua Han3f27fff2019-07-26 19:24:03 +0800203 select SYS_I2C_MXC_I2C1 if !TFABOOT
204 select SYS_I2C_MXC_I2C2 if !TFABOOT
205 select SYS_I2C_MXC_I2C3 if !TFABOOT
206 select SYS_I2C_MXC_I2C4 if !TFABOOT
Hou Zhiqiangce4a92a2020-04-28 10:19:31 +0800207 select RESV_RAM if GIC_V3_ITS
Masahiro Yamada9afc6c52018-04-25 18:47:52 +0900208 imply DISTRO_DEFAULTS
Masahiro Yamadaacede7a2017-12-04 12:37:00 +0900209 imply PANIC_HANG
York Sun4dd8c612016-10-04 14:31:48 -0700210
Priyanka Jainef76b2e2018-10-29 09:17:09 +0000211config ARCH_LX2160A
212 bool
213 select ARMV8_SET_SMPEN
214 select FSL_LSCH3
215 select NXP_LSCH3_2
216 select SYS_HAS_SERDES
217 select SYS_FSL_SRDS_1
218 select SYS_FSL_SRDS_2
219 select SYS_NXP_SRDS_3
220 select SYS_FSL_DDR
221 select SYS_FSL_DDR_LE
222 select SYS_FSL_DDR_VER_50
223 select SYS_FSL_EC1
224 select SYS_FSL_EC2
Ran Wangd0270dc2019-11-26 11:40:40 +0800225 select SYS_FSL_ERRATUM_A050106
Priyanka Jainef76b2e2018-10-29 09:17:09 +0000226 select SYS_FSL_HAS_RGMII
227 select SYS_FSL_HAS_SEC
228 select SYS_FSL_HAS_CCN508
229 select SYS_FSL_HAS_DDR4
230 select SYS_FSL_SEC_COMPAT_5
231 select SYS_FSL_SEC_LE
232 select ARCH_EARLY_INIT_R
233 select BOARD_EARLY_INIT_F
234 select SYS_I2C_MXC
Hou Zhiqiangce4a92a2020-04-28 10:19:31 +0800235 select RESV_RAM if GIC_V3_ITS
Priyanka Jainef76b2e2018-10-29 09:17:09 +0000236 imply DISTRO_DEFAULTS
237 imply PANIC_HANG
238 imply SCSI
239 imply SCSI_AHCI
240
York Sun4dd8c612016-10-04 14:31:48 -0700241config FSL_LSCH2
242 bool
Ashish Kumar11234062017-08-11 11:09:14 +0530243 select SYS_FSL_HAS_CCI400
York Sun92c36e22016-12-28 08:43:30 -0800244 select SYS_FSL_HAS_SEC
245 select SYS_FSL_SEC_COMPAT_5
York Sunfa4199422016-12-28 08:43:31 -0800246 select SYS_FSL_SEC_BE
York Sun4dd8c612016-10-04 14:31:48 -0700247
248config FSL_LSCH3
Alex Marginean47568ce2020-01-11 01:05:40 +0200249 select ARCH_MISC_INIT
York Sun4dd8c612016-10-04 14:31:48 -0700250 bool
251
Priyanka Jain88c25662018-10-29 09:11:29 +0000252config NXP_LSCH3_2
253 bool
254
York Sun4dd8c612016-10-04 14:31:48 -0700255menu "Layerscape architecture"
256 depends on FSL_LSCH2 || FSL_LSCH3
York Sunfcd0e742016-10-04 14:31:47 -0700257
Rajesh Bhagat52d237a2019-01-25 13:36:26 +0000258config FSL_LAYERSCAPE
259 bool
260
Wenbin Songa8f57a92017-01-17 18:31:15 +0800261config HAS_FEATURE_GIC64K_ALIGN
262 bool
263 default y if ARCH_LS1043A
264
Wenbin Songc6bc7c02017-01-17 18:31:16 +0800265config HAS_FEATURE_ENHANCED_MSI
266 bool
267 default y if ARCH_LS1043A
Wenbin Songa8f57a92017-01-17 18:31:15 +0800268
macro.wave.z@gmail.comec2d7ed2016-12-08 11:58:21 +0800269menu "Layerscape PPA"
270config FSL_LS_PPA
271 bool "FSL Layerscape PPA firmware support"
macro.wave.z@gmail.com01bd3342016-12-08 11:58:22 +0800272 depends on !ARMV8_PSCI
Hou Zhiqiangbff56d52017-01-16 17:31:49 +0800273 select ARMV8_SEC_FIRMWARE_SUPPORT
Hou Zhiqiang6be115d2017-01-16 17:31:48 +0800274 select SEC_FIRMWARE_ARMV8_PSCI
Hou Zhiqiangbff56d52017-01-16 17:31:49 +0800275 select ARMV8_SEC_FIRMWARE_ERET_ADDR_REVERT if FSL_LSCH2
macro.wave.z@gmail.comec2d7ed2016-12-08 11:58:21 +0800276 help
277 The FSL Primary Protected Application (PPA) is a software component
278 which is loaded during boot stage, and then remains resident in RAM
279 and runs in the TrustZone after boot.
280 Say y to enable it.
York Sunf2aaf842017-05-15 08:52:00 -0700281
282config SPL_FSL_LS_PPA
283 bool "FSL Layerscape PPA firmware support for SPL build"
284 depends on !ARMV8_PSCI
285 select SPL_ARMV8_SEC_FIRMWARE_SUPPORT
286 select SEC_FIRMWARE_ARMV8_PSCI
287 select ARMV8_SEC_FIRMWARE_ERET_ADDR_REVERT if FSL_LSCH2
288 help
289 The FSL Primary Protected Application (PPA) is a software component
290 which is loaded during boot stage, and then remains resident in RAM
291 and runs in the TrustZone after boot. This is to load PPA during SPL
292 stage instead of the RAM version of U-Boot. Once PPA is initialized,
293 the rest of U-Boot (including RAM version) runs at EL2.
Hou Zhiqiangbff56d52017-01-16 17:31:49 +0800294choice
295 prompt "FSL Layerscape PPA firmware loading-media select"
296 depends on FSL_LS_PPA
Hou Zhiqiangbd6e2cd2017-03-17 16:12:33 +0800297 default SYS_LS_PPA_FW_IN_MMC if SD_BOOT
298 default SYS_LS_PPA_FW_IN_NAND if NAND_BOOT
Hou Zhiqiangbff56d52017-01-16 17:31:49 +0800299 default SYS_LS_PPA_FW_IN_XIP
300
301config SYS_LS_PPA_FW_IN_XIP
302 bool "XIP"
303 help
304 Say Y here if the PPA firmware locate at XIP flash, such
305 as NOR or QSPI flash.
306
Hou Zhiqiangbd6e2cd2017-03-17 16:12:33 +0800307config SYS_LS_PPA_FW_IN_MMC
308 bool "eMMC or SD Card"
309 help
310 Say Y here if the PPA firmware locate at eMMC/SD card.
311
312config SYS_LS_PPA_FW_IN_NAND
313 bool "NAND"
314 help
315 Say Y here if the PPA firmware locate at NAND flash.
316
Hou Zhiqiangbff56d52017-01-16 17:31:49 +0800317endchoice
318
Sumit Garg8fddf752017-04-20 05:09:11 +0530319config LS_PPA_ESBC_HDR_SIZE
320 hex "Length of PPA ESBC header"
321 depends on FSL_LS_PPA && CHAIN_OF_TRUST && !SYS_LS_PPA_FW_IN_XIP
322 default 0x2000
323 help
324 Length (in bytes) of PPA ESBC header to be copied from MMC/SD or
325 NAND to memory to validate PPA image.
326
macro.wave.z@gmail.comec2d7ed2016-12-08 11:58:21 +0800327endmenu
328
Ran Wange64f7472017-09-04 18:46:50 +0800329config SYS_FSL_ERRATUM_A008997
330 bool "Workaround for USB PHY erratum A008997"
331
Ran Wang3ba69482017-09-04 18:46:51 +0800332config SYS_FSL_ERRATUM_A009007
333 bool
334 help
335 Workaround for USB PHY erratum A009007
336
Ran Wangb358b7b2017-09-04 18:46:48 +0800337config SYS_FSL_ERRATUM_A009008
338 bool "Workaround for USB PHY erratum A009008"
339
Ran Wang9e8fabc2017-09-04 18:46:49 +0800340config SYS_FSL_ERRATUM_A009798
341 bool "Workaround for USB PHY erratum A009798"
342
Ran Wangd0270dc2019-11-26 11:40:40 +0800343config SYS_FSL_ERRATUM_A050106
344 bool "Workaround for USB PHY erratum A050106"
345 help
346 USB3.0 Receiver needs to enable fixed equalization
347 for each of PHY instances in an SOC. This is similar
348 to erratum A-009007, but this one is for LX2160A,
349 and the register value is different.
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
Kuldeep Singh34aafb02019-11-21 17:15:17 +0530391config FSPI_AHB_EN_4BYTE
392 bool "Enable 4-byte Fast Read command for AHB mode"
393 default n
394 help
395 The default setting for FlexSPI AHB bus just supports 3-byte addressing.
396 But some FlexSPI flash sizes are up to 64MBytes.
397 This flag enables fast read command for AHB mode and modifies required
398 LUT to support full FlexSPI flash.
399
Ashish Kumar11234062017-08-11 11:09:14 +0530400config SYS_CCI400_OFFSET
401 hex "Offset for CCI400 base"
402 depends on SYS_FSL_HAS_CCI400
Yuantian Tang4aefa162019-04-10 16:43:33 +0800403 default 0x3090000 if ARCH_LS1088A || ARCH_LS1028A
Ashish Kumar11234062017-08-11 11:09:14 +0530404 default 0x180000 if FSL_LSCH2
405 help
406 Offset for CCI400 base
407 CCI400 base addr = CCSRBAR + CCI400_OFFSET
408
York Sune7310a32016-10-04 14:45:54 -0700409config SYS_FSL_IFC_BANK_COUNT
410 int "Maximum banks of Integrated flash controller"
Ashish Kumarb25faa22017-08-31 16:12:53 +0530411 depends on ARCH_LS1043A || ARCH_LS1046A || ARCH_LS2080A || ARCH_LS1088A
York Sune7310a32016-10-04 14:45:54 -0700412 default 4 if ARCH_LS1043A
413 default 4 if ARCH_LS1046A
Ashish Kumarb25faa22017-08-31 16:12:53 +0530414 default 8 if ARCH_LS2080A || ARCH_LS1088A
York Sune7310a32016-10-04 14:45:54 -0700415
Ashish Kumar11234062017-08-11 11:09:14 +0530416config SYS_FSL_HAS_CCI400
417 bool
418
Ashish Kumar97393d62017-08-18 10:54:36 +0530419config SYS_FSL_HAS_CCN504
420 bool
421
Priyanka Jainef76b2e2018-10-29 09:17:09 +0000422config SYS_FSL_HAS_CCN508
423 bool
424
York Sun0dc9abb2016-10-04 14:46:50 -0700425config SYS_FSL_HAS_DP_DDR
426 bool
427
York Sun6b62ef02016-10-04 18:01:34 -0700428config SYS_FSL_SRDS_1
429 bool
430
431config SYS_FSL_SRDS_2
432 bool
433
Priyanka Jain1a602532018-09-27 10:32:05 +0530434config SYS_NXP_SRDS_3
435 bool
436
York Sun6b62ef02016-10-04 18:01:34 -0700437config SYS_HAS_SERDES
438 bool
439
Ashish kumar76bd6ce2017-04-07 11:40:32 +0530440config FSL_TZASC_1
441 bool
442
443config FSL_TZASC_2
444 bool
445
Rajesh Bhagat5756f7e2019-01-20 05:30:06 +0000446config FSL_TZASC_400
447 bool
448
449config FSL_TZPC_BP147
450 bool
York Sun4dd8c612016-10-04 14:31:48 -0700451endmenu
York Sun1dc61ca2016-12-28 08:43:41 -0800452
Hou Zhiqiang3f91cda2017-01-10 16:44:15 +0800453menu "Layerscape clock tree configuration"
454 depends on FSL_LSCH2 || FSL_LSCH3
455
456config SYS_FSL_CLK
457 bool "Enable clock tree initialization"
458 default y
459
460config CLUSTER_CLK_FREQ
461 int "Reference clock of core cluster"
462 depends on ARCH_LS1012A
463 default 100000000
464 help
465 This number is the reference clock frequency of core PLL.
466 For most platforms, the core PLL and Platform PLL have the same
467 reference clock, but for some platforms, LS1012A for instance,
468 they are provided sepatately.
469
470config SYS_FSL_PCLK_DIV
471 int "Platform clock divider"
Yuantian Tang4aefa162019-04-10 16:43:33 +0800472 default 1 if ARCH_LS1028A
Hou Zhiqiang3f91cda2017-01-10 16:44:15 +0800473 default 1 if ARCH_LS1043A
474 default 1 if ARCH_LS1046A
Ashish Kumarb25faa22017-08-31 16:12:53 +0530475 default 1 if ARCH_LS1088A
Hou Zhiqiang3f91cda2017-01-10 16:44:15 +0800476 default 2
477 help
478 This is the divider that is used to derive Platform clock from
479 Platform PLL, in another word:
480 Platform_clk = Platform_PLL_freq / this_divider
481
482config SYS_FSL_DSPI_CLK_DIV
483 int "DSPI clock divider"
484 default 1 if ARCH_LS1043A
485 default 2
486 help
487 This is the divider that is used to derive DSPI clock from Platform
Hou Zhiqiang0c8fcb62017-07-03 18:37:11 +0800488 clock, in another word DSPI_clk = Platform_clk / this_divider.
Hou Zhiqiang3f91cda2017-01-10 16:44:15 +0800489
490config SYS_FSL_DUART_CLK_DIV
491 int "DUART clock divider"
492 default 1 if ARCH_LS1043A
Priyanka Jainef76b2e2018-10-29 09:17:09 +0000493 default 4 if ARCH_LX2160A
Hou Zhiqiang3f91cda2017-01-10 16:44:15 +0800494 default 2
495 help
496 This is the divider that is used to derive DUART clock from Platform
497 clock, in another word DUART_clk = Platform_clk / this_divider.
498
499config SYS_FSL_I2C_CLK_DIV
500 int "I2C clock divider"
501 default 1 if ARCH_LS1043A
Chuanhua Han44d4d332019-08-02 16:53:53 +0800502 default 4 if ARCH_LS1012A
503 default 4 if ARCH_LS1028A
504 default 8 if ARCH_LX2160A
505 default 8 if ARCH_LS1088A
Hou Zhiqiang3f91cda2017-01-10 16:44:15 +0800506 default 2
507 help
508 This is the divider that is used to derive I2C clock from Platform
509 clock, in another word I2C_clk = Platform_clk / this_divider.
510
511config SYS_FSL_IFC_CLK_DIV
512 int "IFC clock divider"
513 default 1 if ARCH_LS1043A
Chuanhua Han3df89cc2019-08-08 17:04:58 +0800514 default 4 if ARCH_LS1012A
515 default 4 if ARCH_LS1028A
516 default 8 if ARCH_LX2160A
517 default 8 if ARCH_LS1088A
Hou Zhiqiang3f91cda2017-01-10 16:44:15 +0800518 default 2
519 help
520 This is the divider that is used to derive IFC clock from Platform
521 clock, in another word IFC_clk = Platform_clk / this_divider.
522
523config SYS_FSL_LPUART_CLK_DIV
524 int "LPUART clock divider"
525 default 1 if ARCH_LS1043A
526 default 2
527 help
528 This is the divider that is used to derive LPUART clock from Platform
529 clock, in another word LPUART_clk = Platform_clk / this_divider.
530
531config SYS_FSL_SDHC_CLK_DIV
532 int "SDHC clock divider"
533 default 1 if ARCH_LS1043A
534 default 1 if ARCH_LS1012A
535 default 2
536 help
537 This is the divider that is used to derive SDHC clock from Platform
538 clock, in another word SDHC_clk = Platform_clk / this_divider.
Hou Zhiqiangfef32c62018-04-25 16:28:44 +0800539
540config SYS_FSL_QMAN_CLK_DIV
541 int "QMAN clock divider"
542 default 1 if ARCH_LS1043A
543 default 2
544 help
545 This is the divider that is used to derive QMAN clock from Platform
546 clock, in another word QMAN_clk = Platform_clk / this_divider.
Hou Zhiqiang3f91cda2017-01-10 16:44:15 +0800547endmenu
548
York Sund6964b32017-03-06 09:02:24 -0800549config RESV_RAM
550 bool
551 help
552 Reserve memory from the top, tracked by gd->arch.resv_ram. This
553 reserved RAM can be used by special driver that resides in memory
554 after U-Boot exits. It's up to implementation to allocate and allow
555 access to this reserved memory. For example, the reserved RAM can
556 be at the high end of physical memory. The reserve RAM may be
557 excluded from memory bank(s) passed to OS, or marked as reserved.
558
Ashish Kumarec455e22017-08-31 16:37:31 +0530559config SYS_FSL_EC1
560 bool
561 help
Priyanka Jainef76b2e2018-10-29 09:17:09 +0000562 Ethernet controller 1, this is connected to
563 MAC17 for LX2160A or to MAC3 for other SoCs
Ashish Kumarec455e22017-08-31 16:37:31 +0530564 Provides DPAA2 capabilities
565
566config SYS_FSL_EC2
567 bool
568 help
Priyanka Jainef76b2e2018-10-29 09:17:09 +0000569 Ethernet controller 2, this is connected to
570 MAC18 for LX2160A or to MAC4 for other SoCs
Ashish Kumarec455e22017-08-31 16:37:31 +0530571 Provides DPAA2 capabilities
572
York Sun1dc61ca2016-12-28 08:43:41 -0800573config SYS_FSL_ERRATUM_A008336
574 bool
575
576config SYS_FSL_ERRATUM_A008514
577 bool
578
579config SYS_FSL_ERRATUM_A008585
580 bool
581
582config SYS_FSL_ERRATUM_A008850
583 bool
584
Ashish kumar3b52a232017-02-23 16:03:57 +0530585config SYS_FSL_ERRATUM_A009203
586 bool
587
York Sun1dc61ca2016-12-28 08:43:41 -0800588config SYS_FSL_ERRATUM_A009635
589 bool
590
591config SYS_FSL_ERRATUM_A009660
592 bool
593
Laurentiu Tudor7ea2feb2019-10-18 09:01:56 +0000594config SYS_FSL_ERRATUM_A050382
595 bool
Ashish Kumarec455e22017-08-31 16:37:31 +0530596
597config SYS_FSL_HAS_RGMII
598 bool
599 depends on SYS_FSL_EC1 || SYS_FSL_EC2
600
Philipp Tomsich2d6a0cc2017-08-03 23:23:55 +0200601config SPL_LDSCRIPT
602 default "arch/arm/cpu/armv8/u-boot-spl.lds" if ARCH_LS1043A || ARCH_LS1046A || ARCH_LS2080A
Ran Wang5959f842017-10-23 10:09:21 +0800603
604config HAS_FSL_XHCI_USB
605 bool
606 default y if ARCH_LS1043A || ARCH_LS1046A
607 help
608 For some SoC(such as LS1043A and LS1046A), USB and QE-HDLC multiplex use
609 pins, select it when the pins are assigned to USB.