blob: 3344730aef5151bbd18e0603bbc4c1bc1bf82363 [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
Michael Walle148dc612021-03-17 15:01:36 +010050 select SYS_FSL_ERRATUM_A011334
Michael Walle7259dc52021-03-17 15:01:37 +010051 select SYS_FSL_ESDHC_UNRELIABLE_PULSE_DETECTION_WORKAROUND
Hou Zhiqiangce4a92a2020-04-28 10:19:31 +080052 select RESV_RAM if GIC_V3_ITS
Yuantian Tang4aefa162019-04-10 16:43:33 +080053 imply PANIC_HANG
54
York Sun149eb332016-09-26 08:09:27 -070055config ARCH_LS1043A
York Sunfcd0e742016-10-04 14:31:47 -070056 bool
Hou Zhiqiang4d1525a2017-01-06 17:41:11 +080057 select ARMV8_SET_SMPEN
Rajesh Bhagatcd786e82018-11-05 18:01:48 +000058 select ARM_ERRATA_855873 if !TFABOOT
Rajesh Bhagat52d237a2019-01-25 13:36:26 +000059 select FSL_LAYERSCAPE
York Sun4dd8c612016-10-04 14:31:48 -070060 select FSL_LSCH2
Tom Rini46c97312021-07-21 18:53:20 -040061 select HAS_FSL_XHCI_USB if USB_HOST
Sriram Dash4a943332018-01-30 15:58:44 +053062 select SYS_FSL_SRDS_1
63 select SYS_HAS_SERDES
York Sund297d392016-12-28 08:43:40 -080064 select SYS_FSL_DDR
York Sunb6fffd82016-10-04 18:03:08 -070065 select SYS_FSL_DDR_BE
66 select SYS_FSL_DDR_VER_50
Rajesh Bhagatcd786e82018-11-05 18:01:48 +000067 select SYS_FSL_ERRATUM_A008850 if !TFABOOT
Ran Wange64f7472017-09-04 18:46:50 +080068 select SYS_FSL_ERRATUM_A008997
Ran Wang3ba69482017-09-04 18:46:51 +080069 select SYS_FSL_ERRATUM_A009007
Ran Wangb358b7b2017-09-04 18:46:48 +080070 select SYS_FSL_ERRATUM_A009008
Rajesh Bhagatcd786e82018-11-05 18:01:48 +000071 select SYS_FSL_ERRATUM_A009660 if !TFABOOT
72 select SYS_FSL_ERRATUM_A009663 if !TFABOOT
Ran Wang9e8fabc2017-09-04 18:46:49 +080073 select SYS_FSL_ERRATUM_A009798
Rajesh Bhagatcd786e82018-11-05 18:01:48 +000074 select SYS_FSL_ERRATUM_A009942 if !TFABOOT
York Sun149eb332016-09-26 08:09:27 -070075 select SYS_FSL_ERRATUM_A010315
Hou Zhiqiangc06b30a2016-09-29 12:42:44 +080076 select SYS_FSL_ERRATUM_A010539
York Sund297d392016-12-28 08:43:40 -080077 select SYS_FSL_HAS_DDR3
78 select SYS_FSL_HAS_DDR4
Simon Glass62adede2017-01-23 13:31:19 -070079 select ARCH_EARLY_INIT_R
Simon Glass7a99a872017-01-23 13:31:20 -070080 select BOARD_EARLY_INIT_F
Biwen Li42637e72020-06-04 18:42:14 +080081 select SYS_I2C_MXC
Biwen Li014460b2020-02-05 22:02:16 +080082 select SYS_I2C_MXC_I2C1 if !DM_I2C
83 select SYS_I2C_MXC_I2C2 if !DM_I2C
84 select SYS_I2C_MXC_I2C3 if !DM_I2C
85 select SYS_I2C_MXC_I2C4 if !DM_I2C
Simon Glassc88a09a2017-08-04 16:34:34 -060086 imply CMD_PCI
Tom Rini4abdf142021-08-17 17:59:41 -040087 imply ID_EEPROM
York Sunb3d71642016-09-26 08:09:26 -070088
York Sunbad49842016-09-26 08:09:24 -070089config ARCH_LS1046A
York Sunfcd0e742016-10-04 14:31:47 -070090 bool
Hou Zhiqiang4d1525a2017-01-06 17:41:11 +080091 select ARMV8_SET_SMPEN
Rajesh Bhagat52d237a2019-01-25 13:36:26 +000092 select FSL_LAYERSCAPE
York Sun4dd8c612016-10-04 14:31:48 -070093 select FSL_LSCH2
Tom Rini46c97312021-07-21 18:53:20 -040094 select HAS_FSL_XHCI_USB if USB_HOST
Sriram Dash4a943332018-01-30 15:58:44 +053095 select SYS_FSL_SRDS_1
96 select SYS_HAS_SERDES
York Sund297d392016-12-28 08:43:40 -080097 select SYS_FSL_DDR
York Sunb6fffd82016-10-04 18:03:08 -070098 select SYS_FSL_DDR_BE
York Sunb6fffd82016-10-04 18:03:08 -070099 select SYS_FSL_DDR_VER_50
Rajesh Bhagatcd786e82018-11-05 18:01:48 +0000100 select SYS_FSL_ERRATUM_A008336 if !TFABOOT
101 select SYS_FSL_ERRATUM_A008511 if !TFABOOT
102 select SYS_FSL_ERRATUM_A008850 if !TFABOOT
Ran Wange64f7472017-09-04 18:46:50 +0800103 select SYS_FSL_ERRATUM_A008997
Ran Wang3ba69482017-09-04 18:46:51 +0800104 select SYS_FSL_ERRATUM_A009007
Ran Wangb358b7b2017-09-04 18:46:48 +0800105 select SYS_FSL_ERRATUM_A009008
Ran Wang9e8fabc2017-09-04 18:46:49 +0800106 select SYS_FSL_ERRATUM_A009798
York Sun1dc61ca2016-12-28 08:43:41 -0800107 select SYS_FSL_ERRATUM_A009801
Rajesh Bhagatcd786e82018-11-05 18:01:48 +0000108 select SYS_FSL_ERRATUM_A009803 if !TFABOOT
109 select SYS_FSL_ERRATUM_A009942 if !TFABOOT
110 select SYS_FSL_ERRATUM_A010165 if !TFABOOT
Hou Zhiqiangc06b30a2016-09-29 12:42:44 +0800111 select SYS_FSL_ERRATUM_A010539
York Sund297d392016-12-28 08:43:40 -0800112 select SYS_FSL_HAS_DDR4
York Sun6b62ef02016-10-04 18:01:34 -0700113 select SYS_FSL_SRDS_2
Simon Glass62adede2017-01-23 13:31:19 -0700114 select ARCH_EARLY_INIT_R
Simon Glass7a99a872017-01-23 13:31:20 -0700115 select BOARD_EARLY_INIT_F
Biwen Li42637e72020-06-04 18:42:14 +0800116 select SYS_I2C_MXC
Biwen Lif0018f52020-02-05 22:02:17 +0800117 select SYS_I2C_MXC_I2C1 if !DM_I2C
118 select SYS_I2C_MXC_I2C2 if !DM_I2C
119 select SYS_I2C_MXC_I2C3 if !DM_I2C
120 select SYS_I2C_MXC_I2C4 if !DM_I2C
Tom Rini4abdf142021-08-17 17:59:41 -0400121 imply ID_EEPROM
Simon Glass0e5faf02017-06-14 21:28:21 -0600122 imply SCSI
Tuomas Tynkkynenedf9f622017-12-08 15:36:19 +0200123 imply SCSI_AHCI
Tom Rini52b2e262021-08-18 23:12:24 -0400124 imply SPL_SYS_I2C_LEGACY
York Sunb3d71642016-09-26 08:09:26 -0700125
Ashish Kumarb25faa22017-08-31 16:12:53 +0530126config ARCH_LS1088A
127 bool
128 select ARMV8_SET_SMPEN
Pankit Gargf5c2a832018-12-27 04:37:55 +0000129 select ARM_ERRATA_855873 if !TFABOOT
Rajesh Bhagat52d237a2019-01-25 13:36:26 +0000130 select FSL_LAYERSCAPE
Ashish Kumarb25faa22017-08-31 16:12:53 +0530131 select FSL_LSCH3
Sriram Dash4a943332018-01-30 15:58:44 +0530132 select SYS_FSL_SRDS_1
133 select SYS_HAS_SERDES
Ashish Kumarb25faa22017-08-31 16:12:53 +0530134 select SYS_FSL_DDR
135 select SYS_FSL_DDR_LE
136 select SYS_FSL_DDR_VER_50
Ashish Kumarec455e22017-08-31 16:37:31 +0530137 select SYS_FSL_EC1
138 select SYS_FSL_EC2
Pankit Gargf5c2a832018-12-27 04:37:55 +0000139 select SYS_FSL_ERRATUM_A009803 if !TFABOOT
140 select SYS_FSL_ERRATUM_A009942 if !TFABOOT
141 select SYS_FSL_ERRATUM_A010165 if !TFABOOT
142 select SYS_FSL_ERRATUM_A008511 if !TFABOOT
143 select SYS_FSL_ERRATUM_A008850 if !TFABOOT
Ran Wangef277072017-09-22 15:21:34 +0800144 select SYS_FSL_ERRATUM_A009007
Ashish Kumarb25faa22017-08-31 16:12:53 +0530145 select SYS_FSL_HAS_CCI400
146 select SYS_FSL_HAS_DDR4
Ashish Kumarec455e22017-08-31 16:37:31 +0530147 select SYS_FSL_HAS_RGMII
Ashish Kumarb25faa22017-08-31 16:12:53 +0530148 select SYS_FSL_HAS_SEC
149 select SYS_FSL_SEC_COMPAT_5
150 select SYS_FSL_SEC_LE
151 select SYS_FSL_SRDS_1
152 select SYS_FSL_SRDS_2
153 select FSL_TZASC_1
Rajesh Bhagat5756f7e2019-01-20 05:30:06 +0000154 select FSL_TZASC_400
155 select FSL_TZPC_BP147
Ashish Kumarb25faa22017-08-31 16:12:53 +0530156 select ARCH_EARLY_INIT_R
157 select BOARD_EARLY_INIT_F
Sriram Dash7122a0c2018-02-06 11:26:30 +0530158 select SYS_I2C_MXC
Chuanhua Han98a5e402019-07-26 20:25:37 +0800159 select SYS_I2C_MXC_I2C1 if !TFABOOT
160 select SYS_I2C_MXC_I2C2 if !TFABOOT
161 select SYS_I2C_MXC_I2C3 if !TFABOOT
162 select SYS_I2C_MXC_I2C4 if !TFABOOT
Hou Zhiqiangce4a92a2020-04-28 10:19:31 +0800163 select RESV_RAM if GIC_V3_ITS
Tom Rini4abdf142021-08-17 17:59:41 -0400164 imply ID_EEPROM
Ashish Kumara179e562017-11-02 09:50:47 +0530165 imply SCSI
Tom Rini52b2e262021-08-18 23:12:24 -0400166 imply SPL_SYS_I2C_LEGACY
Masahiro Yamadaacede7a2017-12-04 12:37:00 +0900167 imply PANIC_HANG
Ashish Kumarb25faa22017-08-31 16:12:53 +0530168
York Sunfcd0e742016-10-04 14:31:47 -0700169config ARCH_LS2080A
170 bool
Hou Zhiqiang4d1525a2017-01-06 17:41:11 +0800171 select ARMV8_SET_SMPEN
Tom Rinibacb52c2017-03-07 07:13:42 -0500172 select ARM_ERRATA_826974
173 select ARM_ERRATA_828024
174 select ARM_ERRATA_829520
175 select ARM_ERRATA_833471
Rajesh Bhagat52d237a2019-01-25 13:36:26 +0000176 select FSL_LAYERSCAPE
York Sun4dd8c612016-10-04 14:31:48 -0700177 select FSL_LSCH3
Sriram Dash4a943332018-01-30 15:58:44 +0530178 select SYS_FSL_SRDS_1
179 select SYS_HAS_SERDES
York Sund297d392016-12-28 08:43:40 -0800180 select SYS_FSL_DDR
York Sunb6fffd82016-10-04 18:03:08 -0700181 select SYS_FSL_DDR_LE
182 select SYS_FSL_DDR_VER_50
Ashish Kumar97393d62017-08-18 10:54:36 +0530183 select SYS_FSL_HAS_CCN504
York Sun6b62ef02016-10-04 18:01:34 -0700184 select SYS_FSL_HAS_DP_DDR
York Sun92c36e22016-12-28 08:43:30 -0800185 select SYS_FSL_HAS_SEC
York Sund297d392016-12-28 08:43:40 -0800186 select SYS_FSL_HAS_DDR4
York Sun92c36e22016-12-28 08:43:30 -0800187 select SYS_FSL_SEC_COMPAT_5
York Sunfa4199422016-12-28 08:43:31 -0800188 select SYS_FSL_SEC_LE
York Sun6b62ef02016-10-04 18:01:34 -0700189 select SYS_FSL_SRDS_2
Ashish kumar76bd6ce2017-04-07 11:40:32 +0530190 select FSL_TZASC_1
191 select FSL_TZASC_2
Rajesh Bhagat5756f7e2019-01-20 05:30:06 +0000192 select FSL_TZASC_400
193 select FSL_TZPC_BP147
Rajesh Bhagatd5691be2018-12-27 04:37:59 +0000194 select SYS_FSL_ERRATUM_A008336 if !TFABOOT
195 select SYS_FSL_ERRATUM_A008511 if !TFABOOT
196 select SYS_FSL_ERRATUM_A008514 if !TFABOOT
York Sun1dc61ca2016-12-28 08:43:41 -0800197 select SYS_FSL_ERRATUM_A008585
Ran Wange64f7472017-09-04 18:46:50 +0800198 select SYS_FSL_ERRATUM_A008997
Ran Wang3ba69482017-09-04 18:46:51 +0800199 select SYS_FSL_ERRATUM_A009007
Ran Wangb358b7b2017-09-04 18:46:48 +0800200 select SYS_FSL_ERRATUM_A009008
York Sun1dc61ca2016-12-28 08:43:41 -0800201 select SYS_FSL_ERRATUM_A009635
Rajesh Bhagatd5691be2018-12-27 04:37:59 +0000202 select SYS_FSL_ERRATUM_A009663 if !TFABOOT
Ran Wang9e8fabc2017-09-04 18:46:49 +0800203 select SYS_FSL_ERRATUM_A009798
York Sun1dc61ca2016-12-28 08:43:41 -0800204 select SYS_FSL_ERRATUM_A009801
Rajesh Bhagatd5691be2018-12-27 04:37:59 +0000205 select SYS_FSL_ERRATUM_A009803 if !TFABOOT
206 select SYS_FSL_ERRATUM_A009942 if !TFABOOT
207 select SYS_FSL_ERRATUM_A010165 if !TFABOOT
Ashish kumar3b52a232017-02-23 16:03:57 +0530208 select SYS_FSL_ERRATUM_A009203
Simon Glass62adede2017-01-23 13:31:19 -0700209 select ARCH_EARLY_INIT_R
Simon Glass7a99a872017-01-23 13:31:20 -0700210 select BOARD_EARLY_INIT_F
Sriram Dash7122a0c2018-02-06 11:26:30 +0530211 select SYS_I2C_MXC
Chuanhua Han3f27fff2019-07-26 19:24:03 +0800212 select SYS_I2C_MXC_I2C1 if !TFABOOT
213 select SYS_I2C_MXC_I2C2 if !TFABOOT
214 select SYS_I2C_MXC_I2C3 if !TFABOOT
215 select SYS_I2C_MXC_I2C4 if !TFABOOT
Hou Zhiqiangce4a92a2020-04-28 10:19:31 +0800216 select RESV_RAM if GIC_V3_ITS
Masahiro Yamada9afc6c52018-04-25 18:47:52 +0900217 imply DISTRO_DEFAULTS
Tom Rini4abdf142021-08-17 17:59:41 -0400218 imply ID_EEPROM
Masahiro Yamadaacede7a2017-12-04 12:37:00 +0900219 imply PANIC_HANG
Tom Rini52b2e262021-08-18 23:12:24 -0400220 imply SPL_SYS_I2C_LEGACY
York Sun4dd8c612016-10-04 14:31:48 -0700221
Meenakshi Aggarwalccb5d5d2020-10-29 19:16:16 +0530222config ARCH_LX2162A
223 bool
224 select ARMV8_SET_SMPEN
225 select FSL_LSCH3
226 select NXP_LSCH3_2
227 select SYS_HAS_SERDES
228 select SYS_FSL_SRDS_1
229 select SYS_FSL_SRDS_2
230 select SYS_FSL_DDR
231 select SYS_FSL_DDR_LE
232 select SYS_FSL_DDR_VER_50
233 select SYS_FSL_EC1
234 select SYS_FSL_EC2
Ran Wang13a84a52021-06-16 17:53:19 +0530235 select SYS_FSL_ERRATUM_A050204
Yangbo Lu84f0a952021-04-27 16:42:11 +0800236 select SYS_FSL_ERRATUM_A011334
237 select SYS_FSL_ESDHC_UNRELIABLE_PULSE_DETECTION_WORKAROUND
Meenakshi Aggarwalccb5d5d2020-10-29 19:16:16 +0530238 select SYS_FSL_HAS_RGMII
239 select SYS_FSL_HAS_SEC
240 select SYS_FSL_HAS_CCN508
241 select SYS_FSL_HAS_DDR4
242 select SYS_FSL_SEC_COMPAT_5
243 select SYS_FSL_SEC_LE
244 select ARCH_EARLY_INIT_R
245 select BOARD_EARLY_INIT_F
246 select SYS_I2C_MXC
247 select RESV_RAM if GIC_V3_ITS
248 imply DISTRO_DEFAULTS
249 imply PANIC_HANG
250 imply SCSI
251 imply SCSI_AHCI
Tom Rini52b2e262021-08-18 23:12:24 -0400252 imply SPL_SYS_I2C_LEGACY
Meenakshi Aggarwalccb5d5d2020-10-29 19:16:16 +0530253
Priyanka Jainef76b2e2018-10-29 09:17:09 +0000254config ARCH_LX2160A
255 bool
256 select ARMV8_SET_SMPEN
257 select FSL_LSCH3
Tom Rini46c97312021-07-21 18:53:20 -0400258 select HAS_FSL_XHCI_USB if USB_HOST
Priyanka Jainef76b2e2018-10-29 09:17:09 +0000259 select NXP_LSCH3_2
260 select SYS_HAS_SERDES
261 select SYS_FSL_SRDS_1
262 select SYS_FSL_SRDS_2
263 select SYS_NXP_SRDS_3
264 select SYS_FSL_DDR
265 select SYS_FSL_DDR_LE
266 select SYS_FSL_DDR_VER_50
267 select SYS_FSL_EC1
268 select SYS_FSL_EC2
Ran Wang13a84a52021-06-16 17:53:19 +0530269 select SYS_FSL_ERRATUM_A050204
Yangbo Lu84f0a952021-04-27 16:42:11 +0800270 select SYS_FSL_ERRATUM_A011334
271 select SYS_FSL_ESDHC_UNRELIABLE_PULSE_DETECTION_WORKAROUND
Priyanka Jainef76b2e2018-10-29 09:17:09 +0000272 select SYS_FSL_HAS_RGMII
273 select SYS_FSL_HAS_SEC
274 select SYS_FSL_HAS_CCN508
275 select SYS_FSL_HAS_DDR4
276 select SYS_FSL_SEC_COMPAT_5
277 select SYS_FSL_SEC_LE
278 select ARCH_EARLY_INIT_R
279 select BOARD_EARLY_INIT_F
280 select SYS_I2C_MXC
Hou Zhiqiangce4a92a2020-04-28 10:19:31 +0800281 select RESV_RAM if GIC_V3_ITS
Priyanka Jainef76b2e2018-10-29 09:17:09 +0000282 imply DISTRO_DEFAULTS
Tom Rini4abdf142021-08-17 17:59:41 -0400283 imply ID_EEPROM
Priyanka Jainef76b2e2018-10-29 09:17:09 +0000284 imply PANIC_HANG
285 imply SCSI
286 imply SCSI_AHCI
Tom Rini52b2e262021-08-18 23:12:24 -0400287 imply SPL_SYS_I2C_LEGACY
Priyanka Jainef76b2e2018-10-29 09:17:09 +0000288
York Sun4dd8c612016-10-04 14:31:48 -0700289config FSL_LSCH2
290 bool
Ashish Kumar11234062017-08-11 11:09:14 +0530291 select SYS_FSL_HAS_CCI400
York Sun92c36e22016-12-28 08:43:30 -0800292 select SYS_FSL_HAS_SEC
293 select SYS_FSL_SEC_COMPAT_5
York Sunfa4199422016-12-28 08:43:31 -0800294 select SYS_FSL_SEC_BE
York Sun4dd8c612016-10-04 14:31:48 -0700295
296config FSL_LSCH3
Alex Marginean47568ce2020-01-11 01:05:40 +0200297 select ARCH_MISC_INIT
York Sun4dd8c612016-10-04 14:31:48 -0700298 bool
299
Priyanka Jain88c25662018-10-29 09:11:29 +0000300config NXP_LSCH3_2
301 bool
302
York Sun4dd8c612016-10-04 14:31:48 -0700303menu "Layerscape architecture"
304 depends on FSL_LSCH2 || FSL_LSCH3
York Sunfcd0e742016-10-04 14:31:47 -0700305
Rajesh Bhagat52d237a2019-01-25 13:36:26 +0000306config FSL_LAYERSCAPE
307 bool
308
Wenbin Songa8f57a92017-01-17 18:31:15 +0800309config HAS_FEATURE_GIC64K_ALIGN
310 bool
311 default y if ARCH_LS1043A
312
Wenbin Songc6bc7c02017-01-17 18:31:16 +0800313config HAS_FEATURE_ENHANCED_MSI
314 bool
315 default y if ARCH_LS1043A
Wenbin Songa8f57a92017-01-17 18:31:15 +0800316
macro.wave.z@gmail.comec2d7ed2016-12-08 11:58:21 +0800317menu "Layerscape PPA"
318config FSL_LS_PPA
319 bool "FSL Layerscape PPA firmware support"
macro.wave.z@gmail.com01bd3342016-12-08 11:58:22 +0800320 depends on !ARMV8_PSCI
Hou Zhiqiangbff56d52017-01-16 17:31:49 +0800321 select ARMV8_SEC_FIRMWARE_SUPPORT
Hou Zhiqiang6be115d2017-01-16 17:31:48 +0800322 select SEC_FIRMWARE_ARMV8_PSCI
Hou Zhiqiangbff56d52017-01-16 17:31:49 +0800323 select ARMV8_SEC_FIRMWARE_ERET_ADDR_REVERT if FSL_LSCH2
macro.wave.z@gmail.comec2d7ed2016-12-08 11:58:21 +0800324 help
325 The FSL Primary Protected Application (PPA) is a software component
326 which is loaded during boot stage, and then remains resident in RAM
327 and runs in the TrustZone after boot.
328 Say y to enable it.
York Sunf2aaf842017-05-15 08:52:00 -0700329
330config SPL_FSL_LS_PPA
331 bool "FSL Layerscape PPA firmware support for SPL build"
332 depends on !ARMV8_PSCI
333 select SPL_ARMV8_SEC_FIRMWARE_SUPPORT
334 select SEC_FIRMWARE_ARMV8_PSCI
335 select ARMV8_SEC_FIRMWARE_ERET_ADDR_REVERT if FSL_LSCH2
336 help
337 The FSL Primary Protected Application (PPA) is a software component
338 which is loaded during boot stage, and then remains resident in RAM
339 and runs in the TrustZone after boot. This is to load PPA during SPL
340 stage instead of the RAM version of U-Boot. Once PPA is initialized,
341 the rest of U-Boot (including RAM version) runs at EL2.
Hou Zhiqiangbff56d52017-01-16 17:31:49 +0800342choice
343 prompt "FSL Layerscape PPA firmware loading-media select"
344 depends on FSL_LS_PPA
Hou Zhiqiangbd6e2cd2017-03-17 16:12:33 +0800345 default SYS_LS_PPA_FW_IN_MMC if SD_BOOT
346 default SYS_LS_PPA_FW_IN_NAND if NAND_BOOT
Hou Zhiqiangbff56d52017-01-16 17:31:49 +0800347 default SYS_LS_PPA_FW_IN_XIP
348
349config SYS_LS_PPA_FW_IN_XIP
350 bool "XIP"
351 help
352 Say Y here if the PPA firmware locate at XIP flash, such
353 as NOR or QSPI flash.
354
Hou Zhiqiangbd6e2cd2017-03-17 16:12:33 +0800355config SYS_LS_PPA_FW_IN_MMC
356 bool "eMMC or SD Card"
357 help
358 Say Y here if the PPA firmware locate at eMMC/SD card.
359
360config SYS_LS_PPA_FW_IN_NAND
361 bool "NAND"
362 help
363 Say Y here if the PPA firmware locate at NAND flash.
364
Hou Zhiqiangbff56d52017-01-16 17:31:49 +0800365endchoice
366
Sumit Garg8fddf752017-04-20 05:09:11 +0530367config LS_PPA_ESBC_HDR_SIZE
368 hex "Length of PPA ESBC header"
369 depends on FSL_LS_PPA && CHAIN_OF_TRUST && !SYS_LS_PPA_FW_IN_XIP
370 default 0x2000
371 help
372 Length (in bytes) of PPA ESBC header to be copied from MMC/SD or
373 NAND to memory to validate PPA image.
374
macro.wave.z@gmail.comec2d7ed2016-12-08 11:58:21 +0800375endmenu
376
Ran Wange64f7472017-09-04 18:46:50 +0800377config SYS_FSL_ERRATUM_A008997
378 bool "Workaround for USB PHY erratum A008997"
379
Ran Wang3ba69482017-09-04 18:46:51 +0800380config SYS_FSL_ERRATUM_A009007
381 bool
382 help
383 Workaround for USB PHY erratum A009007
384
Ran Wangb358b7b2017-09-04 18:46:48 +0800385config SYS_FSL_ERRATUM_A009008
386 bool "Workaround for USB PHY erratum A009008"
387
Ran Wang9e8fabc2017-09-04 18:46:49 +0800388config SYS_FSL_ERRATUM_A009798
389 bool "Workaround for USB PHY erratum A009798"
390
Ran Wang13a84a52021-06-16 17:53:19 +0530391config SYS_FSL_ERRATUM_A050204
392 bool "Workaround for USB PHY erratum A050204"
Ran Wangd0270dc2019-11-26 11:40:40 +0800393 help
394 USB3.0 Receiver needs to enable fixed equalization
395 for each of PHY instances in an SOC. This is similar
Meenakshi Aggarwalccb5d5d2020-10-29 19:16:16 +0530396 to erratum A-009007, but this one is for LX2160A and LX2162A,
Ran Wangd0270dc2019-11-26 11:40:40 +0800397 and the register value is different.
398
York Sun149eb332016-09-26 08:09:27 -0700399config SYS_FSL_ERRATUM_A010315
400 bool "Workaround for PCIe erratum A010315"
Hou Zhiqiangc06b30a2016-09-29 12:42:44 +0800401
402config SYS_FSL_ERRATUM_A010539
403 bool "Workaround for PIN MUX erratum A010539"
York Sun4dd8c612016-10-04 14:31:48 -0700404
York Sunf188d222016-10-04 14:45:01 -0700405config MAX_CPUS
406 int "Maximum number of CPUs permitted for Layerscape"
Yuantian Tang4aefa162019-04-10 16:43:33 +0800407 default 2 if ARCH_LS1028A
York Sunf188d222016-10-04 14:45:01 -0700408 default 4 if ARCH_LS1043A
409 default 4 if ARCH_LS1046A
410 default 16 if ARCH_LS2080A
Ashish Kumarb25faa22017-08-31 16:12:53 +0530411 default 8 if ARCH_LS1088A
Priyanka Jainef76b2e2018-10-29 09:17:09 +0000412 default 16 if ARCH_LX2160A
Meenakshi Aggarwalccb5d5d2020-10-29 19:16:16 +0530413 default 16 if ARCH_LX2162A
York Sunf188d222016-10-04 14:45:01 -0700414 default 1
415 help
416 Set this number to the maximum number of possible CPUs in the SoC.
417 SoCs may have multiple clusters with each cluster may have multiple
418 ports. If some ports are reserved but higher ports are used for
419 cores, count the reserved ports. This will allocate enough memory
420 in spin table to properly handle all cores.
421
Meenakshi Aggarwalbbd33182018-11-30 22:32:11 +0530422config EMC2305
423 bool "Fan controller"
424 help
425 Enable the EMC2305 fan controller for configuration of fan
426 speed.
427
Udit Agarwal22ec2382019-11-07 16:11:32 +0000428config NXP_ESBC
429 bool "NXP_ESBC"
York Sun728e7002016-12-02 09:32:35 -0800430 help
431 Enable Freescale Secure Boot feature
432
Yuan Yao52ae4fd2016-12-01 10:13:52 +0800433config QSPI_AHB_INIT
434 bool "Init the QSPI AHB bus"
435 help
436 The default setting for QSPI AHB bus just support 3bytes addressing.
437 But some QSPI flash size up to 64MBytes, so initialize the QSPI AHB
438 bus for those flashes to support the full QSPI flash size.
439
Kuldeep Singh34aafb02019-11-21 17:15:17 +0530440config FSPI_AHB_EN_4BYTE
441 bool "Enable 4-byte Fast Read command for AHB mode"
442 default n
443 help
444 The default setting for FlexSPI AHB bus just supports 3-byte addressing.
445 But some FlexSPI flash sizes are up to 64MBytes.
446 This flag enables fast read command for AHB mode and modifies required
447 LUT to support full FlexSPI flash.
448
Ashish Kumar11234062017-08-11 11:09:14 +0530449config SYS_CCI400_OFFSET
450 hex "Offset for CCI400 base"
451 depends on SYS_FSL_HAS_CCI400
Yuantian Tang4aefa162019-04-10 16:43:33 +0800452 default 0x3090000 if ARCH_LS1088A || ARCH_LS1028A
Ashish Kumar11234062017-08-11 11:09:14 +0530453 default 0x180000 if FSL_LSCH2
454 help
455 Offset for CCI400 base
456 CCI400 base addr = CCSRBAR + CCI400_OFFSET
457
York Sune7310a32016-10-04 14:45:54 -0700458config SYS_FSL_IFC_BANK_COUNT
459 int "Maximum banks of Integrated flash controller"
Ashish Kumarb25faa22017-08-31 16:12:53 +0530460 depends on ARCH_LS1043A || ARCH_LS1046A || ARCH_LS2080A || ARCH_LS1088A
York Sune7310a32016-10-04 14:45:54 -0700461 default 4 if ARCH_LS1043A
462 default 4 if ARCH_LS1046A
Ashish Kumarb25faa22017-08-31 16:12:53 +0530463 default 8 if ARCH_LS2080A || ARCH_LS1088A
York Sune7310a32016-10-04 14:45:54 -0700464
Ashish Kumar11234062017-08-11 11:09:14 +0530465config SYS_FSL_HAS_CCI400
466 bool
467
Ashish Kumar97393d62017-08-18 10:54:36 +0530468config SYS_FSL_HAS_CCN504
469 bool
470
Priyanka Jainef76b2e2018-10-29 09:17:09 +0000471config SYS_FSL_HAS_CCN508
472 bool
473
York Sun0dc9abb2016-10-04 14:46:50 -0700474config SYS_FSL_HAS_DP_DDR
475 bool
476
York Sun6b62ef02016-10-04 18:01:34 -0700477config SYS_FSL_SRDS_1
478 bool
479
480config SYS_FSL_SRDS_2
481 bool
482
Priyanka Jain1a602532018-09-27 10:32:05 +0530483config SYS_NXP_SRDS_3
484 bool
485
York Sun6b62ef02016-10-04 18:01:34 -0700486config SYS_HAS_SERDES
487 bool
488
Ashish kumar76bd6ce2017-04-07 11:40:32 +0530489config FSL_TZASC_1
490 bool
491
492config FSL_TZASC_2
493 bool
494
Rajesh Bhagat5756f7e2019-01-20 05:30:06 +0000495config FSL_TZASC_400
496 bool
497
498config FSL_TZPC_BP147
499 bool
York Sun4dd8c612016-10-04 14:31:48 -0700500endmenu
York Sun1dc61ca2016-12-28 08:43:41 -0800501
Hou Zhiqiang3f91cda2017-01-10 16:44:15 +0800502menu "Layerscape clock tree configuration"
503 depends on FSL_LSCH2 || FSL_LSCH3
504
505config SYS_FSL_CLK
506 bool "Enable clock tree initialization"
507 default y
508
509config CLUSTER_CLK_FREQ
510 int "Reference clock of core cluster"
511 depends on ARCH_LS1012A
512 default 100000000
513 help
514 This number is the reference clock frequency of core PLL.
515 For most platforms, the core PLL and Platform PLL have the same
516 reference clock, but for some platforms, LS1012A for instance,
517 they are provided sepatately.
518
519config SYS_FSL_PCLK_DIV
520 int "Platform clock divider"
Yuantian Tang4aefa162019-04-10 16:43:33 +0800521 default 1 if ARCH_LS1028A
Hou Zhiqiang3f91cda2017-01-10 16:44:15 +0800522 default 1 if ARCH_LS1043A
523 default 1 if ARCH_LS1046A
Ashish Kumarb25faa22017-08-31 16:12:53 +0530524 default 1 if ARCH_LS1088A
Hou Zhiqiang3f91cda2017-01-10 16:44:15 +0800525 default 2
526 help
527 This is the divider that is used to derive Platform clock from
528 Platform PLL, in another word:
529 Platform_clk = Platform_PLL_freq / this_divider
530
531config SYS_FSL_DSPI_CLK_DIV
532 int "DSPI clock divider"
533 default 1 if ARCH_LS1043A
534 default 2
535 help
536 This is the divider that is used to derive DSPI clock from Platform
Hou Zhiqiang0c8fcb62017-07-03 18:37:11 +0800537 clock, in another word DSPI_clk = Platform_clk / this_divider.
Hou Zhiqiang3f91cda2017-01-10 16:44:15 +0800538
539config SYS_FSL_DUART_CLK_DIV
540 int "DUART clock divider"
541 default 1 if ARCH_LS1043A
Priyanka Jainef76b2e2018-10-29 09:17:09 +0000542 default 4 if ARCH_LX2160A
Meenakshi Aggarwalccb5d5d2020-10-29 19:16:16 +0530543 default 4 if ARCH_LX2162A
Hou Zhiqiang3f91cda2017-01-10 16:44:15 +0800544 default 2
545 help
546 This is the divider that is used to derive DUART clock from Platform
547 clock, in another word DUART_clk = Platform_clk / this_divider.
548
549config SYS_FSL_I2C_CLK_DIV
550 int "I2C clock divider"
551 default 1 if ARCH_LS1043A
Chuanhua Han44d4d332019-08-02 16:53:53 +0800552 default 4 if ARCH_LS1012A
553 default 4 if ARCH_LS1028A
554 default 8 if ARCH_LX2160A
Meenakshi Aggarwalccb5d5d2020-10-29 19:16:16 +0530555 default 8 if ARCH_LX2162A
Chuanhua Han44d4d332019-08-02 16:53:53 +0800556 default 8 if ARCH_LS1088A
Hou Zhiqiang3f91cda2017-01-10 16:44:15 +0800557 default 2
558 help
559 This is the divider that is used to derive I2C clock from Platform
560 clock, in another word I2C_clk = Platform_clk / this_divider.
561
562config SYS_FSL_IFC_CLK_DIV
563 int "IFC clock divider"
564 default 1 if ARCH_LS1043A
Chuanhua Han3df89cc2019-08-08 17:04:58 +0800565 default 4 if ARCH_LS1012A
566 default 4 if ARCH_LS1028A
567 default 8 if ARCH_LX2160A
Meenakshi Aggarwalccb5d5d2020-10-29 19:16:16 +0530568 default 8 if ARCH_LX2162A
Chuanhua Han3df89cc2019-08-08 17:04:58 +0800569 default 8 if ARCH_LS1088A
Hou Zhiqiang3f91cda2017-01-10 16:44:15 +0800570 default 2
571 help
572 This is the divider that is used to derive IFC clock from Platform
573 clock, in another word IFC_clk = Platform_clk / this_divider.
574
575config SYS_FSL_LPUART_CLK_DIV
576 int "LPUART clock divider"
577 default 1 if ARCH_LS1043A
578 default 2
579 help
580 This is the divider that is used to derive LPUART clock from Platform
581 clock, in another word LPUART_clk = Platform_clk / this_divider.
582
583config SYS_FSL_SDHC_CLK_DIV
584 int "SDHC clock divider"
585 default 1 if ARCH_LS1043A
586 default 1 if ARCH_LS1012A
587 default 2
588 help
589 This is the divider that is used to derive SDHC clock from Platform
590 clock, in another word SDHC_clk = Platform_clk / this_divider.
Hou Zhiqiangfef32c62018-04-25 16:28:44 +0800591
592config SYS_FSL_QMAN_CLK_DIV
593 int "QMAN clock divider"
594 default 1 if ARCH_LS1043A
595 default 2
596 help
597 This is the divider that is used to derive QMAN clock from Platform
598 clock, in another word QMAN_clk = Platform_clk / this_divider.
Hou Zhiqiang3f91cda2017-01-10 16:44:15 +0800599endmenu
600
York Sund6964b32017-03-06 09:02:24 -0800601config RESV_RAM
602 bool
603 help
604 Reserve memory from the top, tracked by gd->arch.resv_ram. This
605 reserved RAM can be used by special driver that resides in memory
606 after U-Boot exits. It's up to implementation to allocate and allow
607 access to this reserved memory. For example, the reserved RAM can
608 be at the high end of physical memory. The reserve RAM may be
609 excluded from memory bank(s) passed to OS, or marked as reserved.
610
Ashish Kumarec455e22017-08-31 16:37:31 +0530611config SYS_FSL_EC1
612 bool
613 help
Priyanka Jainef76b2e2018-10-29 09:17:09 +0000614 Ethernet controller 1, this is connected to
Meenakshi Aggarwalccb5d5d2020-10-29 19:16:16 +0530615 MAC17 for LX2160A and LX2162A or to MAC3 for other SoCs
Ashish Kumarec455e22017-08-31 16:37:31 +0530616 Provides DPAA2 capabilities
617
618config SYS_FSL_EC2
619 bool
620 help
Priyanka Jainef76b2e2018-10-29 09:17:09 +0000621 Ethernet controller 2, this is connected to
Meenakshi Aggarwalccb5d5d2020-10-29 19:16:16 +0530622 MAC18 for LX2160A and LX2162A or to MAC4 for other SoCs
Ashish Kumarec455e22017-08-31 16:37:31 +0530623 Provides DPAA2 capabilities
624
York Sun1dc61ca2016-12-28 08:43:41 -0800625config SYS_FSL_ERRATUM_A008336
626 bool
627
628config SYS_FSL_ERRATUM_A008514
629 bool
630
631config SYS_FSL_ERRATUM_A008585
632 bool
633
634config SYS_FSL_ERRATUM_A008850
635 bool
636
Ashish kumar3b52a232017-02-23 16:03:57 +0530637config SYS_FSL_ERRATUM_A009203
638 bool
639
York Sun1dc61ca2016-12-28 08:43:41 -0800640config SYS_FSL_ERRATUM_A009635
641 bool
642
643config SYS_FSL_ERRATUM_A009660
644 bool
645
Laurentiu Tudor7ea2feb2019-10-18 09:01:56 +0000646config SYS_FSL_ERRATUM_A050382
647 bool
Ashish Kumarec455e22017-08-31 16:37:31 +0530648
649config SYS_FSL_HAS_RGMII
650 bool
651 depends on SYS_FSL_EC1 || SYS_FSL_EC2
652
Philipp Tomsich2d6a0cc2017-08-03 23:23:55 +0200653config SPL_LDSCRIPT
654 default "arch/arm/cpu/armv8/u-boot-spl.lds" if ARCH_LS1043A || ARCH_LS1046A || ARCH_LS2080A
Ran Wang5959f842017-10-23 10:09:21 +0800655
656config HAS_FSL_XHCI_USB
657 bool
Ran Wang5959f842017-10-23 10:09:21 +0800658 help
Tom Rini46c97312021-07-21 18:53:20 -0400659 For some SoC (such as LS1043A and LS1046A), USB and QE-HDLC multiplex use
Ran Wang5959f842017-10-23 10:09:21 +0800660 pins, select it when the pins are assigned to USB.
Rajesh Bhagat729f22f2021-02-11 13:28:49 +0100661
662config SYS_FSL_BOOTROM_BASE
663 hex
664 depends on FSL_LSCH2
665 default 0
666
667config SYS_FSL_BOOTROM_SIZE
668 hex
669 depends on FSL_LSCH2
670 default 0x1000000