blob: 9ca61b3f59e3978260b50f9b902e127fef0702b3 [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
Tom Rini249f11f2021-08-19 14:19:39 -04007 select GICV2
Sriram Dash4a943332018-01-30 15:58:44 +05308 select SYS_FSL_SRDS_1
9 select SYS_HAS_SERDES
York Sunb6fffd82016-10-04 18:03:08 -070010 select SYS_FSL_DDR_BE
York Sunb3d71642016-09-26 08:09:26 -070011 select SYS_FSL_MMDC
York Sun149eb332016-09-26 08:09:27 -070012 select SYS_FSL_ERRATUM_A010315
Ran Wang02dc77b2017-11-13 16:14:48 +080013 select SYS_FSL_ERRATUM_A009798
14 select SYS_FSL_ERRATUM_A008997
15 select SYS_FSL_ERRATUM_A009007
16 select SYS_FSL_ERRATUM_A009008
Simon Glass62adede2017-01-23 13:31:19 -070017 select ARCH_EARLY_INIT_R
Simon Glass7a99a872017-01-23 13:31:20 -070018 select BOARD_EARLY_INIT_F
Sriram Dash7122a0c2018-02-06 11:26:30 +053019 select SYS_I2C_MXC
Biwen Li0a759bb2019-12-31 15:33:41 +080020 select SYS_I2C_MXC_I2C1 if !DM_I2C
21 select SYS_I2C_MXC_I2C2 if !DM_I2C
Masahiro Yamadaacede7a2017-12-04 12:37:00 +090022 imply PANIC_HANG
York Sun149eb332016-09-26 08:09:27 -070023
Yuantian Tang4aefa162019-04-10 16:43:33 +080024config ARCH_LS1028A
25 bool
26 select ARMV8_SET_SMPEN
Michael Walle66f2a532020-05-10 01:20:11 +020027 select FSL_LAYERSCAPE
Yuantian Tang4aefa162019-04-10 16:43:33 +080028 select FSL_LSCH3
Tom Rini249f11f2021-08-19 14:19:39 -040029 select GICV3
Yuantian Tang4aefa162019-04-10 16:43:33 +080030 select NXP_LSCH3_2
31 select SYS_FSL_HAS_CCI400
32 select SYS_FSL_SRDS_1
33 select SYS_HAS_SERDES
34 select SYS_FSL_DDR
35 select SYS_FSL_DDR_LE
36 select SYS_FSL_DDR_VER_50
37 select SYS_FSL_HAS_DDR3
38 select SYS_FSL_HAS_DDR4
39 select SYS_FSL_HAS_SEC
40 select SYS_FSL_SEC_COMPAT_5
41 select SYS_FSL_SEC_LE
42 select FSL_TZASC_1
43 select ARCH_EARLY_INIT_R
44 select BOARD_EARLY_INIT_F
45 select SYS_I2C_MXC
Ran Wange118acb2019-05-14 17:34:56 +080046 select SYS_FSL_ERRATUM_A008997
Yuantian Tang4aefa162019-04-10 16:43:33 +080047 select SYS_FSL_ERRATUM_A009007
48 select SYS_FSL_ERRATUM_A008514 if !TFABOOT
49 select SYS_FSL_ERRATUM_A009663 if !TFABOOT
50 select SYS_FSL_ERRATUM_A009942 if !TFABOOT
Laurentiu Tudor7ea2feb2019-10-18 09:01:56 +000051 select SYS_FSL_ERRATUM_A050382
Michael Walle148dc612021-03-17 15:01:36 +010052 select SYS_FSL_ERRATUM_A011334
Michael Walle7259dc52021-03-17 15:01:37 +010053 select SYS_FSL_ESDHC_UNRELIABLE_PULSE_DETECTION_WORKAROUND
Hou Zhiqiangce4a92a2020-04-28 10:19:31 +080054 select RESV_RAM if GIC_V3_ITS
Yuantian Tang4aefa162019-04-10 16:43:33 +080055 imply PANIC_HANG
56
York Sun149eb332016-09-26 08:09:27 -070057config ARCH_LS1043A
York Sunfcd0e742016-10-04 14:31:47 -070058 bool
Hou Zhiqiang4d1525a2017-01-06 17:41:11 +080059 select ARMV8_SET_SMPEN
Rajesh Bhagatcd786e82018-11-05 18:01:48 +000060 select ARM_ERRATA_855873 if !TFABOOT
Rajesh Bhagat52d237a2019-01-25 13:36:26 +000061 select FSL_LAYERSCAPE
York Sun4dd8c612016-10-04 14:31:48 -070062 select FSL_LSCH2
Tom Rini249f11f2021-08-19 14:19:39 -040063 select GICV2
Tom Rini46c97312021-07-21 18:53:20 -040064 select HAS_FSL_XHCI_USB if USB_HOST
Sriram Dash4a943332018-01-30 15:58:44 +053065 select SYS_FSL_SRDS_1
66 select SYS_HAS_SERDES
York Sund297d392016-12-28 08:43:40 -080067 select SYS_FSL_DDR
York Sunb6fffd82016-10-04 18:03:08 -070068 select SYS_FSL_DDR_BE
69 select SYS_FSL_DDR_VER_50
Rajesh Bhagatcd786e82018-11-05 18:01:48 +000070 select SYS_FSL_ERRATUM_A008850 if !TFABOOT
Ran Wange64f7472017-09-04 18:46:50 +080071 select SYS_FSL_ERRATUM_A008997
Ran Wang3ba69482017-09-04 18:46:51 +080072 select SYS_FSL_ERRATUM_A009007
Ran Wangb358b7b2017-09-04 18:46:48 +080073 select SYS_FSL_ERRATUM_A009008
Rajesh Bhagatcd786e82018-11-05 18:01:48 +000074 select SYS_FSL_ERRATUM_A009660 if !TFABOOT
75 select SYS_FSL_ERRATUM_A009663 if !TFABOOT
Ran Wang9e8fabc2017-09-04 18:46:49 +080076 select SYS_FSL_ERRATUM_A009798
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
Biwen Li42637e72020-06-04 18:42:14 +080084 select SYS_I2C_MXC
Biwen Li014460b2020-02-05 22:02:16 +080085 select SYS_I2C_MXC_I2C1 if !DM_I2C
86 select SYS_I2C_MXC_I2C2 if !DM_I2C
87 select SYS_I2C_MXC_I2C3 if !DM_I2C
88 select SYS_I2C_MXC_I2C4 if !DM_I2C
Simon Glassc88a09a2017-08-04 16:34:34 -060089 imply CMD_PCI
Tom Rini4abdf142021-08-17 17:59:41 -040090 imply ID_EEPROM
York Sunb3d71642016-09-26 08:09:26 -070091
York Sunbad49842016-09-26 08:09:24 -070092config ARCH_LS1046A
York Sunfcd0e742016-10-04 14:31:47 -070093 bool
Hou Zhiqiang4d1525a2017-01-06 17:41:11 +080094 select ARMV8_SET_SMPEN
Rajesh Bhagat52d237a2019-01-25 13:36:26 +000095 select FSL_LAYERSCAPE
York Sun4dd8c612016-10-04 14:31:48 -070096 select FSL_LSCH2
Tom Rini249f11f2021-08-19 14:19:39 -040097 select GICV2
Tom Rini46c97312021-07-21 18:53:20 -040098 select HAS_FSL_XHCI_USB if USB_HOST
Sriram Dash4a943332018-01-30 15:58:44 +053099 select SYS_FSL_SRDS_1
100 select SYS_HAS_SERDES
York Sund297d392016-12-28 08:43:40 -0800101 select SYS_FSL_DDR
York Sunb6fffd82016-10-04 18:03:08 -0700102 select SYS_FSL_DDR_BE
York Sunb6fffd82016-10-04 18:03:08 -0700103 select SYS_FSL_DDR_VER_50
Rajesh Bhagatcd786e82018-11-05 18:01:48 +0000104 select SYS_FSL_ERRATUM_A008336 if !TFABOOT
105 select SYS_FSL_ERRATUM_A008511 if !TFABOOT
106 select SYS_FSL_ERRATUM_A008850 if !TFABOOT
Ran Wange64f7472017-09-04 18:46:50 +0800107 select SYS_FSL_ERRATUM_A008997
Ran Wang3ba69482017-09-04 18:46:51 +0800108 select SYS_FSL_ERRATUM_A009007
Ran Wangb358b7b2017-09-04 18:46:48 +0800109 select SYS_FSL_ERRATUM_A009008
Ran Wang9e8fabc2017-09-04 18:46:49 +0800110 select SYS_FSL_ERRATUM_A009798
York Sun1dc61ca2016-12-28 08:43:41 -0800111 select SYS_FSL_ERRATUM_A009801
Rajesh Bhagatcd786e82018-11-05 18:01:48 +0000112 select SYS_FSL_ERRATUM_A009803 if !TFABOOT
113 select SYS_FSL_ERRATUM_A009942 if !TFABOOT
114 select SYS_FSL_ERRATUM_A010165 if !TFABOOT
Hou Zhiqiangc06b30a2016-09-29 12:42:44 +0800115 select SYS_FSL_ERRATUM_A010539
York Sund297d392016-12-28 08:43:40 -0800116 select SYS_FSL_HAS_DDR4
York Sun6b62ef02016-10-04 18:01:34 -0700117 select SYS_FSL_SRDS_2
Simon Glass62adede2017-01-23 13:31:19 -0700118 select ARCH_EARLY_INIT_R
Simon Glass7a99a872017-01-23 13:31:20 -0700119 select BOARD_EARLY_INIT_F
Biwen Li42637e72020-06-04 18:42:14 +0800120 select SYS_I2C_MXC
Biwen Lif0018f52020-02-05 22:02:17 +0800121 select SYS_I2C_MXC_I2C1 if !DM_I2C
122 select SYS_I2C_MXC_I2C2 if !DM_I2C
123 select SYS_I2C_MXC_I2C3 if !DM_I2C
124 select SYS_I2C_MXC_I2C4 if !DM_I2C
Tom Rini4abdf142021-08-17 17:59:41 -0400125 imply ID_EEPROM
Simon Glass0e5faf02017-06-14 21:28:21 -0600126 imply SCSI
Tuomas Tynkkynenedf9f622017-12-08 15:36:19 +0200127 imply SCSI_AHCI
Tom Rini52b2e262021-08-18 23:12:24 -0400128 imply SPL_SYS_I2C_LEGACY
York Sunb3d71642016-09-26 08:09:26 -0700129
Ashish Kumarb25faa22017-08-31 16:12:53 +0530130config ARCH_LS1088A
131 bool
132 select ARMV8_SET_SMPEN
Pankit Gargf5c2a832018-12-27 04:37:55 +0000133 select ARM_ERRATA_855873 if !TFABOOT
Rajesh Bhagat52d237a2019-01-25 13:36:26 +0000134 select FSL_LAYERSCAPE
Ashish Kumarb25faa22017-08-31 16:12:53 +0530135 select FSL_LSCH3
Tom Rini249f11f2021-08-19 14:19:39 -0400136 select GICV3
Sriram Dash4a943332018-01-30 15:58:44 +0530137 select SYS_FSL_SRDS_1
138 select SYS_HAS_SERDES
Ashish Kumarb25faa22017-08-31 16:12:53 +0530139 select SYS_FSL_DDR
140 select SYS_FSL_DDR_LE
141 select SYS_FSL_DDR_VER_50
Ashish Kumarec455e22017-08-31 16:37:31 +0530142 select SYS_FSL_EC1
143 select SYS_FSL_EC2
Pankit Gargf5c2a832018-12-27 04:37:55 +0000144 select SYS_FSL_ERRATUM_A009803 if !TFABOOT
145 select SYS_FSL_ERRATUM_A009942 if !TFABOOT
146 select SYS_FSL_ERRATUM_A010165 if !TFABOOT
147 select SYS_FSL_ERRATUM_A008511 if !TFABOOT
148 select SYS_FSL_ERRATUM_A008850 if !TFABOOT
Ran Wangef277072017-09-22 15:21:34 +0800149 select SYS_FSL_ERRATUM_A009007
Ashish Kumarb25faa22017-08-31 16:12:53 +0530150 select SYS_FSL_HAS_CCI400
151 select SYS_FSL_HAS_DDR4
Ashish Kumarec455e22017-08-31 16:37:31 +0530152 select SYS_FSL_HAS_RGMII
Ashish Kumarb25faa22017-08-31 16:12:53 +0530153 select SYS_FSL_HAS_SEC
154 select SYS_FSL_SEC_COMPAT_5
155 select SYS_FSL_SEC_LE
156 select SYS_FSL_SRDS_1
157 select SYS_FSL_SRDS_2
158 select FSL_TZASC_1
Rajesh Bhagat5756f7e2019-01-20 05:30:06 +0000159 select FSL_TZASC_400
160 select FSL_TZPC_BP147
Ashish Kumarb25faa22017-08-31 16:12:53 +0530161 select ARCH_EARLY_INIT_R
162 select BOARD_EARLY_INIT_F
Sriram Dash7122a0c2018-02-06 11:26:30 +0530163 select SYS_I2C_MXC
Chuanhua Han98a5e402019-07-26 20:25:37 +0800164 select SYS_I2C_MXC_I2C1 if !TFABOOT
165 select SYS_I2C_MXC_I2C2 if !TFABOOT
166 select SYS_I2C_MXC_I2C3 if !TFABOOT
167 select SYS_I2C_MXC_I2C4 if !TFABOOT
Hou Zhiqiangce4a92a2020-04-28 10:19:31 +0800168 select RESV_RAM if GIC_V3_ITS
Tom Rini4abdf142021-08-17 17:59:41 -0400169 imply ID_EEPROM
Ashish Kumara179e562017-11-02 09:50:47 +0530170 imply SCSI
Tom Rini52b2e262021-08-18 23:12:24 -0400171 imply SPL_SYS_I2C_LEGACY
Masahiro Yamadaacede7a2017-12-04 12:37:00 +0900172 imply PANIC_HANG
Ashish Kumarb25faa22017-08-31 16:12:53 +0530173
York Sunfcd0e742016-10-04 14:31:47 -0700174config ARCH_LS2080A
175 bool
Hou Zhiqiang4d1525a2017-01-06 17:41:11 +0800176 select ARMV8_SET_SMPEN
Tom Rinibacb52c2017-03-07 07:13:42 -0500177 select ARM_ERRATA_826974
178 select ARM_ERRATA_828024
179 select ARM_ERRATA_829520
180 select ARM_ERRATA_833471
Rajesh Bhagat52d237a2019-01-25 13:36:26 +0000181 select FSL_LAYERSCAPE
York Sun4dd8c612016-10-04 14:31:48 -0700182 select FSL_LSCH3
Tom Rini249f11f2021-08-19 14:19:39 -0400183 select GICV3
Sriram Dash4a943332018-01-30 15:58:44 +0530184 select SYS_FSL_SRDS_1
185 select SYS_HAS_SERDES
York Sund297d392016-12-28 08:43:40 -0800186 select SYS_FSL_DDR
York Sunb6fffd82016-10-04 18:03:08 -0700187 select SYS_FSL_DDR_LE
188 select SYS_FSL_DDR_VER_50
Ashish Kumar97393d62017-08-18 10:54:36 +0530189 select SYS_FSL_HAS_CCN504
York Sun6b62ef02016-10-04 18:01:34 -0700190 select SYS_FSL_HAS_DP_DDR
York Sun92c36e22016-12-28 08:43:30 -0800191 select SYS_FSL_HAS_SEC
York Sund297d392016-12-28 08:43:40 -0800192 select SYS_FSL_HAS_DDR4
York Sun92c36e22016-12-28 08:43:30 -0800193 select SYS_FSL_SEC_COMPAT_5
York Sunfa4199422016-12-28 08:43:31 -0800194 select SYS_FSL_SEC_LE
York Sun6b62ef02016-10-04 18:01:34 -0700195 select SYS_FSL_SRDS_2
Ashish kumar76bd6ce2017-04-07 11:40:32 +0530196 select FSL_TZASC_1
197 select FSL_TZASC_2
Rajesh Bhagat5756f7e2019-01-20 05:30:06 +0000198 select FSL_TZASC_400
199 select FSL_TZPC_BP147
Rajesh Bhagatd5691be2018-12-27 04:37:59 +0000200 select SYS_FSL_ERRATUM_A008336 if !TFABOOT
201 select SYS_FSL_ERRATUM_A008511 if !TFABOOT
202 select SYS_FSL_ERRATUM_A008514 if !TFABOOT
York Sun1dc61ca2016-12-28 08:43:41 -0800203 select SYS_FSL_ERRATUM_A008585
Ran Wange64f7472017-09-04 18:46:50 +0800204 select SYS_FSL_ERRATUM_A008997
Ran Wang3ba69482017-09-04 18:46:51 +0800205 select SYS_FSL_ERRATUM_A009007
Ran Wangb358b7b2017-09-04 18:46:48 +0800206 select SYS_FSL_ERRATUM_A009008
York Sun1dc61ca2016-12-28 08:43:41 -0800207 select SYS_FSL_ERRATUM_A009635
Rajesh Bhagatd5691be2018-12-27 04:37:59 +0000208 select SYS_FSL_ERRATUM_A009663 if !TFABOOT
Ran Wang9e8fabc2017-09-04 18:46:49 +0800209 select SYS_FSL_ERRATUM_A009798
York Sun1dc61ca2016-12-28 08:43:41 -0800210 select SYS_FSL_ERRATUM_A009801
Rajesh Bhagatd5691be2018-12-27 04:37:59 +0000211 select SYS_FSL_ERRATUM_A009803 if !TFABOOT
212 select SYS_FSL_ERRATUM_A009942 if !TFABOOT
213 select SYS_FSL_ERRATUM_A010165 if !TFABOOT
Ashish kumar3b52a232017-02-23 16:03:57 +0530214 select SYS_FSL_ERRATUM_A009203
Simon Glass62adede2017-01-23 13:31:19 -0700215 select ARCH_EARLY_INIT_R
Simon Glass7a99a872017-01-23 13:31:20 -0700216 select BOARD_EARLY_INIT_F
Sriram Dash7122a0c2018-02-06 11:26:30 +0530217 select SYS_I2C_MXC
Chuanhua Han3f27fff2019-07-26 19:24:03 +0800218 select SYS_I2C_MXC_I2C1 if !TFABOOT
219 select SYS_I2C_MXC_I2C2 if !TFABOOT
220 select SYS_I2C_MXC_I2C3 if !TFABOOT
221 select SYS_I2C_MXC_I2C4 if !TFABOOT
Hou Zhiqiangce4a92a2020-04-28 10:19:31 +0800222 select RESV_RAM if GIC_V3_ITS
Masahiro Yamada9afc6c52018-04-25 18:47:52 +0900223 imply DISTRO_DEFAULTS
Tom Rini4abdf142021-08-17 17:59:41 -0400224 imply ID_EEPROM
Masahiro Yamadaacede7a2017-12-04 12:37:00 +0900225 imply PANIC_HANG
Tom Rini52b2e262021-08-18 23:12:24 -0400226 imply SPL_SYS_I2C_LEGACY
York Sun4dd8c612016-10-04 14:31:48 -0700227
Meenakshi Aggarwalccb5d5d2020-10-29 19:16:16 +0530228config ARCH_LX2162A
229 bool
230 select ARMV8_SET_SMPEN
231 select FSL_LSCH3
Tom Rini249f11f2021-08-19 14:19:39 -0400232 select GICV3
Meenakshi Aggarwalccb5d5d2020-10-29 19:16:16 +0530233 select NXP_LSCH3_2
234 select SYS_HAS_SERDES
235 select SYS_FSL_SRDS_1
236 select SYS_FSL_SRDS_2
237 select SYS_FSL_DDR
238 select SYS_FSL_DDR_LE
239 select SYS_FSL_DDR_VER_50
240 select SYS_FSL_EC1
241 select SYS_FSL_EC2
Ran Wang13a84a52021-06-16 17:53:19 +0530242 select SYS_FSL_ERRATUM_A050204
Yangbo Lu84f0a952021-04-27 16:42:11 +0800243 select SYS_FSL_ERRATUM_A011334
244 select SYS_FSL_ESDHC_UNRELIABLE_PULSE_DETECTION_WORKAROUND
Meenakshi Aggarwalccb5d5d2020-10-29 19:16:16 +0530245 select SYS_FSL_HAS_RGMII
246 select SYS_FSL_HAS_SEC
247 select SYS_FSL_HAS_CCN508
248 select SYS_FSL_HAS_DDR4
249 select SYS_FSL_SEC_COMPAT_5
250 select SYS_FSL_SEC_LE
251 select ARCH_EARLY_INIT_R
252 select BOARD_EARLY_INIT_F
253 select SYS_I2C_MXC
254 select RESV_RAM if GIC_V3_ITS
255 imply DISTRO_DEFAULTS
256 imply PANIC_HANG
257 imply SCSI
258 imply SCSI_AHCI
Tom Rini52b2e262021-08-18 23:12:24 -0400259 imply SPL_SYS_I2C_LEGACY
Meenakshi Aggarwalccb5d5d2020-10-29 19:16:16 +0530260
Priyanka Jainef76b2e2018-10-29 09:17:09 +0000261config ARCH_LX2160A
262 bool
263 select ARMV8_SET_SMPEN
264 select FSL_LSCH3
Tom Rini249f11f2021-08-19 14:19:39 -0400265 select GICV3
Tom Rini46c97312021-07-21 18:53:20 -0400266 select HAS_FSL_XHCI_USB if USB_HOST
Priyanka Jainef76b2e2018-10-29 09:17:09 +0000267 select NXP_LSCH3_2
268 select SYS_HAS_SERDES
269 select SYS_FSL_SRDS_1
270 select SYS_FSL_SRDS_2
271 select SYS_NXP_SRDS_3
272 select SYS_FSL_DDR
273 select SYS_FSL_DDR_LE
274 select SYS_FSL_DDR_VER_50
275 select SYS_FSL_EC1
276 select SYS_FSL_EC2
Ran Wang13a84a52021-06-16 17:53:19 +0530277 select SYS_FSL_ERRATUM_A050204
Yangbo Lu84f0a952021-04-27 16:42:11 +0800278 select SYS_FSL_ERRATUM_A011334
279 select SYS_FSL_ESDHC_UNRELIABLE_PULSE_DETECTION_WORKAROUND
Priyanka Jainef76b2e2018-10-29 09:17:09 +0000280 select SYS_FSL_HAS_RGMII
281 select SYS_FSL_HAS_SEC
282 select SYS_FSL_HAS_CCN508
283 select SYS_FSL_HAS_DDR4
284 select SYS_FSL_SEC_COMPAT_5
285 select SYS_FSL_SEC_LE
286 select ARCH_EARLY_INIT_R
287 select BOARD_EARLY_INIT_F
288 select SYS_I2C_MXC
Hou Zhiqiangce4a92a2020-04-28 10:19:31 +0800289 select RESV_RAM if GIC_V3_ITS
Priyanka Jainef76b2e2018-10-29 09:17:09 +0000290 imply DISTRO_DEFAULTS
Tom Rini4abdf142021-08-17 17:59:41 -0400291 imply ID_EEPROM
Priyanka Jainef76b2e2018-10-29 09:17:09 +0000292 imply PANIC_HANG
293 imply SCSI
294 imply SCSI_AHCI
Tom Rini52b2e262021-08-18 23:12:24 -0400295 imply SPL_SYS_I2C_LEGACY
Priyanka Jainef76b2e2018-10-29 09:17:09 +0000296
York Sun4dd8c612016-10-04 14:31:48 -0700297config FSL_LSCH2
298 bool
Ashish Kumar11234062017-08-11 11:09:14 +0530299 select SYS_FSL_HAS_CCI400
York Sun92c36e22016-12-28 08:43:30 -0800300 select SYS_FSL_HAS_SEC
301 select SYS_FSL_SEC_COMPAT_5
York Sunfa4199422016-12-28 08:43:31 -0800302 select SYS_FSL_SEC_BE
York Sun4dd8c612016-10-04 14:31:48 -0700303
304config FSL_LSCH3
Alex Marginean47568ce2020-01-11 01:05:40 +0200305 select ARCH_MISC_INIT
York Sun4dd8c612016-10-04 14:31:48 -0700306 bool
307
Priyanka Jain88c25662018-10-29 09:11:29 +0000308config NXP_LSCH3_2
309 bool
310
York Sun4dd8c612016-10-04 14:31:48 -0700311menu "Layerscape architecture"
312 depends on FSL_LSCH2 || FSL_LSCH3
York Sunfcd0e742016-10-04 14:31:47 -0700313
Rajesh Bhagat52d237a2019-01-25 13:36:26 +0000314config FSL_LAYERSCAPE
315 bool
316
Wenbin Songa8f57a92017-01-17 18:31:15 +0800317config HAS_FEATURE_GIC64K_ALIGN
318 bool
319 default y if ARCH_LS1043A
320
Wenbin Songc6bc7c02017-01-17 18:31:16 +0800321config HAS_FEATURE_ENHANCED_MSI
322 bool
323 default y if ARCH_LS1043A
Wenbin Songa8f57a92017-01-17 18:31:15 +0800324
macro.wave.z@gmail.comec2d7ed2016-12-08 11:58:21 +0800325menu "Layerscape PPA"
326config FSL_LS_PPA
327 bool "FSL Layerscape PPA firmware support"
macro.wave.z@gmail.com01bd3342016-12-08 11:58:22 +0800328 depends on !ARMV8_PSCI
Hou Zhiqiangbff56d52017-01-16 17:31:49 +0800329 select ARMV8_SEC_FIRMWARE_SUPPORT
Hou Zhiqiang6be115d2017-01-16 17:31:48 +0800330 select SEC_FIRMWARE_ARMV8_PSCI
Hou Zhiqiangbff56d52017-01-16 17:31:49 +0800331 select ARMV8_SEC_FIRMWARE_ERET_ADDR_REVERT if FSL_LSCH2
macro.wave.z@gmail.comec2d7ed2016-12-08 11:58:21 +0800332 help
333 The FSL Primary Protected Application (PPA) is a software component
334 which is loaded during boot stage, and then remains resident in RAM
335 and runs in the TrustZone after boot.
336 Say y to enable it.
York Sunf2aaf842017-05-15 08:52:00 -0700337
338config SPL_FSL_LS_PPA
339 bool "FSL Layerscape PPA firmware support for SPL build"
340 depends on !ARMV8_PSCI
341 select SPL_ARMV8_SEC_FIRMWARE_SUPPORT
342 select SEC_FIRMWARE_ARMV8_PSCI
343 select ARMV8_SEC_FIRMWARE_ERET_ADDR_REVERT if FSL_LSCH2
344 help
345 The FSL Primary Protected Application (PPA) is a software component
346 which is loaded during boot stage, and then remains resident in RAM
347 and runs in the TrustZone after boot. This is to load PPA during SPL
348 stage instead of the RAM version of U-Boot. Once PPA is initialized,
349 the rest of U-Boot (including RAM version) runs at EL2.
Hou Zhiqiangbff56d52017-01-16 17:31:49 +0800350choice
351 prompt "FSL Layerscape PPA firmware loading-media select"
352 depends on FSL_LS_PPA
Hou Zhiqiangbd6e2cd2017-03-17 16:12:33 +0800353 default SYS_LS_PPA_FW_IN_MMC if SD_BOOT
354 default SYS_LS_PPA_FW_IN_NAND if NAND_BOOT
Hou Zhiqiangbff56d52017-01-16 17:31:49 +0800355 default SYS_LS_PPA_FW_IN_XIP
356
357config SYS_LS_PPA_FW_IN_XIP
358 bool "XIP"
359 help
360 Say Y here if the PPA firmware locate at XIP flash, such
361 as NOR or QSPI flash.
362
Hou Zhiqiangbd6e2cd2017-03-17 16:12:33 +0800363config SYS_LS_PPA_FW_IN_MMC
364 bool "eMMC or SD Card"
365 help
366 Say Y here if the PPA firmware locate at eMMC/SD card.
367
368config SYS_LS_PPA_FW_IN_NAND
369 bool "NAND"
370 help
371 Say Y here if the PPA firmware locate at NAND flash.
372
Hou Zhiqiangbff56d52017-01-16 17:31:49 +0800373endchoice
374
Sumit Garg8fddf752017-04-20 05:09:11 +0530375config LS_PPA_ESBC_HDR_SIZE
376 hex "Length of PPA ESBC header"
377 depends on FSL_LS_PPA && CHAIN_OF_TRUST && !SYS_LS_PPA_FW_IN_XIP
378 default 0x2000
379 help
380 Length (in bytes) of PPA ESBC header to be copied from MMC/SD or
381 NAND to memory to validate PPA image.
382
macro.wave.z@gmail.comec2d7ed2016-12-08 11:58:21 +0800383endmenu
384
Ran Wange64f7472017-09-04 18:46:50 +0800385config SYS_FSL_ERRATUM_A008997
386 bool "Workaround for USB PHY erratum A008997"
387
Ran Wang3ba69482017-09-04 18:46:51 +0800388config SYS_FSL_ERRATUM_A009007
389 bool
390 help
391 Workaround for USB PHY erratum A009007
392
Ran Wangb358b7b2017-09-04 18:46:48 +0800393config SYS_FSL_ERRATUM_A009008
394 bool "Workaround for USB PHY erratum A009008"
395
Ran Wang9e8fabc2017-09-04 18:46:49 +0800396config SYS_FSL_ERRATUM_A009798
397 bool "Workaround for USB PHY erratum A009798"
398
Ran Wang13a84a52021-06-16 17:53:19 +0530399config SYS_FSL_ERRATUM_A050204
400 bool "Workaround for USB PHY erratum A050204"
Ran Wangd0270dc2019-11-26 11:40:40 +0800401 help
402 USB3.0 Receiver needs to enable fixed equalization
403 for each of PHY instances in an SOC. This is similar
Meenakshi Aggarwalccb5d5d2020-10-29 19:16:16 +0530404 to erratum A-009007, but this one is for LX2160A and LX2162A,
Ran Wangd0270dc2019-11-26 11:40:40 +0800405 and the register value is different.
406
York Sun149eb332016-09-26 08:09:27 -0700407config SYS_FSL_ERRATUM_A010315
408 bool "Workaround for PCIe erratum A010315"
Hou Zhiqiangc06b30a2016-09-29 12:42:44 +0800409
410config SYS_FSL_ERRATUM_A010539
411 bool "Workaround for PIN MUX erratum A010539"
York Sun4dd8c612016-10-04 14:31:48 -0700412
York Sunf188d222016-10-04 14:45:01 -0700413config MAX_CPUS
414 int "Maximum number of CPUs permitted for Layerscape"
Yuantian Tang4aefa162019-04-10 16:43:33 +0800415 default 2 if ARCH_LS1028A
York Sunf188d222016-10-04 14:45:01 -0700416 default 4 if ARCH_LS1043A
417 default 4 if ARCH_LS1046A
418 default 16 if ARCH_LS2080A
Ashish Kumarb25faa22017-08-31 16:12:53 +0530419 default 8 if ARCH_LS1088A
Priyanka Jainef76b2e2018-10-29 09:17:09 +0000420 default 16 if ARCH_LX2160A
Meenakshi Aggarwalccb5d5d2020-10-29 19:16:16 +0530421 default 16 if ARCH_LX2162A
York Sunf188d222016-10-04 14:45:01 -0700422 default 1
423 help
424 Set this number to the maximum number of possible CPUs in the SoC.
425 SoCs may have multiple clusters with each cluster may have multiple
426 ports. If some ports are reserved but higher ports are used for
427 cores, count the reserved ports. This will allocate enough memory
428 in spin table to properly handle all cores.
429
Meenakshi Aggarwalbbd33182018-11-30 22:32:11 +0530430config EMC2305
431 bool "Fan controller"
432 help
433 Enable the EMC2305 fan controller for configuration of fan
434 speed.
435
Udit Agarwal22ec2382019-11-07 16:11:32 +0000436config NXP_ESBC
437 bool "NXP_ESBC"
York Sun728e7002016-12-02 09:32:35 -0800438 help
439 Enable Freescale Secure Boot feature
440
Yuan Yao52ae4fd2016-12-01 10:13:52 +0800441config QSPI_AHB_INIT
442 bool "Init the QSPI AHB bus"
443 help
444 The default setting for QSPI AHB bus just support 3bytes addressing.
445 But some QSPI flash size up to 64MBytes, so initialize the QSPI AHB
446 bus for those flashes to support the full QSPI flash size.
447
Kuldeep Singh34aafb02019-11-21 17:15:17 +0530448config FSPI_AHB_EN_4BYTE
449 bool "Enable 4-byte Fast Read command for AHB mode"
450 default n
451 help
452 The default setting for FlexSPI AHB bus just supports 3-byte addressing.
453 But some FlexSPI flash sizes are up to 64MBytes.
454 This flag enables fast read command for AHB mode and modifies required
455 LUT to support full FlexSPI flash.
456
Ashish Kumar11234062017-08-11 11:09:14 +0530457config SYS_CCI400_OFFSET
458 hex "Offset for CCI400 base"
459 depends on SYS_FSL_HAS_CCI400
Yuantian Tang4aefa162019-04-10 16:43:33 +0800460 default 0x3090000 if ARCH_LS1088A || ARCH_LS1028A
Ashish Kumar11234062017-08-11 11:09:14 +0530461 default 0x180000 if FSL_LSCH2
462 help
463 Offset for CCI400 base
464 CCI400 base addr = CCSRBAR + CCI400_OFFSET
465
York Sune7310a32016-10-04 14:45:54 -0700466config SYS_FSL_IFC_BANK_COUNT
467 int "Maximum banks of Integrated flash controller"
Ashish Kumarb25faa22017-08-31 16:12:53 +0530468 depends on ARCH_LS1043A || ARCH_LS1046A || ARCH_LS2080A || ARCH_LS1088A
York Sune7310a32016-10-04 14:45:54 -0700469 default 4 if ARCH_LS1043A
470 default 4 if ARCH_LS1046A
Ashish Kumarb25faa22017-08-31 16:12:53 +0530471 default 8 if ARCH_LS2080A || ARCH_LS1088A
York Sune7310a32016-10-04 14:45:54 -0700472
Ashish Kumar11234062017-08-11 11:09:14 +0530473config SYS_FSL_HAS_CCI400
474 bool
475
Ashish Kumar97393d62017-08-18 10:54:36 +0530476config SYS_FSL_HAS_CCN504
477 bool
478
Priyanka Jainef76b2e2018-10-29 09:17:09 +0000479config SYS_FSL_HAS_CCN508
480 bool
481
York Sun0dc9abb2016-10-04 14:46:50 -0700482config SYS_FSL_HAS_DP_DDR
483 bool
484
York Sun6b62ef02016-10-04 18:01:34 -0700485config SYS_FSL_SRDS_1
486 bool
487
488config SYS_FSL_SRDS_2
489 bool
490
Priyanka Jain1a602532018-09-27 10:32:05 +0530491config SYS_NXP_SRDS_3
492 bool
493
York Sun6b62ef02016-10-04 18:01:34 -0700494config SYS_HAS_SERDES
495 bool
496
Ashish kumar76bd6ce2017-04-07 11:40:32 +0530497config FSL_TZASC_1
498 bool
499
500config FSL_TZASC_2
501 bool
502
Rajesh Bhagat5756f7e2019-01-20 05:30:06 +0000503config FSL_TZASC_400
504 bool
505
506config FSL_TZPC_BP147
507 bool
York Sun4dd8c612016-10-04 14:31:48 -0700508endmenu
York Sun1dc61ca2016-12-28 08:43:41 -0800509
Hou Zhiqiang3f91cda2017-01-10 16:44:15 +0800510menu "Layerscape clock tree configuration"
511 depends on FSL_LSCH2 || FSL_LSCH3
512
513config SYS_FSL_CLK
514 bool "Enable clock tree initialization"
515 default y
516
517config CLUSTER_CLK_FREQ
518 int "Reference clock of core cluster"
519 depends on ARCH_LS1012A
520 default 100000000
521 help
522 This number is the reference clock frequency of core PLL.
523 For most platforms, the core PLL and Platform PLL have the same
524 reference clock, but for some platforms, LS1012A for instance,
525 they are provided sepatately.
526
527config SYS_FSL_PCLK_DIV
528 int "Platform clock divider"
Yuantian Tang4aefa162019-04-10 16:43:33 +0800529 default 1 if ARCH_LS1028A
Hou Zhiqiang3f91cda2017-01-10 16:44:15 +0800530 default 1 if ARCH_LS1043A
531 default 1 if ARCH_LS1046A
Ashish Kumarb25faa22017-08-31 16:12:53 +0530532 default 1 if ARCH_LS1088A
Hou Zhiqiang3f91cda2017-01-10 16:44:15 +0800533 default 2
534 help
535 This is the divider that is used to derive Platform clock from
536 Platform PLL, in another word:
537 Platform_clk = Platform_PLL_freq / this_divider
538
539config SYS_FSL_DSPI_CLK_DIV
540 int "DSPI clock divider"
541 default 1 if ARCH_LS1043A
542 default 2
543 help
544 This is the divider that is used to derive DSPI clock from Platform
Hou Zhiqiang0c8fcb62017-07-03 18:37:11 +0800545 clock, in another word DSPI_clk = Platform_clk / this_divider.
Hou Zhiqiang3f91cda2017-01-10 16:44:15 +0800546
547config SYS_FSL_DUART_CLK_DIV
548 int "DUART clock divider"
549 default 1 if ARCH_LS1043A
Priyanka Jainef76b2e2018-10-29 09:17:09 +0000550 default 4 if ARCH_LX2160A
Meenakshi Aggarwalccb5d5d2020-10-29 19:16:16 +0530551 default 4 if ARCH_LX2162A
Hou Zhiqiang3f91cda2017-01-10 16:44:15 +0800552 default 2
553 help
554 This is the divider that is used to derive DUART clock from Platform
555 clock, in another word DUART_clk = Platform_clk / this_divider.
556
557config SYS_FSL_I2C_CLK_DIV
558 int "I2C clock divider"
559 default 1 if ARCH_LS1043A
Chuanhua Han44d4d332019-08-02 16:53:53 +0800560 default 4 if ARCH_LS1012A
561 default 4 if ARCH_LS1028A
562 default 8 if ARCH_LX2160A
Meenakshi Aggarwalccb5d5d2020-10-29 19:16:16 +0530563 default 8 if ARCH_LX2162A
Chuanhua Han44d4d332019-08-02 16:53:53 +0800564 default 8 if ARCH_LS1088A
Hou Zhiqiang3f91cda2017-01-10 16:44:15 +0800565 default 2
566 help
567 This is the divider that is used to derive I2C clock from Platform
568 clock, in another word I2C_clk = Platform_clk / this_divider.
569
570config SYS_FSL_IFC_CLK_DIV
571 int "IFC clock divider"
572 default 1 if ARCH_LS1043A
Chuanhua Han3df89cc2019-08-08 17:04:58 +0800573 default 4 if ARCH_LS1012A
574 default 4 if ARCH_LS1028A
575 default 8 if ARCH_LX2160A
Meenakshi Aggarwalccb5d5d2020-10-29 19:16:16 +0530576 default 8 if ARCH_LX2162A
Chuanhua Han3df89cc2019-08-08 17:04:58 +0800577 default 8 if ARCH_LS1088A
Hou Zhiqiang3f91cda2017-01-10 16:44:15 +0800578 default 2
579 help
580 This is the divider that is used to derive IFC clock from Platform
581 clock, in another word IFC_clk = Platform_clk / this_divider.
582
583config SYS_FSL_LPUART_CLK_DIV
584 int "LPUART clock divider"
585 default 1 if ARCH_LS1043A
586 default 2
587 help
588 This is the divider that is used to derive LPUART clock from Platform
589 clock, in another word LPUART_clk = Platform_clk / this_divider.
590
591config SYS_FSL_SDHC_CLK_DIV
592 int "SDHC clock divider"
593 default 1 if ARCH_LS1043A
594 default 1 if ARCH_LS1012A
595 default 2
596 help
597 This is the divider that is used to derive SDHC clock from Platform
598 clock, in another word SDHC_clk = Platform_clk / this_divider.
Hou Zhiqiangfef32c62018-04-25 16:28:44 +0800599
600config SYS_FSL_QMAN_CLK_DIV
601 int "QMAN clock divider"
602 default 1 if ARCH_LS1043A
603 default 2
604 help
605 This is the divider that is used to derive QMAN clock from Platform
606 clock, in another word QMAN_clk = Platform_clk / this_divider.
Hou Zhiqiang3f91cda2017-01-10 16:44:15 +0800607endmenu
608
York Sund6964b32017-03-06 09:02:24 -0800609config RESV_RAM
610 bool
611 help
612 Reserve memory from the top, tracked by gd->arch.resv_ram. This
613 reserved RAM can be used by special driver that resides in memory
614 after U-Boot exits. It's up to implementation to allocate and allow
615 access to this reserved memory. For example, the reserved RAM can
616 be at the high end of physical memory. The reserve RAM may be
617 excluded from memory bank(s) passed to OS, or marked as reserved.
618
Ashish Kumarec455e22017-08-31 16:37:31 +0530619config SYS_FSL_EC1
620 bool
621 help
Priyanka Jainef76b2e2018-10-29 09:17:09 +0000622 Ethernet controller 1, this is connected to
Meenakshi Aggarwalccb5d5d2020-10-29 19:16:16 +0530623 MAC17 for LX2160A and LX2162A or to MAC3 for other SoCs
Ashish Kumarec455e22017-08-31 16:37:31 +0530624 Provides DPAA2 capabilities
625
626config SYS_FSL_EC2
627 bool
628 help
Priyanka Jainef76b2e2018-10-29 09:17:09 +0000629 Ethernet controller 2, this is connected to
Meenakshi Aggarwalccb5d5d2020-10-29 19:16:16 +0530630 MAC18 for LX2160A and LX2162A or to MAC4 for other SoCs
Ashish Kumarec455e22017-08-31 16:37:31 +0530631 Provides DPAA2 capabilities
632
York Sun1dc61ca2016-12-28 08:43:41 -0800633config SYS_FSL_ERRATUM_A008336
634 bool
635
636config SYS_FSL_ERRATUM_A008514
637 bool
638
639config SYS_FSL_ERRATUM_A008585
640 bool
641
642config SYS_FSL_ERRATUM_A008850
643 bool
644
Ashish kumar3b52a232017-02-23 16:03:57 +0530645config SYS_FSL_ERRATUM_A009203
646 bool
647
York Sun1dc61ca2016-12-28 08:43:41 -0800648config SYS_FSL_ERRATUM_A009635
649 bool
650
651config SYS_FSL_ERRATUM_A009660
652 bool
653
Laurentiu Tudor7ea2feb2019-10-18 09:01:56 +0000654config SYS_FSL_ERRATUM_A050382
655 bool
Ashish Kumarec455e22017-08-31 16:37:31 +0530656
657config SYS_FSL_HAS_RGMII
658 bool
659 depends on SYS_FSL_EC1 || SYS_FSL_EC2
660
Philipp Tomsich2d6a0cc2017-08-03 23:23:55 +0200661config SPL_LDSCRIPT
662 default "arch/arm/cpu/armv8/u-boot-spl.lds" if ARCH_LS1043A || ARCH_LS1046A || ARCH_LS2080A
Ran Wang5959f842017-10-23 10:09:21 +0800663
664config HAS_FSL_XHCI_USB
665 bool
Ran Wang5959f842017-10-23 10:09:21 +0800666 help
Tom Rini46c97312021-07-21 18:53:20 -0400667 For some SoC (such as LS1043A and LS1046A), USB and QE-HDLC multiplex use
Ran Wang5959f842017-10-23 10:09:21 +0800668 pins, select it when the pins are assigned to USB.
Rajesh Bhagat729f22f2021-02-11 13:28:49 +0100669
670config SYS_FSL_BOOTROM_BASE
671 hex
672 depends on FSL_LSCH2
673 default 0
674
675config SYS_FSL_BOOTROM_SIZE
676 hex
677 depends on FSL_LSCH2
678 default 0x1000000