blob: a499a9f56b4705fca50f45bd118b1d5132d7fe99 [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
Tom Rinie1e85442021-08-27 21:18:30 -04008 select SKIP_LOWLEVEL_INIT
Sriram Dash4a943332018-01-30 15:58:44 +05309 select SYS_FSL_SRDS_1
10 select SYS_HAS_SERDES
York Sunb6fffd82016-10-04 18:03:08 -070011 select SYS_FSL_DDR_BE
York Sunb3d71642016-09-26 08:09:26 -070012 select SYS_FSL_MMDC
Alban Bedel1b1ca2f2021-09-06 16:32:56 +020013 select SYS_FSL_ERRATUM_A010315 if PCIE_LAYERSCAPE
Ran Wang02dc77b2017-11-13 16:14:48 +080014 select SYS_FSL_ERRATUM_A009798
15 select SYS_FSL_ERRATUM_A008997
16 select SYS_FSL_ERRATUM_A009007
17 select SYS_FSL_ERRATUM_A009008
Simon Glass62adede2017-01-23 13:31:19 -070018 select ARCH_EARLY_INIT_R
Simon Glass7a99a872017-01-23 13:31:20 -070019 select BOARD_EARLY_INIT_F
Sriram Dash7122a0c2018-02-06 11:26:30 +053020 select SYS_I2C_MXC
Biwen Li0a759bb2019-12-31 15:33:41 +080021 select SYS_I2C_MXC_I2C1 if !DM_I2C
22 select SYS_I2C_MXC_I2C2 if !DM_I2C
Masahiro Yamadaacede7a2017-12-04 12:37:00 +090023 imply PANIC_HANG
York Sun149eb332016-09-26 08:09:27 -070024
Yuantian Tang4aefa162019-04-10 16:43:33 +080025config ARCH_LS1028A
26 bool
27 select ARMV8_SET_SMPEN
Michael Walle66f2a532020-05-10 01:20:11 +020028 select FSL_LAYERSCAPE
Yuantian Tang4aefa162019-04-10 16:43:33 +080029 select FSL_LSCH3
Tom Rini249f11f2021-08-19 14:19:39 -040030 select GICV3
Yuantian Tang4aefa162019-04-10 16:43:33 +080031 select NXP_LSCH3_2
32 select SYS_FSL_HAS_CCI400
33 select SYS_FSL_SRDS_1
34 select SYS_HAS_SERDES
35 select SYS_FSL_DDR
36 select SYS_FSL_DDR_LE
37 select SYS_FSL_DDR_VER_50
38 select SYS_FSL_HAS_DDR3
39 select SYS_FSL_HAS_DDR4
40 select SYS_FSL_HAS_SEC
41 select SYS_FSL_SEC_COMPAT_5
42 select SYS_FSL_SEC_LE
43 select FSL_TZASC_1
Tom Rinid391d8b2021-12-11 14:55:51 -050044 select FSL_TZPC_BP147
Yuantian Tang4aefa162019-04-10 16:43:33 +080045 select ARCH_EARLY_INIT_R
46 select BOARD_EARLY_INIT_F
47 select SYS_I2C_MXC
Ran Wange118acb2019-05-14 17:34:56 +080048 select SYS_FSL_ERRATUM_A008997
Yuantian Tang4aefa162019-04-10 16:43:33 +080049 select SYS_FSL_ERRATUM_A009007
50 select SYS_FSL_ERRATUM_A008514 if !TFABOOT
51 select SYS_FSL_ERRATUM_A009663 if !TFABOOT
52 select SYS_FSL_ERRATUM_A009942 if !TFABOOT
Laurentiu Tudor7ea2feb2019-10-18 09:01:56 +000053 select SYS_FSL_ERRATUM_A050382
Michael Walle148dc612021-03-17 15:01:36 +010054 select SYS_FSL_ERRATUM_A011334
Michael Walle7259dc52021-03-17 15:01:37 +010055 select SYS_FSL_ESDHC_UNRELIABLE_PULSE_DETECTION_WORKAROUND
Hou Zhiqiangce4a92a2020-04-28 10:19:31 +080056 select RESV_RAM if GIC_V3_ITS
Yuantian Tang4aefa162019-04-10 16:43:33 +080057 imply PANIC_HANG
58
York Sun149eb332016-09-26 08:09:27 -070059config ARCH_LS1043A
York Sunfcd0e742016-10-04 14:31:47 -070060 bool
Hou Zhiqiang4d1525a2017-01-06 17:41:11 +080061 select ARMV8_SET_SMPEN
Rajesh Bhagatcd786e82018-11-05 18:01:48 +000062 select ARM_ERRATA_855873 if !TFABOOT
Tom Rini05b419e2021-12-11 14:55:49 -050063 select FSL_IFC if TFABOOT || (!QSPI_BOOT && !SD_BOOT_QSPI)
Rajesh Bhagat52d237a2019-01-25 13:36:26 +000064 select FSL_LAYERSCAPE
York Sun4dd8c612016-10-04 14:31:48 -070065 select FSL_LSCH2
Tom Rini249f11f2021-08-19 14:19:39 -040066 select GICV2
Tom Rini46c97312021-07-21 18:53:20 -040067 select HAS_FSL_XHCI_USB if USB_HOST
Tom Rinie1e85442021-08-27 21:18:30 -040068 select SKIP_LOWLEVEL_INIT
Sriram Dash4a943332018-01-30 15:58:44 +053069 select SYS_FSL_SRDS_1
70 select SYS_HAS_SERDES
York Sund297d392016-12-28 08:43:40 -080071 select SYS_FSL_DDR
York Sunb6fffd82016-10-04 18:03:08 -070072 select SYS_FSL_DDR_BE
73 select SYS_FSL_DDR_VER_50
Rajesh Bhagatcd786e82018-11-05 18:01:48 +000074 select SYS_FSL_ERRATUM_A008850 if !TFABOOT
Ran Wange64f7472017-09-04 18:46:50 +080075 select SYS_FSL_ERRATUM_A008997
Ran Wang3ba69482017-09-04 18:46:51 +080076 select SYS_FSL_ERRATUM_A009007
Ran Wangb358b7b2017-09-04 18:46:48 +080077 select SYS_FSL_ERRATUM_A009008
Rajesh Bhagatcd786e82018-11-05 18:01:48 +000078 select SYS_FSL_ERRATUM_A009660 if !TFABOOT
79 select SYS_FSL_ERRATUM_A009663 if !TFABOOT
Ran Wang9e8fabc2017-09-04 18:46:49 +080080 select SYS_FSL_ERRATUM_A009798
Rajesh Bhagatcd786e82018-11-05 18:01:48 +000081 select SYS_FSL_ERRATUM_A009942 if !TFABOOT
Alban Bedel1b1ca2f2021-09-06 16:32:56 +020082 select SYS_FSL_ERRATUM_A010315 if PCIE_LAYERSCAPE
Hou Zhiqiangc06b30a2016-09-29 12:42:44 +080083 select SYS_FSL_ERRATUM_A010539
York Sund297d392016-12-28 08:43:40 -080084 select SYS_FSL_HAS_DDR3
85 select SYS_FSL_HAS_DDR4
Simon Glass62adede2017-01-23 13:31:19 -070086 select ARCH_EARLY_INIT_R
Simon Glass7a99a872017-01-23 13:31:20 -070087 select BOARD_EARLY_INIT_F
Biwen Li42637e72020-06-04 18:42:14 +080088 select SYS_I2C_MXC
Biwen Li014460b2020-02-05 22:02:16 +080089 select SYS_I2C_MXC_I2C1 if !DM_I2C
90 select SYS_I2C_MXC_I2C2 if !DM_I2C
91 select SYS_I2C_MXC_I2C3 if !DM_I2C
92 select SYS_I2C_MXC_I2C4 if !DM_I2C
Simon Glassc88a09a2017-08-04 16:34:34 -060093 imply CMD_PCI
Tom Rini4abdf142021-08-17 17:59:41 -040094 imply ID_EEPROM
York Sunb3d71642016-09-26 08:09:26 -070095
York Sunbad49842016-09-26 08:09:24 -070096config ARCH_LS1046A
York Sunfcd0e742016-10-04 14:31:47 -070097 bool
Hou Zhiqiang4d1525a2017-01-06 17:41:11 +080098 select ARMV8_SET_SMPEN
Tom Rini05b419e2021-12-11 14:55:49 -050099 select FSL_IFC if TFABOOT || (!QSPI_BOOT && !SD_BOOT_QSPI)
Rajesh Bhagat52d237a2019-01-25 13:36:26 +0000100 select FSL_LAYERSCAPE
York Sun4dd8c612016-10-04 14:31:48 -0700101 select FSL_LSCH2
Tom Rini249f11f2021-08-19 14:19:39 -0400102 select GICV2
Tom Rini46c97312021-07-21 18:53:20 -0400103 select HAS_FSL_XHCI_USB if USB_HOST
Tom Rinie1e85442021-08-27 21:18:30 -0400104 select SKIP_LOWLEVEL_INIT
Sriram Dash4a943332018-01-30 15:58:44 +0530105 select SYS_FSL_SRDS_1
106 select SYS_HAS_SERDES
York Sund297d392016-12-28 08:43:40 -0800107 select SYS_FSL_DDR
York Sunb6fffd82016-10-04 18:03:08 -0700108 select SYS_FSL_DDR_BE
York Sunb6fffd82016-10-04 18:03:08 -0700109 select SYS_FSL_DDR_VER_50
Rajesh Bhagatcd786e82018-11-05 18:01:48 +0000110 select SYS_FSL_ERRATUM_A008336 if !TFABOOT
111 select SYS_FSL_ERRATUM_A008511 if !TFABOOT
112 select SYS_FSL_ERRATUM_A008850 if !TFABOOT
Ran Wange64f7472017-09-04 18:46:50 +0800113 select SYS_FSL_ERRATUM_A008997
Ran Wang3ba69482017-09-04 18:46:51 +0800114 select SYS_FSL_ERRATUM_A009007
Ran Wangb358b7b2017-09-04 18:46:48 +0800115 select SYS_FSL_ERRATUM_A009008
Ran Wang9e8fabc2017-09-04 18:46:49 +0800116 select SYS_FSL_ERRATUM_A009798
York Sun1dc61ca2016-12-28 08:43:41 -0800117 select SYS_FSL_ERRATUM_A009801
Rajesh Bhagatcd786e82018-11-05 18:01:48 +0000118 select SYS_FSL_ERRATUM_A009803 if !TFABOOT
119 select SYS_FSL_ERRATUM_A009942 if !TFABOOT
120 select SYS_FSL_ERRATUM_A010165 if !TFABOOT
Hou Zhiqiangc06b30a2016-09-29 12:42:44 +0800121 select SYS_FSL_ERRATUM_A010539
York Sund297d392016-12-28 08:43:40 -0800122 select SYS_FSL_HAS_DDR4
York Sun6b62ef02016-10-04 18:01:34 -0700123 select SYS_FSL_SRDS_2
Simon Glass62adede2017-01-23 13:31:19 -0700124 select ARCH_EARLY_INIT_R
Simon Glass7a99a872017-01-23 13:31:20 -0700125 select BOARD_EARLY_INIT_F
Biwen Li42637e72020-06-04 18:42:14 +0800126 select SYS_I2C_MXC
Biwen Lif0018f52020-02-05 22:02:17 +0800127 select SYS_I2C_MXC_I2C1 if !DM_I2C
128 select SYS_I2C_MXC_I2C2 if !DM_I2C
129 select SYS_I2C_MXC_I2C3 if !DM_I2C
130 select SYS_I2C_MXC_I2C4 if !DM_I2C
Tom Rini4abdf142021-08-17 17:59:41 -0400131 imply ID_EEPROM
Simon Glass0e5faf02017-06-14 21:28:21 -0600132 imply SCSI
Tuomas Tynkkynenedf9f622017-12-08 15:36:19 +0200133 imply SCSI_AHCI
Tom Rini52b2e262021-08-18 23:12:24 -0400134 imply SPL_SYS_I2C_LEGACY
York Sunb3d71642016-09-26 08:09:26 -0700135
Ashish Kumarb25faa22017-08-31 16:12:53 +0530136config ARCH_LS1088A
137 bool
138 select ARMV8_SET_SMPEN
Pankit Gargf5c2a832018-12-27 04:37:55 +0000139 select ARM_ERRATA_855873 if !TFABOOT
Tom Rini05b419e2021-12-11 14:55:49 -0500140 select FSL_IFC
Rajesh Bhagat52d237a2019-01-25 13:36:26 +0000141 select FSL_LAYERSCAPE
Ashish Kumarb25faa22017-08-31 16:12:53 +0530142 select FSL_LSCH3
Tom Rini249f11f2021-08-19 14:19:39 -0400143 select GICV3
Tom Rinie1e85442021-08-27 21:18:30 -0400144 select SKIP_LOWLEVEL_INIT
Sriram Dash4a943332018-01-30 15:58:44 +0530145 select SYS_FSL_SRDS_1
146 select SYS_HAS_SERDES
Ashish Kumarb25faa22017-08-31 16:12:53 +0530147 select SYS_FSL_DDR
148 select SYS_FSL_DDR_LE
149 select SYS_FSL_DDR_VER_50
Ashish Kumarec455e22017-08-31 16:37:31 +0530150 select SYS_FSL_EC1
151 select SYS_FSL_EC2
Pankit Gargf5c2a832018-12-27 04:37:55 +0000152 select SYS_FSL_ERRATUM_A009803 if !TFABOOT
153 select SYS_FSL_ERRATUM_A009942 if !TFABOOT
154 select SYS_FSL_ERRATUM_A010165 if !TFABOOT
155 select SYS_FSL_ERRATUM_A008511 if !TFABOOT
156 select SYS_FSL_ERRATUM_A008850 if !TFABOOT
Ran Wangef277072017-09-22 15:21:34 +0800157 select SYS_FSL_ERRATUM_A009007
Ashish Kumarb25faa22017-08-31 16:12:53 +0530158 select SYS_FSL_HAS_CCI400
159 select SYS_FSL_HAS_DDR4
Ashish Kumarec455e22017-08-31 16:37:31 +0530160 select SYS_FSL_HAS_RGMII
Ashish Kumarb25faa22017-08-31 16:12:53 +0530161 select SYS_FSL_HAS_SEC
162 select SYS_FSL_SEC_COMPAT_5
163 select SYS_FSL_SEC_LE
164 select SYS_FSL_SRDS_1
165 select SYS_FSL_SRDS_2
166 select FSL_TZASC_1
Rajesh Bhagat5756f7e2019-01-20 05:30:06 +0000167 select FSL_TZASC_400
168 select FSL_TZPC_BP147
Ashish Kumarb25faa22017-08-31 16:12:53 +0530169 select ARCH_EARLY_INIT_R
170 select BOARD_EARLY_INIT_F
Sriram Dash7122a0c2018-02-06 11:26:30 +0530171 select SYS_I2C_MXC
Chuanhua Han98a5e402019-07-26 20:25:37 +0800172 select SYS_I2C_MXC_I2C1 if !TFABOOT
173 select SYS_I2C_MXC_I2C2 if !TFABOOT
174 select SYS_I2C_MXC_I2C3 if !TFABOOT
175 select SYS_I2C_MXC_I2C4 if !TFABOOT
Hou Zhiqiangce4a92a2020-04-28 10:19:31 +0800176 select RESV_RAM if GIC_V3_ITS
Tom Rini4abdf142021-08-17 17:59:41 -0400177 imply ID_EEPROM
Ashish Kumara179e562017-11-02 09:50:47 +0530178 imply SCSI
Tom Rini52b2e262021-08-18 23:12:24 -0400179 imply SPL_SYS_I2C_LEGACY
Masahiro Yamadaacede7a2017-12-04 12:37:00 +0900180 imply PANIC_HANG
Ashish Kumarb25faa22017-08-31 16:12:53 +0530181
York Sunfcd0e742016-10-04 14:31:47 -0700182config ARCH_LS2080A
183 bool
Hou Zhiqiang4d1525a2017-01-06 17:41:11 +0800184 select ARMV8_SET_SMPEN
Tom Rinibacb52c2017-03-07 07:13:42 -0500185 select ARM_ERRATA_826974
186 select ARM_ERRATA_828024
187 select ARM_ERRATA_829520
188 select ARM_ERRATA_833471
Tom Rini05b419e2021-12-11 14:55:49 -0500189 select FSL_IFC
Rajesh Bhagat52d237a2019-01-25 13:36:26 +0000190 select FSL_LAYERSCAPE
York Sun4dd8c612016-10-04 14:31:48 -0700191 select FSL_LSCH3
Tom Rini249f11f2021-08-19 14:19:39 -0400192 select GICV3
Tom Rinie1e85442021-08-27 21:18:30 -0400193 select SKIP_LOWLEVEL_INIT
Sriram Dash4a943332018-01-30 15:58:44 +0530194 select SYS_FSL_SRDS_1
195 select SYS_HAS_SERDES
York Sund297d392016-12-28 08:43:40 -0800196 select SYS_FSL_DDR
York Sunb6fffd82016-10-04 18:03:08 -0700197 select SYS_FSL_DDR_LE
198 select SYS_FSL_DDR_VER_50
Ashish Kumar97393d62017-08-18 10:54:36 +0530199 select SYS_FSL_HAS_CCN504
York Sun6b62ef02016-10-04 18:01:34 -0700200 select SYS_FSL_HAS_DP_DDR
York Sun92c36e22016-12-28 08:43:30 -0800201 select SYS_FSL_HAS_SEC
York Sund297d392016-12-28 08:43:40 -0800202 select SYS_FSL_HAS_DDR4
York Sun92c36e22016-12-28 08:43:30 -0800203 select SYS_FSL_SEC_COMPAT_5
York Sunfa4199422016-12-28 08:43:31 -0800204 select SYS_FSL_SEC_LE
York Sun6b62ef02016-10-04 18:01:34 -0700205 select SYS_FSL_SRDS_2
Ashish kumar76bd6ce2017-04-07 11:40:32 +0530206 select FSL_TZASC_1
207 select FSL_TZASC_2
Rajesh Bhagat5756f7e2019-01-20 05:30:06 +0000208 select FSL_TZASC_400
209 select FSL_TZPC_BP147
Rajesh Bhagatd5691be2018-12-27 04:37:59 +0000210 select SYS_FSL_ERRATUM_A008336 if !TFABOOT
211 select SYS_FSL_ERRATUM_A008511 if !TFABOOT
212 select SYS_FSL_ERRATUM_A008514 if !TFABOOT
York Sun1dc61ca2016-12-28 08:43:41 -0800213 select SYS_FSL_ERRATUM_A008585
Ran Wange64f7472017-09-04 18:46:50 +0800214 select SYS_FSL_ERRATUM_A008997
Ran Wang3ba69482017-09-04 18:46:51 +0800215 select SYS_FSL_ERRATUM_A009007
Ran Wangb358b7b2017-09-04 18:46:48 +0800216 select SYS_FSL_ERRATUM_A009008
York Sun1dc61ca2016-12-28 08:43:41 -0800217 select SYS_FSL_ERRATUM_A009635
Rajesh Bhagatd5691be2018-12-27 04:37:59 +0000218 select SYS_FSL_ERRATUM_A009663 if !TFABOOT
Ran Wang9e8fabc2017-09-04 18:46:49 +0800219 select SYS_FSL_ERRATUM_A009798
York Sun1dc61ca2016-12-28 08:43:41 -0800220 select SYS_FSL_ERRATUM_A009801
Rajesh Bhagatd5691be2018-12-27 04:37:59 +0000221 select SYS_FSL_ERRATUM_A009803 if !TFABOOT
222 select SYS_FSL_ERRATUM_A009942 if !TFABOOT
223 select SYS_FSL_ERRATUM_A010165 if !TFABOOT
Ashish kumar3b52a232017-02-23 16:03:57 +0530224 select SYS_FSL_ERRATUM_A009203
Simon Glass62adede2017-01-23 13:31:19 -0700225 select ARCH_EARLY_INIT_R
Simon Glass7a99a872017-01-23 13:31:20 -0700226 select BOARD_EARLY_INIT_F
Sriram Dash7122a0c2018-02-06 11:26:30 +0530227 select SYS_I2C_MXC
Chuanhua Han3f27fff2019-07-26 19:24:03 +0800228 select SYS_I2C_MXC_I2C1 if !TFABOOT
229 select SYS_I2C_MXC_I2C2 if !TFABOOT
230 select SYS_I2C_MXC_I2C3 if !TFABOOT
231 select SYS_I2C_MXC_I2C4 if !TFABOOT
Hou Zhiqiangce4a92a2020-04-28 10:19:31 +0800232 select RESV_RAM if GIC_V3_ITS
Masahiro Yamada9afc6c52018-04-25 18:47:52 +0900233 imply DISTRO_DEFAULTS
Tom Rini4abdf142021-08-17 17:59:41 -0400234 imply ID_EEPROM
Masahiro Yamadaacede7a2017-12-04 12:37:00 +0900235 imply PANIC_HANG
Tom Rini52b2e262021-08-18 23:12:24 -0400236 imply SPL_SYS_I2C_LEGACY
York Sun4dd8c612016-10-04 14:31:48 -0700237
Meenakshi Aggarwalccb5d5d2020-10-29 19:16:16 +0530238config ARCH_LX2162A
239 bool
240 select ARMV8_SET_SMPEN
Tom Riniea3cc392021-11-13 19:22:43 -0500241 select FSL_DDR_BIST
242 select FSL_DDR_INTERACTIVE
Tom Rini80b48612021-11-07 22:59:36 -0500243 select FSL_LAYERSCAPE
Meenakshi Aggarwalccb5d5d2020-10-29 19:16:16 +0530244 select FSL_LSCH3
Tom Rinid391d8b2021-12-11 14:55:51 -0500245 select FSL_TZPC_BP147
Tom Rini249f11f2021-08-19 14:19:39 -0400246 select GICV3
Meenakshi Aggarwalccb5d5d2020-10-29 19:16:16 +0530247 select NXP_LSCH3_2
248 select SYS_HAS_SERDES
249 select SYS_FSL_SRDS_1
250 select SYS_FSL_SRDS_2
251 select SYS_FSL_DDR
252 select SYS_FSL_DDR_LE
253 select SYS_FSL_DDR_VER_50
254 select SYS_FSL_EC1
255 select SYS_FSL_EC2
Ran Wang13a84a52021-06-16 17:53:19 +0530256 select SYS_FSL_ERRATUM_A050204
Yangbo Lu84f0a952021-04-27 16:42:11 +0800257 select SYS_FSL_ERRATUM_A011334
258 select SYS_FSL_ESDHC_UNRELIABLE_PULSE_DETECTION_WORKAROUND
Meenakshi Aggarwalccb5d5d2020-10-29 19:16:16 +0530259 select SYS_FSL_HAS_RGMII
260 select SYS_FSL_HAS_SEC
261 select SYS_FSL_HAS_CCN508
262 select SYS_FSL_HAS_DDR4
263 select SYS_FSL_SEC_COMPAT_5
264 select SYS_FSL_SEC_LE
265 select ARCH_EARLY_INIT_R
266 select BOARD_EARLY_INIT_F
267 select SYS_I2C_MXC
268 select RESV_RAM if GIC_V3_ITS
269 imply DISTRO_DEFAULTS
270 imply PANIC_HANG
271 imply SCSI
272 imply SCSI_AHCI
Tom Rini52b2e262021-08-18 23:12:24 -0400273 imply SPL_SYS_I2C_LEGACY
Meenakshi Aggarwalccb5d5d2020-10-29 19:16:16 +0530274
Priyanka Jainef76b2e2018-10-29 09:17:09 +0000275config ARCH_LX2160A
276 bool
277 select ARMV8_SET_SMPEN
Tom Riniea3cc392021-11-13 19:22:43 -0500278 select FSL_DDR_BIST
279 select FSL_DDR_INTERACTIVE
Tom Rini80b48612021-11-07 22:59:36 -0500280 select FSL_LAYERSCAPE
Priyanka Jainef76b2e2018-10-29 09:17:09 +0000281 select FSL_LSCH3
Tom Rinid391d8b2021-12-11 14:55:51 -0500282 select FSL_TZPC_BP147
Tom Rini249f11f2021-08-19 14:19:39 -0400283 select GICV3
Tom Rini46c97312021-07-21 18:53:20 -0400284 select HAS_FSL_XHCI_USB if USB_HOST
Priyanka Jainef76b2e2018-10-29 09:17:09 +0000285 select NXP_LSCH3_2
286 select SYS_HAS_SERDES
287 select SYS_FSL_SRDS_1
288 select SYS_FSL_SRDS_2
289 select SYS_NXP_SRDS_3
290 select SYS_FSL_DDR
291 select SYS_FSL_DDR_LE
292 select SYS_FSL_DDR_VER_50
293 select SYS_FSL_EC1
294 select SYS_FSL_EC2
Ran Wang13a84a52021-06-16 17:53:19 +0530295 select SYS_FSL_ERRATUM_A050204
Yangbo Lu84f0a952021-04-27 16:42:11 +0800296 select SYS_FSL_ERRATUM_A011334
297 select SYS_FSL_ESDHC_UNRELIABLE_PULSE_DETECTION_WORKAROUND
Priyanka Jainef76b2e2018-10-29 09:17:09 +0000298 select SYS_FSL_HAS_RGMII
299 select SYS_FSL_HAS_SEC
300 select SYS_FSL_HAS_CCN508
301 select SYS_FSL_HAS_DDR4
302 select SYS_FSL_SEC_COMPAT_5
303 select SYS_FSL_SEC_LE
304 select ARCH_EARLY_INIT_R
305 select BOARD_EARLY_INIT_F
306 select SYS_I2C_MXC
Hou Zhiqiangce4a92a2020-04-28 10:19:31 +0800307 select RESV_RAM if GIC_V3_ITS
Priyanka Jainef76b2e2018-10-29 09:17:09 +0000308 imply DISTRO_DEFAULTS
Tom Rini4abdf142021-08-17 17:59:41 -0400309 imply ID_EEPROM
Priyanka Jainef76b2e2018-10-29 09:17:09 +0000310 imply PANIC_HANG
311 imply SCSI
312 imply SCSI_AHCI
Tom Rini52b2e262021-08-18 23:12:24 -0400313 imply SPL_SYS_I2C_LEGACY
Priyanka Jainef76b2e2018-10-29 09:17:09 +0000314
York Sun4dd8c612016-10-04 14:31:48 -0700315config FSL_LSCH2
316 bool
Tom Rinie1e85442021-08-27 21:18:30 -0400317 select SKIP_LOWLEVEL_INIT
Ashish Kumar11234062017-08-11 11:09:14 +0530318 select SYS_FSL_HAS_CCI400
York Sun92c36e22016-12-28 08:43:30 -0800319 select SYS_FSL_HAS_SEC
320 select SYS_FSL_SEC_COMPAT_5
York Sunfa4199422016-12-28 08:43:31 -0800321 select SYS_FSL_SEC_BE
York Sun4dd8c612016-10-04 14:31:48 -0700322
323config FSL_LSCH3
Alex Marginean47568ce2020-01-11 01:05:40 +0200324 select ARCH_MISC_INIT
York Sun4dd8c612016-10-04 14:31:48 -0700325 bool
326
Priyanka Jain88c25662018-10-29 09:11:29 +0000327config NXP_LSCH3_2
328 bool
329
York Sun4dd8c612016-10-04 14:31:48 -0700330menu "Layerscape architecture"
331 depends on FSL_LSCH2 || FSL_LSCH3
York Sunfcd0e742016-10-04 14:31:47 -0700332
Rajesh Bhagat52d237a2019-01-25 13:36:26 +0000333config FSL_LAYERSCAPE
334 bool
335
Wenbin Songa8f57a92017-01-17 18:31:15 +0800336config HAS_FEATURE_GIC64K_ALIGN
337 bool
338 default y if ARCH_LS1043A
339
Wenbin Songc6bc7c02017-01-17 18:31:16 +0800340config HAS_FEATURE_ENHANCED_MSI
341 bool
342 default y if ARCH_LS1043A
Wenbin Songa8f57a92017-01-17 18:31:15 +0800343
macro.wave.z@gmail.comec2d7ed2016-12-08 11:58:21 +0800344menu "Layerscape PPA"
345config FSL_LS_PPA
346 bool "FSL Layerscape PPA firmware support"
macro.wave.z@gmail.com01bd3342016-12-08 11:58:22 +0800347 depends on !ARMV8_PSCI
Hou Zhiqiangbff56d52017-01-16 17:31:49 +0800348 select ARMV8_SEC_FIRMWARE_SUPPORT
Hou Zhiqiang6be115d2017-01-16 17:31:48 +0800349 select SEC_FIRMWARE_ARMV8_PSCI
Hou Zhiqiangbff56d52017-01-16 17:31:49 +0800350 select ARMV8_SEC_FIRMWARE_ERET_ADDR_REVERT if FSL_LSCH2
macro.wave.z@gmail.comec2d7ed2016-12-08 11:58:21 +0800351 help
352 The FSL Primary Protected Application (PPA) is a software component
353 which is loaded during boot stage, and then remains resident in RAM
354 and runs in the TrustZone after boot.
355 Say y to enable it.
York Sunf2aaf842017-05-15 08:52:00 -0700356
357config SPL_FSL_LS_PPA
358 bool "FSL Layerscape PPA firmware support for SPL build"
359 depends on !ARMV8_PSCI
360 select SPL_ARMV8_SEC_FIRMWARE_SUPPORT
361 select SEC_FIRMWARE_ARMV8_PSCI
362 select ARMV8_SEC_FIRMWARE_ERET_ADDR_REVERT if FSL_LSCH2
363 help
364 The FSL Primary Protected Application (PPA) is a software component
365 which is loaded during boot stage, and then remains resident in RAM
366 and runs in the TrustZone after boot. This is to load PPA during SPL
367 stage instead of the RAM version of U-Boot. Once PPA is initialized,
368 the rest of U-Boot (including RAM version) runs at EL2.
Hou Zhiqiangbff56d52017-01-16 17:31:49 +0800369choice
370 prompt "FSL Layerscape PPA firmware loading-media select"
371 depends on FSL_LS_PPA
Hou Zhiqiangbd6e2cd2017-03-17 16:12:33 +0800372 default SYS_LS_PPA_FW_IN_MMC if SD_BOOT
373 default SYS_LS_PPA_FW_IN_NAND if NAND_BOOT
Hou Zhiqiangbff56d52017-01-16 17:31:49 +0800374 default SYS_LS_PPA_FW_IN_XIP
375
376config SYS_LS_PPA_FW_IN_XIP
377 bool "XIP"
378 help
379 Say Y here if the PPA firmware locate at XIP flash, such
380 as NOR or QSPI flash.
381
Hou Zhiqiangbd6e2cd2017-03-17 16:12:33 +0800382config SYS_LS_PPA_FW_IN_MMC
383 bool "eMMC or SD Card"
384 help
385 Say Y here if the PPA firmware locate at eMMC/SD card.
386
387config SYS_LS_PPA_FW_IN_NAND
388 bool "NAND"
389 help
390 Say Y here if the PPA firmware locate at NAND flash.
391
Hou Zhiqiangbff56d52017-01-16 17:31:49 +0800392endchoice
393
Sumit Garg8fddf752017-04-20 05:09:11 +0530394config LS_PPA_ESBC_HDR_SIZE
395 hex "Length of PPA ESBC header"
396 depends on FSL_LS_PPA && CHAIN_OF_TRUST && !SYS_LS_PPA_FW_IN_XIP
397 default 0x2000
398 help
399 Length (in bytes) of PPA ESBC header to be copied from MMC/SD or
400 NAND to memory to validate PPA image.
401
macro.wave.z@gmail.comec2d7ed2016-12-08 11:58:21 +0800402endmenu
403
Ran Wange64f7472017-09-04 18:46:50 +0800404config SYS_FSL_ERRATUM_A008997
405 bool "Workaround for USB PHY erratum A008997"
406
Ran Wang3ba69482017-09-04 18:46:51 +0800407config SYS_FSL_ERRATUM_A009007
408 bool
409 help
410 Workaround for USB PHY erratum A009007
411
Ran Wangb358b7b2017-09-04 18:46:48 +0800412config SYS_FSL_ERRATUM_A009008
413 bool "Workaround for USB PHY erratum A009008"
414
Ran Wang9e8fabc2017-09-04 18:46:49 +0800415config SYS_FSL_ERRATUM_A009798
416 bool "Workaround for USB PHY erratum A009798"
417
Ran Wang13a84a52021-06-16 17:53:19 +0530418config SYS_FSL_ERRATUM_A050204
419 bool "Workaround for USB PHY erratum A050204"
Ran Wangd0270dc2019-11-26 11:40:40 +0800420 help
421 USB3.0 Receiver needs to enable fixed equalization
422 for each of PHY instances in an SOC. This is similar
Meenakshi Aggarwalccb5d5d2020-10-29 19:16:16 +0530423 to erratum A-009007, but this one is for LX2160A and LX2162A,
Ran Wangd0270dc2019-11-26 11:40:40 +0800424 and the register value is different.
425
York Sun149eb332016-09-26 08:09:27 -0700426config SYS_FSL_ERRATUM_A010315
427 bool "Workaround for PCIe erratum A010315"
Hou Zhiqiangc06b30a2016-09-29 12:42:44 +0800428
429config SYS_FSL_ERRATUM_A010539
430 bool "Workaround for PIN MUX erratum A010539"
York Sun4dd8c612016-10-04 14:31:48 -0700431
York Sunf188d222016-10-04 14:45:01 -0700432config MAX_CPUS
433 int "Maximum number of CPUs permitted for Layerscape"
Yuantian Tang4aefa162019-04-10 16:43:33 +0800434 default 2 if ARCH_LS1028A
York Sunf188d222016-10-04 14:45:01 -0700435 default 4 if ARCH_LS1043A
436 default 4 if ARCH_LS1046A
437 default 16 if ARCH_LS2080A
Ashish Kumarb25faa22017-08-31 16:12:53 +0530438 default 8 if ARCH_LS1088A
Priyanka Jainef76b2e2018-10-29 09:17:09 +0000439 default 16 if ARCH_LX2160A
Meenakshi Aggarwalccb5d5d2020-10-29 19:16:16 +0530440 default 16 if ARCH_LX2162A
York Sunf188d222016-10-04 14:45:01 -0700441 default 1
442 help
443 Set this number to the maximum number of possible CPUs in the SoC.
444 SoCs may have multiple clusters with each cluster may have multiple
445 ports. If some ports are reserved but higher ports are used for
446 cores, count the reserved ports. This will allocate enough memory
447 in spin table to properly handle all cores.
448
Meenakshi Aggarwalbbd33182018-11-30 22:32:11 +0530449config EMC2305
450 bool "Fan controller"
451 help
452 Enable the EMC2305 fan controller for configuration of fan
453 speed.
454
Udit Agarwal22ec2382019-11-07 16:11:32 +0000455config NXP_ESBC
456 bool "NXP_ESBC"
York Sun728e7002016-12-02 09:32:35 -0800457 help
458 Enable Freescale Secure Boot feature
459
Yuan Yao52ae4fd2016-12-01 10:13:52 +0800460config QSPI_AHB_INIT
461 bool "Init the QSPI AHB bus"
462 help
463 The default setting for QSPI AHB bus just support 3bytes addressing.
464 But some QSPI flash size up to 64MBytes, so initialize the QSPI AHB
465 bus for those flashes to support the full QSPI flash size.
466
Kuldeep Singh34aafb02019-11-21 17:15:17 +0530467config FSPI_AHB_EN_4BYTE
468 bool "Enable 4-byte Fast Read command for AHB mode"
Kuldeep Singh34aafb02019-11-21 17:15:17 +0530469 help
470 The default setting for FlexSPI AHB bus just supports 3-byte addressing.
471 But some FlexSPI flash sizes are up to 64MBytes.
472 This flag enables fast read command for AHB mode and modifies required
473 LUT to support full FlexSPI flash.
474
Ashish Kumar11234062017-08-11 11:09:14 +0530475config SYS_CCI400_OFFSET
476 hex "Offset for CCI400 base"
477 depends on SYS_FSL_HAS_CCI400
Yuantian Tang4aefa162019-04-10 16:43:33 +0800478 default 0x3090000 if ARCH_LS1088A || ARCH_LS1028A
Ashish Kumar11234062017-08-11 11:09:14 +0530479 default 0x180000 if FSL_LSCH2
480 help
481 Offset for CCI400 base
482 CCI400 base addr = CCSRBAR + CCI400_OFFSET
483
York Sune7310a32016-10-04 14:45:54 -0700484config SYS_FSL_IFC_BANK_COUNT
485 int "Maximum banks of Integrated flash controller"
Ashish Kumarb25faa22017-08-31 16:12:53 +0530486 depends on ARCH_LS1043A || ARCH_LS1046A || ARCH_LS2080A || ARCH_LS1088A
York Sune7310a32016-10-04 14:45:54 -0700487 default 4 if ARCH_LS1043A
488 default 4 if ARCH_LS1046A
Ashish Kumarb25faa22017-08-31 16:12:53 +0530489 default 8 if ARCH_LS2080A || ARCH_LS1088A
York Sune7310a32016-10-04 14:45:54 -0700490
Ashish Kumar11234062017-08-11 11:09:14 +0530491config SYS_FSL_HAS_CCI400
492 bool
493
Ashish Kumar97393d62017-08-18 10:54:36 +0530494config SYS_FSL_HAS_CCN504
495 bool
496
Priyanka Jainef76b2e2018-10-29 09:17:09 +0000497config SYS_FSL_HAS_CCN508
498 bool
499
York Sun0dc9abb2016-10-04 14:46:50 -0700500config SYS_FSL_HAS_DP_DDR
501 bool
502
York Sun6b62ef02016-10-04 18:01:34 -0700503config SYS_FSL_SRDS_1
504 bool
505
506config SYS_FSL_SRDS_2
507 bool
508
Priyanka Jain1a602532018-09-27 10:32:05 +0530509config SYS_NXP_SRDS_3
510 bool
511
York Sun6b62ef02016-10-04 18:01:34 -0700512config SYS_HAS_SERDES
513 bool
514
Ashish kumar76bd6ce2017-04-07 11:40:32 +0530515config FSL_TZASC_1
516 bool
517
518config FSL_TZASC_2
519 bool
520
Rajesh Bhagat5756f7e2019-01-20 05:30:06 +0000521config FSL_TZASC_400
522 bool
523
524config FSL_TZPC_BP147
525 bool
York Sun4dd8c612016-10-04 14:31:48 -0700526endmenu
York Sun1dc61ca2016-12-28 08:43:41 -0800527
Hou Zhiqiang3f91cda2017-01-10 16:44:15 +0800528menu "Layerscape clock tree configuration"
529 depends on FSL_LSCH2 || FSL_LSCH3
530
531config SYS_FSL_CLK
532 bool "Enable clock tree initialization"
533 default y
534
535config CLUSTER_CLK_FREQ
536 int "Reference clock of core cluster"
537 depends on ARCH_LS1012A
538 default 100000000
539 help
540 This number is the reference clock frequency of core PLL.
541 For most platforms, the core PLL and Platform PLL have the same
542 reference clock, but for some platforms, LS1012A for instance,
543 they are provided sepatately.
544
545config SYS_FSL_PCLK_DIV
546 int "Platform clock divider"
Yuantian Tang4aefa162019-04-10 16:43:33 +0800547 default 1 if ARCH_LS1028A
Hou Zhiqiang3f91cda2017-01-10 16:44:15 +0800548 default 1 if ARCH_LS1043A
549 default 1 if ARCH_LS1046A
Ashish Kumarb25faa22017-08-31 16:12:53 +0530550 default 1 if ARCH_LS1088A
Hou Zhiqiang3f91cda2017-01-10 16:44:15 +0800551 default 2
552 help
553 This is the divider that is used to derive Platform clock from
554 Platform PLL, in another word:
555 Platform_clk = Platform_PLL_freq / this_divider
556
557config SYS_FSL_DSPI_CLK_DIV
558 int "DSPI clock divider"
559 default 1 if ARCH_LS1043A
560 default 2
561 help
562 This is the divider that is used to derive DSPI clock from Platform
Hou Zhiqiang0c8fcb62017-07-03 18:37:11 +0800563 clock, in another word DSPI_clk = Platform_clk / this_divider.
Hou Zhiqiang3f91cda2017-01-10 16:44:15 +0800564
565config SYS_FSL_DUART_CLK_DIV
566 int "DUART clock divider"
567 default 1 if ARCH_LS1043A
Priyanka Jainef76b2e2018-10-29 09:17:09 +0000568 default 4 if ARCH_LX2160A
Meenakshi Aggarwalccb5d5d2020-10-29 19:16:16 +0530569 default 4 if ARCH_LX2162A
Hou Zhiqiang3f91cda2017-01-10 16:44:15 +0800570 default 2
571 help
572 This is the divider that is used to derive DUART clock from Platform
573 clock, in another word DUART_clk = Platform_clk / this_divider.
574
575config SYS_FSL_I2C_CLK_DIV
576 int "I2C clock divider"
577 default 1 if ARCH_LS1043A
Chuanhua Han44d4d332019-08-02 16:53:53 +0800578 default 4 if ARCH_LS1012A
579 default 4 if ARCH_LS1028A
580 default 8 if ARCH_LX2160A
Meenakshi Aggarwalccb5d5d2020-10-29 19:16:16 +0530581 default 8 if ARCH_LX2162A
Chuanhua Han44d4d332019-08-02 16:53:53 +0800582 default 8 if ARCH_LS1088A
Hou Zhiqiang3f91cda2017-01-10 16:44:15 +0800583 default 2
584 help
585 This is the divider that is used to derive I2C clock from Platform
586 clock, in another word I2C_clk = Platform_clk / this_divider.
587
588config SYS_FSL_IFC_CLK_DIV
589 int "IFC clock divider"
590 default 1 if ARCH_LS1043A
Chuanhua Han3df89cc2019-08-08 17:04:58 +0800591 default 4 if ARCH_LS1012A
592 default 4 if ARCH_LS1028A
593 default 8 if ARCH_LX2160A
Meenakshi Aggarwalccb5d5d2020-10-29 19:16:16 +0530594 default 8 if ARCH_LX2162A
Chuanhua Han3df89cc2019-08-08 17:04:58 +0800595 default 8 if ARCH_LS1088A
Hou Zhiqiang3f91cda2017-01-10 16:44:15 +0800596 default 2
597 help
598 This is the divider that is used to derive IFC clock from Platform
599 clock, in another word IFC_clk = Platform_clk / this_divider.
600
601config SYS_FSL_LPUART_CLK_DIV
602 int "LPUART clock divider"
603 default 1 if ARCH_LS1043A
604 default 2
605 help
606 This is the divider that is used to derive LPUART clock from Platform
607 clock, in another word LPUART_clk = Platform_clk / this_divider.
608
609config SYS_FSL_SDHC_CLK_DIV
610 int "SDHC clock divider"
611 default 1 if ARCH_LS1043A
612 default 1 if ARCH_LS1012A
613 default 2
614 help
615 This is the divider that is used to derive SDHC clock from Platform
616 clock, in another word SDHC_clk = Platform_clk / this_divider.
Hou Zhiqiangfef32c62018-04-25 16:28:44 +0800617
618config SYS_FSL_QMAN_CLK_DIV
619 int "QMAN clock divider"
620 default 1 if ARCH_LS1043A
621 default 2
622 help
623 This is the divider that is used to derive QMAN clock from Platform
624 clock, in another word QMAN_clk = Platform_clk / this_divider.
Hou Zhiqiang3f91cda2017-01-10 16:44:15 +0800625endmenu
626
York Sund6964b32017-03-06 09:02:24 -0800627config RESV_RAM
628 bool
629 help
630 Reserve memory from the top, tracked by gd->arch.resv_ram. This
631 reserved RAM can be used by special driver that resides in memory
632 after U-Boot exits. It's up to implementation to allocate and allow
633 access to this reserved memory. For example, the reserved RAM can
634 be at the high end of physical memory. The reserve RAM may be
635 excluded from memory bank(s) passed to OS, or marked as reserved.
636
Ashish Kumarec455e22017-08-31 16:37:31 +0530637config SYS_FSL_EC1
638 bool
639 help
Priyanka Jainef76b2e2018-10-29 09:17:09 +0000640 Ethernet controller 1, this is connected to
Meenakshi Aggarwalccb5d5d2020-10-29 19:16:16 +0530641 MAC17 for LX2160A and LX2162A or to MAC3 for other SoCs
Ashish Kumarec455e22017-08-31 16:37:31 +0530642 Provides DPAA2 capabilities
643
644config SYS_FSL_EC2
645 bool
646 help
Priyanka Jainef76b2e2018-10-29 09:17:09 +0000647 Ethernet controller 2, this is connected to
Meenakshi Aggarwalccb5d5d2020-10-29 19:16:16 +0530648 MAC18 for LX2160A and LX2162A or to MAC4 for other SoCs
Ashish Kumarec455e22017-08-31 16:37:31 +0530649 Provides DPAA2 capabilities
650
York Sun1dc61ca2016-12-28 08:43:41 -0800651config SYS_FSL_ERRATUM_A008336
652 bool
653
654config SYS_FSL_ERRATUM_A008514
655 bool
656
657config SYS_FSL_ERRATUM_A008585
658 bool
659
660config SYS_FSL_ERRATUM_A008850
661 bool
662
Ashish kumar3b52a232017-02-23 16:03:57 +0530663config SYS_FSL_ERRATUM_A009203
664 bool
665
York Sun1dc61ca2016-12-28 08:43:41 -0800666config SYS_FSL_ERRATUM_A009635
667 bool
668
669config SYS_FSL_ERRATUM_A009660
670 bool
671
Laurentiu Tudor7ea2feb2019-10-18 09:01:56 +0000672config SYS_FSL_ERRATUM_A050382
673 bool
Ashish Kumarec455e22017-08-31 16:37:31 +0530674
675config SYS_FSL_HAS_RGMII
676 bool
677 depends on SYS_FSL_EC1 || SYS_FSL_EC2
678
Philipp Tomsich2d6a0cc2017-08-03 23:23:55 +0200679config SPL_LDSCRIPT
680 default "arch/arm/cpu/armv8/u-boot-spl.lds" if ARCH_LS1043A || ARCH_LS1046A || ARCH_LS2080A
Ran Wang5959f842017-10-23 10:09:21 +0800681
682config HAS_FSL_XHCI_USB
683 bool
Ran Wang5959f842017-10-23 10:09:21 +0800684 help
Tom Rini46c97312021-07-21 18:53:20 -0400685 For some SoC (such as LS1043A and LS1046A), USB and QE-HDLC multiplex use
Ran Wang5959f842017-10-23 10:09:21 +0800686 pins, select it when the pins are assigned to USB.
Rajesh Bhagat729f22f2021-02-11 13:28:49 +0100687
688config SYS_FSL_BOOTROM_BASE
689 hex
690 depends on FSL_LSCH2
691 default 0
692
693config SYS_FSL_BOOTROM_SIZE
694 hex
695 depends on FSL_LSCH2
696 default 0x1000000