blob: cefbdfe8556a45ba2ed096e5f5606d4e478e5951 [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
Alison Wangc1293872017-12-28 13:00:55 +08004 select ARM_ERRATA_855873
York Sun4dd8c612016-10-04 14:31:48 -07005 select FSL_LSCH2
York Sunb6fffd82016-10-04 18:03:08 -07006 select SYS_FSL_DDR_BE
York Sunb3d71642016-09-26 08:09:26 -07007 select SYS_FSL_MMDC
York Sun149eb332016-09-26 08:09:27 -07008 select SYS_FSL_ERRATUM_A010315
Ran Wang02dc77b2017-11-13 16:14:48 +08009 select SYS_FSL_ERRATUM_A009798
10 select SYS_FSL_ERRATUM_A008997
11 select SYS_FSL_ERRATUM_A009007
12 select SYS_FSL_ERRATUM_A009008
Simon Glass62adede2017-01-23 13:31:19 -070013 select ARCH_EARLY_INIT_R
Simon Glass7a99a872017-01-23 13:31:20 -070014 select BOARD_EARLY_INIT_F
Masahiro Yamadaacede7a2017-12-04 12:37:00 +090015 imply PANIC_HANG
York Sun149eb332016-09-26 08:09:27 -070016
17config ARCH_LS1043A
York Sunfcd0e742016-10-04 14:31:47 -070018 bool
Hou Zhiqiang4d1525a2017-01-06 17:41:11 +080019 select ARMV8_SET_SMPEN
Alison Wangc1293872017-12-28 13:00:55 +080020 select ARM_ERRATA_855873
York Sun4dd8c612016-10-04 14:31:48 -070021 select FSL_LSCH2
York Sund297d392016-12-28 08:43:40 -080022 select SYS_FSL_DDR
York Sunb6fffd82016-10-04 18:03:08 -070023 select SYS_FSL_DDR_BE
24 select SYS_FSL_DDR_VER_50
York Sun1dc61ca2016-12-28 08:43:41 -080025 select SYS_FSL_ERRATUM_A008850
Ran Wange64f7472017-09-04 18:46:50 +080026 select SYS_FSL_ERRATUM_A008997
Ran Wang3ba69482017-09-04 18:46:51 +080027 select SYS_FSL_ERRATUM_A009007
Ran Wangb358b7b2017-09-04 18:46:48 +080028 select SYS_FSL_ERRATUM_A009008
York Sun1dc61ca2016-12-28 08:43:41 -080029 select SYS_FSL_ERRATUM_A009660
30 select SYS_FSL_ERRATUM_A009663
Ran Wang9e8fabc2017-09-04 18:46:49 +080031 select SYS_FSL_ERRATUM_A009798
York Sun1dc61ca2016-12-28 08:43:41 -080032 select SYS_FSL_ERRATUM_A009929
33 select SYS_FSL_ERRATUM_A009942
York Sun149eb332016-09-26 08:09:27 -070034 select SYS_FSL_ERRATUM_A010315
Hou Zhiqiangc06b30a2016-09-29 12:42:44 +080035 select SYS_FSL_ERRATUM_A010539
York Sund297d392016-12-28 08:43:40 -080036 select SYS_FSL_HAS_DDR3
37 select SYS_FSL_HAS_DDR4
Simon Glass62adede2017-01-23 13:31:19 -070038 select ARCH_EARLY_INIT_R
Simon Glass7a99a872017-01-23 13:31:20 -070039 select BOARD_EARLY_INIT_F
Simon Glass0e5faf02017-06-14 21:28:21 -060040 imply SCSI
Tuomas Tynkkynenedf9f622017-12-08 15:36:19 +020041 imply SCSI_AHCI
Simon Glassc88a09a2017-08-04 16:34:34 -060042 imply CMD_PCI
York Sunb3d71642016-09-26 08:09:26 -070043
York Sunbad49842016-09-26 08:09:24 -070044config ARCH_LS1046A
York Sunfcd0e742016-10-04 14:31:47 -070045 bool
Hou Zhiqiang4d1525a2017-01-06 17:41:11 +080046 select ARMV8_SET_SMPEN
York Sun4dd8c612016-10-04 14:31:48 -070047 select FSL_LSCH2
York Sund297d392016-12-28 08:43:40 -080048 select SYS_FSL_DDR
York Sunb6fffd82016-10-04 18:03:08 -070049 select SYS_FSL_DDR_BE
York Sunb6fffd82016-10-04 18:03:08 -070050 select SYS_FSL_DDR_VER_50
York Sunf195cf72017-01-27 09:57:31 -080051 select SYS_FSL_ERRATUM_A008336
York Sun1dc61ca2016-12-28 08:43:41 -080052 select SYS_FSL_ERRATUM_A008511
Shengzhou Liua7c37c62017-03-23 18:14:40 +080053 select SYS_FSL_ERRATUM_A008850
Ran Wange64f7472017-09-04 18:46:50 +080054 select SYS_FSL_ERRATUM_A008997
Ran Wang3ba69482017-09-04 18:46:51 +080055 select SYS_FSL_ERRATUM_A009007
Ran Wangb358b7b2017-09-04 18:46:48 +080056 select SYS_FSL_ERRATUM_A009008
Ran Wang9e8fabc2017-09-04 18:46:49 +080057 select SYS_FSL_ERRATUM_A009798
York Sun1dc61ca2016-12-28 08:43:41 -080058 select SYS_FSL_ERRATUM_A009801
59 select SYS_FSL_ERRATUM_A009803
60 select SYS_FSL_ERRATUM_A009942
61 select SYS_FSL_ERRATUM_A010165
Hou Zhiqiangc06b30a2016-09-29 12:42:44 +080062 select SYS_FSL_ERRATUM_A010539
York Sund297d392016-12-28 08:43:40 -080063 select SYS_FSL_HAS_DDR4
York Sun6b62ef02016-10-04 18:01:34 -070064 select SYS_FSL_SRDS_2
Simon Glass62adede2017-01-23 13:31:19 -070065 select ARCH_EARLY_INIT_R
Simon Glass7a99a872017-01-23 13:31:20 -070066 select BOARD_EARLY_INIT_F
Simon Glass0e5faf02017-06-14 21:28:21 -060067 imply SCSI
Tuomas Tynkkynenedf9f622017-12-08 15:36:19 +020068 imply SCSI_AHCI
York Sunb3d71642016-09-26 08:09:26 -070069
Ashish Kumarb25faa22017-08-31 16:12:53 +053070config ARCH_LS1088A
71 bool
72 select ARMV8_SET_SMPEN
Alison Wangc1293872017-12-28 13:00:55 +080073 select ARM_ERRATA_855873
Ashish Kumarb25faa22017-08-31 16:12:53 +053074 select FSL_LSCH3
75 select SYS_FSL_DDR
76 select SYS_FSL_DDR_LE
77 select SYS_FSL_DDR_VER_50
Ashish Kumarec455e22017-08-31 16:37:31 +053078 select SYS_FSL_EC1
79 select SYS_FSL_EC2
Ashish Kumarb25faa22017-08-31 16:12:53 +053080 select SYS_FSL_ERRATUM_A009803
81 select SYS_FSL_ERRATUM_A009942
82 select SYS_FSL_ERRATUM_A010165
83 select SYS_FSL_ERRATUM_A008511
84 select SYS_FSL_ERRATUM_A008850
Ran Wangef277072017-09-22 15:21:34 +080085 select SYS_FSL_ERRATUM_A009007
Ashish Kumarb25faa22017-08-31 16:12:53 +053086 select SYS_FSL_HAS_CCI400
87 select SYS_FSL_HAS_DDR4
Ashish Kumarec455e22017-08-31 16:37:31 +053088 select SYS_FSL_HAS_RGMII
Ashish Kumarb25faa22017-08-31 16:12:53 +053089 select SYS_FSL_HAS_SEC
90 select SYS_FSL_SEC_COMPAT_5
91 select SYS_FSL_SEC_LE
92 select SYS_FSL_SRDS_1
93 select SYS_FSL_SRDS_2
94 select FSL_TZASC_1
95 select ARCH_EARLY_INIT_R
96 select BOARD_EARLY_INIT_F
Ashish Kumara179e562017-11-02 09:50:47 +053097 imply SCSI
Masahiro Yamadaacede7a2017-12-04 12:37:00 +090098 imply PANIC_HANG
Ashish Kumarb25faa22017-08-31 16:12:53 +053099
York Sunfcd0e742016-10-04 14:31:47 -0700100config ARCH_LS2080A
101 bool
Hou Zhiqiang4d1525a2017-01-06 17:41:11 +0800102 select ARMV8_SET_SMPEN
Tom Rinibacb52c2017-03-07 07:13:42 -0500103 select ARM_ERRATA_826974
104 select ARM_ERRATA_828024
105 select ARM_ERRATA_829520
106 select ARM_ERRATA_833471
York Sun4dd8c612016-10-04 14:31:48 -0700107 select FSL_LSCH3
York Sund297d392016-12-28 08:43:40 -0800108 select SYS_FSL_DDR
York Sunb6fffd82016-10-04 18:03:08 -0700109 select SYS_FSL_DDR_LE
110 select SYS_FSL_DDR_VER_50
Ashish Kumar97393d62017-08-18 10:54:36 +0530111 select SYS_FSL_HAS_CCN504
York Sun6b62ef02016-10-04 18:01:34 -0700112 select SYS_FSL_HAS_DP_DDR
York Sun92c36e22016-12-28 08:43:30 -0800113 select SYS_FSL_HAS_SEC
York Sund297d392016-12-28 08:43:40 -0800114 select SYS_FSL_HAS_DDR4
York Sun92c36e22016-12-28 08:43:30 -0800115 select SYS_FSL_SEC_COMPAT_5
York Sunfa4199422016-12-28 08:43:31 -0800116 select SYS_FSL_SEC_LE
York Sun6b62ef02016-10-04 18:01:34 -0700117 select SYS_FSL_SRDS_2
Ashish kumar76bd6ce2017-04-07 11:40:32 +0530118 select FSL_TZASC_1
119 select FSL_TZASC_2
York Sun1dc61ca2016-12-28 08:43:41 -0800120 select SYS_FSL_ERRATUM_A008336
121 select SYS_FSL_ERRATUM_A008511
122 select SYS_FSL_ERRATUM_A008514
123 select SYS_FSL_ERRATUM_A008585
Ran Wange64f7472017-09-04 18:46:50 +0800124 select SYS_FSL_ERRATUM_A008997
Ran Wang3ba69482017-09-04 18:46:51 +0800125 select SYS_FSL_ERRATUM_A009007
Ran Wangb358b7b2017-09-04 18:46:48 +0800126 select SYS_FSL_ERRATUM_A009008
York Sun1dc61ca2016-12-28 08:43:41 -0800127 select SYS_FSL_ERRATUM_A009635
128 select SYS_FSL_ERRATUM_A009663
Ran Wang9e8fabc2017-09-04 18:46:49 +0800129 select SYS_FSL_ERRATUM_A009798
York Sun1dc61ca2016-12-28 08:43:41 -0800130 select SYS_FSL_ERRATUM_A009801
131 select SYS_FSL_ERRATUM_A009803
132 select SYS_FSL_ERRATUM_A009942
133 select SYS_FSL_ERRATUM_A010165
Ashish kumar3b52a232017-02-23 16:03:57 +0530134 select SYS_FSL_ERRATUM_A009203
Simon Glass62adede2017-01-23 13:31:19 -0700135 select ARCH_EARLY_INIT_R
Simon Glass7a99a872017-01-23 13:31:20 -0700136 select BOARD_EARLY_INIT_F
Masahiro Yamadaacede7a2017-12-04 12:37:00 +0900137 imply PANIC_HANG
York Sun4dd8c612016-10-04 14:31:48 -0700138
139config FSL_LSCH2
140 bool
Ashish Kumar11234062017-08-11 11:09:14 +0530141 select SYS_FSL_HAS_CCI400
York Sun92c36e22016-12-28 08:43:30 -0800142 select SYS_FSL_HAS_SEC
143 select SYS_FSL_SEC_COMPAT_5
York Sunfa4199422016-12-28 08:43:31 -0800144 select SYS_FSL_SEC_BE
York Sun6b62ef02016-10-04 18:01:34 -0700145 select SYS_FSL_SRDS_1
146 select SYS_HAS_SERDES
York Sun4dd8c612016-10-04 14:31:48 -0700147
148config FSL_LSCH3
149 bool
York Sun6b62ef02016-10-04 18:01:34 -0700150 select SYS_FSL_SRDS_1
151 select SYS_HAS_SERDES
York Sun4dd8c612016-10-04 14:31:48 -0700152
York Sun6c089742017-03-06 09:02:25 -0800153config FSL_MC_ENET
154 bool "Management Complex network"
Ashish Kumarb25faa22017-08-31 16:12:53 +0530155 depends on ARCH_LS2080A || ARCH_LS1088A
York Sun6c089742017-03-06 09:02:25 -0800156 default y
157 select RESV_RAM
158 help
159 Enable Management Complex (MC) network
160
York Sun4dd8c612016-10-04 14:31:48 -0700161menu "Layerscape architecture"
162 depends on FSL_LSCH2 || FSL_LSCH3
York Sunfcd0e742016-10-04 14:31:47 -0700163
Hou Zhiqiangd553bf22016-12-13 14:54:24 +0800164config FSL_PCIE_COMPAT
165 string "PCIe compatible of Kernel DT"
166 depends on PCIE_LAYERSCAPE
167 default "fsl,ls1012a-pcie" if ARCH_LS1012A
168 default "fsl,ls1043a-pcie" if ARCH_LS1043A
169 default "fsl,ls1046a-pcie" if ARCH_LS1046A
170 default "fsl,ls2080a-pcie" if ARCH_LS2080A
Ashish Kumarb25faa22017-08-31 16:12:53 +0530171 default "fsl,ls1088a-pcie" if ARCH_LS1088A
Hou Zhiqiangd553bf22016-12-13 14:54:24 +0800172 help
173 This compatible is used to find pci controller node in Kernel DT
174 to complete fixup.
175
Wenbin Songa8f57a92017-01-17 18:31:15 +0800176config HAS_FEATURE_GIC64K_ALIGN
177 bool
178 default y if ARCH_LS1043A
179
Wenbin Songc6bc7c02017-01-17 18:31:16 +0800180config HAS_FEATURE_ENHANCED_MSI
181 bool
182 default y if ARCH_LS1043A
Wenbin Songa8f57a92017-01-17 18:31:15 +0800183
macro.wave.z@gmail.comec2d7ed2016-12-08 11:58:21 +0800184menu "Layerscape PPA"
185config FSL_LS_PPA
186 bool "FSL Layerscape PPA firmware support"
macro.wave.z@gmail.com01bd3342016-12-08 11:58:22 +0800187 depends on !ARMV8_PSCI
Hou Zhiqiangbff56d52017-01-16 17:31:49 +0800188 select ARMV8_SEC_FIRMWARE_SUPPORT
Hou Zhiqiang6be115d2017-01-16 17:31:48 +0800189 select SEC_FIRMWARE_ARMV8_PSCI
Hou Zhiqiangbff56d52017-01-16 17:31:49 +0800190 select ARMV8_SEC_FIRMWARE_ERET_ADDR_REVERT if FSL_LSCH2
macro.wave.z@gmail.comec2d7ed2016-12-08 11:58:21 +0800191 help
192 The FSL Primary Protected Application (PPA) is a software component
193 which is loaded during boot stage, and then remains resident in RAM
194 and runs in the TrustZone after boot.
195 Say y to enable it.
York Sunf2aaf842017-05-15 08:52:00 -0700196
197config SPL_FSL_LS_PPA
198 bool "FSL Layerscape PPA firmware support for SPL build"
199 depends on !ARMV8_PSCI
200 select SPL_ARMV8_SEC_FIRMWARE_SUPPORT
201 select SEC_FIRMWARE_ARMV8_PSCI
202 select ARMV8_SEC_FIRMWARE_ERET_ADDR_REVERT if FSL_LSCH2
203 help
204 The FSL Primary Protected Application (PPA) is a software component
205 which is loaded during boot stage, and then remains resident in RAM
206 and runs in the TrustZone after boot. This is to load PPA during SPL
207 stage instead of the RAM version of U-Boot. Once PPA is initialized,
208 the rest of U-Boot (including RAM version) runs at EL2.
Hou Zhiqiangbff56d52017-01-16 17:31:49 +0800209choice
210 prompt "FSL Layerscape PPA firmware loading-media select"
211 depends on FSL_LS_PPA
Hou Zhiqiangbd6e2cd2017-03-17 16:12:33 +0800212 default SYS_LS_PPA_FW_IN_MMC if SD_BOOT
213 default SYS_LS_PPA_FW_IN_NAND if NAND_BOOT
Hou Zhiqiangbff56d52017-01-16 17:31:49 +0800214 default SYS_LS_PPA_FW_IN_XIP
215
216config SYS_LS_PPA_FW_IN_XIP
217 bool "XIP"
218 help
219 Say Y here if the PPA firmware locate at XIP flash, such
220 as NOR or QSPI flash.
221
Hou Zhiqiangbd6e2cd2017-03-17 16:12:33 +0800222config SYS_LS_PPA_FW_IN_MMC
223 bool "eMMC or SD Card"
224 help
225 Say Y here if the PPA firmware locate at eMMC/SD card.
226
227config SYS_LS_PPA_FW_IN_NAND
228 bool "NAND"
229 help
230 Say Y here if the PPA firmware locate at NAND flash.
231
Hou Zhiqiangbff56d52017-01-16 17:31:49 +0800232endchoice
233
234config SYS_LS_PPA_FW_ADDR
235 hex "Address of PPA firmware loading from"
236 depends on FSL_LS_PPA
Priyanka Jain7d05b992017-04-28 10:41:35 +0530237 default 0x20400000 if SYS_LS_PPA_FW_IN_XIP && QSPI_BOOT && ARCH_LS2080A
Alison Wangb5b8bfa2017-05-16 10:45:58 +0800238 default 0x40400000 if SYS_LS_PPA_FW_IN_XIP && QSPI_BOOT
Santan Kumar0f0173d2017-04-28 12:47:24 +0530239 default 0x580400000 if SYS_LS_PPA_FW_IN_XIP && ARCH_LS2080A
Ashish Kumar227b4bc2017-08-31 16:12:54 +0530240 default 0x20400000 if SYS_LS_PPA_FW_IN_XIP && ARCH_LS1088A
Alison Wangb5b8bfa2017-05-16 10:45:58 +0800241 default 0x60400000 if SYS_LS_PPA_FW_IN_XIP
242 default 0x400000 if SYS_LS_PPA_FW_IN_MMC
243 default 0x400000 if SYS_LS_PPA_FW_IN_NAND
Hou Zhiqiangbd6e2cd2017-03-17 16:12:33 +0800244
Hou Zhiqiangbff56d52017-01-16 17:31:49 +0800245 help
246 If the PPA firmware locate at XIP flash, such as NOR or
247 QSPI flash, this address is a directly memory-mapped.
248 If it is in a serial accessed flash, such as NAND and SD
249 card, it is a byte offset.
Vinitha Pillai-B57223a4b3ded2017-03-23 13:48:14 +0530250
251config SYS_LS_PPA_ESBC_ADDR
252 hex "hdr address of PPA firmware loading from"
253 depends on FSL_LS_PPA && CHAIN_OF_TRUST
Sumit Garg666bbd02017-08-16 07:13:28 -0400254 default 0x60680000 if SYS_LS_PPA_FW_IN_XIP && ARCH_LS1043A
255 default 0x40680000 if SYS_LS_PPA_FW_IN_XIP && ARCH_LS1046A
256 default 0x40680000 if SYS_LS_PPA_FW_IN_XIP && ARCH_LS1012A
Udit Agarwalc83ea8a2017-08-16 07:13:29 -0400257 default 0x20680000 if SYS_LS_PPA_FW_IN_XIP && QSPI_BOOT && ARCH_LS2080A
258 default 0x580680000 if SYS_LS_PPA_FW_IN_XIP && ARCH_LS2080A
Udit Agarwal09fd5792017-11-22 09:01:26 +0530259 default 0x20680000 if SYS_LS_PPA_FW_IN_XIP && ARCH_LS1088A
Sumit Garg666bbd02017-08-16 07:13:28 -0400260 default 0x680000 if SYS_LS_PPA_FW_IN_MMC
261 default 0x680000 if SYS_LS_PPA_FW_IN_NAND
Vinitha Pillai-B57223a4b3ded2017-03-23 13:48:14 +0530262 help
263 If the PPA header firmware locate at XIP flash, such as NOR or
264 QSPI flash, this address is a directly memory-mapped.
265 If it is in a serial accessed flash, such as NAND and SD
266 card, it is a byte offset.
267
Sumit Garg8fddf752017-04-20 05:09:11 +0530268config LS_PPA_ESBC_HDR_SIZE
269 hex "Length of PPA ESBC header"
270 depends on FSL_LS_PPA && CHAIN_OF_TRUST && !SYS_LS_PPA_FW_IN_XIP
271 default 0x2000
272 help
273 Length (in bytes) of PPA ESBC header to be copied from MMC/SD or
274 NAND to memory to validate PPA image.
275
macro.wave.z@gmail.comec2d7ed2016-12-08 11:58:21 +0800276endmenu
277
Ran Wange64f7472017-09-04 18:46:50 +0800278config SYS_FSL_ERRATUM_A008997
279 bool "Workaround for USB PHY erratum A008997"
280
Ran Wang3ba69482017-09-04 18:46:51 +0800281config SYS_FSL_ERRATUM_A009007
282 bool
283 help
284 Workaround for USB PHY erratum A009007
285
Ran Wangb358b7b2017-09-04 18:46:48 +0800286config SYS_FSL_ERRATUM_A009008
287 bool "Workaround for USB PHY erratum A009008"
288
Ran Wang9e8fabc2017-09-04 18:46:49 +0800289config SYS_FSL_ERRATUM_A009798
290 bool "Workaround for USB PHY erratum A009798"
291
York Sun149eb332016-09-26 08:09:27 -0700292config SYS_FSL_ERRATUM_A010315
293 bool "Workaround for PCIe erratum A010315"
Hou Zhiqiangc06b30a2016-09-29 12:42:44 +0800294
295config SYS_FSL_ERRATUM_A010539
296 bool "Workaround for PIN MUX erratum A010539"
York Sun4dd8c612016-10-04 14:31:48 -0700297
York Sunf188d222016-10-04 14:45:01 -0700298config MAX_CPUS
299 int "Maximum number of CPUs permitted for Layerscape"
300 default 4 if ARCH_LS1043A
301 default 4 if ARCH_LS1046A
302 default 16 if ARCH_LS2080A
Ashish Kumarb25faa22017-08-31 16:12:53 +0530303 default 8 if ARCH_LS1088A
York Sunf188d222016-10-04 14:45:01 -0700304 default 1
305 help
306 Set this number to the maximum number of possible CPUs in the SoC.
307 SoCs may have multiple clusters with each cluster may have multiple
308 ports. If some ports are reserved but higher ports are used for
309 cores, count the reserved ports. This will allocate enough memory
310 in spin table to properly handle all cores.
311
York Sun728e7002016-12-02 09:32:35 -0800312config SECURE_BOOT
York Sun8a3d8ed2017-01-04 10:32:08 -0800313 bool "Secure Boot"
York Sun728e7002016-12-02 09:32:35 -0800314 help
315 Enable Freescale Secure Boot feature
316
Yuan Yao52ae4fd2016-12-01 10:13:52 +0800317config QSPI_AHB_INIT
318 bool "Init the QSPI AHB bus"
319 help
320 The default setting for QSPI AHB bus just support 3bytes addressing.
321 But some QSPI flash size up to 64MBytes, so initialize the QSPI AHB
322 bus for those flashes to support the full QSPI flash size.
323
Ashish Kumar11234062017-08-11 11:09:14 +0530324config SYS_CCI400_OFFSET
325 hex "Offset for CCI400 base"
326 depends on SYS_FSL_HAS_CCI400
327 default 0x3090000 if ARCH_LS1088A
328 default 0x180000 if FSL_LSCH2
329 help
330 Offset for CCI400 base
331 CCI400 base addr = CCSRBAR + CCI400_OFFSET
332
York Sune7310a32016-10-04 14:45:54 -0700333config SYS_FSL_IFC_BANK_COUNT
334 int "Maximum banks of Integrated flash controller"
Ashish Kumarb25faa22017-08-31 16:12:53 +0530335 depends on ARCH_LS1043A || ARCH_LS1046A || ARCH_LS2080A || ARCH_LS1088A
York Sune7310a32016-10-04 14:45:54 -0700336 default 4 if ARCH_LS1043A
337 default 4 if ARCH_LS1046A
Ashish Kumarb25faa22017-08-31 16:12:53 +0530338 default 8 if ARCH_LS2080A || ARCH_LS1088A
York Sune7310a32016-10-04 14:45:54 -0700339
Ashish Kumar11234062017-08-11 11:09:14 +0530340config SYS_FSL_HAS_CCI400
341 bool
342
Ashish Kumar97393d62017-08-18 10:54:36 +0530343config SYS_FSL_HAS_CCN504
344 bool
345
York Sun0dc9abb2016-10-04 14:46:50 -0700346config SYS_FSL_HAS_DP_DDR
347 bool
348
York Sun6b62ef02016-10-04 18:01:34 -0700349config SYS_FSL_SRDS_1
350 bool
351
352config SYS_FSL_SRDS_2
353 bool
354
355config SYS_HAS_SERDES
356 bool
357
Ashish kumar76bd6ce2017-04-07 11:40:32 +0530358config FSL_TZASC_1
359 bool
360
361config FSL_TZASC_2
362 bool
363
York Sun4dd8c612016-10-04 14:31:48 -0700364endmenu
York Sun1dc61ca2016-12-28 08:43:41 -0800365
Hou Zhiqiang3f91cda2017-01-10 16:44:15 +0800366menu "Layerscape clock tree configuration"
367 depends on FSL_LSCH2 || FSL_LSCH3
368
369config SYS_FSL_CLK
370 bool "Enable clock tree initialization"
371 default y
372
373config CLUSTER_CLK_FREQ
374 int "Reference clock of core cluster"
375 depends on ARCH_LS1012A
376 default 100000000
377 help
378 This number is the reference clock frequency of core PLL.
379 For most platforms, the core PLL and Platform PLL have the same
380 reference clock, but for some platforms, LS1012A for instance,
381 they are provided sepatately.
382
383config SYS_FSL_PCLK_DIV
384 int "Platform clock divider"
385 default 1 if ARCH_LS1043A
386 default 1 if ARCH_LS1046A
Ashish Kumarb25faa22017-08-31 16:12:53 +0530387 default 1 if ARCH_LS1088A
Hou Zhiqiang3f91cda2017-01-10 16:44:15 +0800388 default 2
389 help
390 This is the divider that is used to derive Platform clock from
391 Platform PLL, in another word:
392 Platform_clk = Platform_PLL_freq / this_divider
393
394config SYS_FSL_DSPI_CLK_DIV
395 int "DSPI clock divider"
396 default 1 if ARCH_LS1043A
397 default 2
398 help
399 This is the divider that is used to derive DSPI clock from Platform
Hou Zhiqiang0c8fcb62017-07-03 18:37:11 +0800400 clock, in another word DSPI_clk = Platform_clk / this_divider.
Hou Zhiqiang3f91cda2017-01-10 16:44:15 +0800401
402config SYS_FSL_DUART_CLK_DIV
403 int "DUART clock divider"
404 default 1 if ARCH_LS1043A
405 default 2
406 help
407 This is the divider that is used to derive DUART clock from Platform
408 clock, in another word DUART_clk = Platform_clk / this_divider.
409
410config SYS_FSL_I2C_CLK_DIV
411 int "I2C clock divider"
412 default 1 if ARCH_LS1043A
413 default 2
414 help
415 This is the divider that is used to derive I2C clock from Platform
416 clock, in another word I2C_clk = Platform_clk / this_divider.
417
418config SYS_FSL_IFC_CLK_DIV
419 int "IFC clock divider"
420 default 1 if ARCH_LS1043A
421 default 2
422 help
423 This is the divider that is used to derive IFC clock from Platform
424 clock, in another word IFC_clk = Platform_clk / this_divider.
425
426config SYS_FSL_LPUART_CLK_DIV
427 int "LPUART clock divider"
428 default 1 if ARCH_LS1043A
429 default 2
430 help
431 This is the divider that is used to derive LPUART clock from Platform
432 clock, in another word LPUART_clk = Platform_clk / this_divider.
433
434config SYS_FSL_SDHC_CLK_DIV
435 int "SDHC clock divider"
436 default 1 if ARCH_LS1043A
437 default 1 if ARCH_LS1012A
438 default 2
439 help
440 This is the divider that is used to derive SDHC clock from Platform
441 clock, in another word SDHC_clk = Platform_clk / this_divider.
442endmenu
443
York Sund6964b32017-03-06 09:02:24 -0800444config RESV_RAM
445 bool
446 help
447 Reserve memory from the top, tracked by gd->arch.resv_ram. This
448 reserved RAM can be used by special driver that resides in memory
449 after U-Boot exits. It's up to implementation to allocate and allow
450 access to this reserved memory. For example, the reserved RAM can
451 be at the high end of physical memory. The reserve RAM may be
452 excluded from memory bank(s) passed to OS, or marked as reserved.
453
Ashish Kumarec455e22017-08-31 16:37:31 +0530454config SYS_FSL_EC1
455 bool
456 help
457 Ethernet controller 1, this is connected to MAC3.
458 Provides DPAA2 capabilities
459
460config SYS_FSL_EC2
461 bool
462 help
463 Ethernet controller 2, this is connected to MAC4.
464 Provides DPAA2 capabilities
465
York Sun1dc61ca2016-12-28 08:43:41 -0800466config SYS_FSL_ERRATUM_A008336
467 bool
468
469config SYS_FSL_ERRATUM_A008514
470 bool
471
472config SYS_FSL_ERRATUM_A008585
473 bool
474
475config SYS_FSL_ERRATUM_A008850
476 bool
477
Ashish kumar3b52a232017-02-23 16:03:57 +0530478config SYS_FSL_ERRATUM_A009203
479 bool
480
York Sun1dc61ca2016-12-28 08:43:41 -0800481config SYS_FSL_ERRATUM_A009635
482 bool
483
484config SYS_FSL_ERRATUM_A009660
485 bool
486
487config SYS_FSL_ERRATUM_A009929
488 bool
York Sun1a770752017-03-06 09:02:26 -0800489
Ashish Kumarec455e22017-08-31 16:37:31 +0530490
491config SYS_FSL_HAS_RGMII
492 bool
493 depends on SYS_FSL_EC1 || SYS_FSL_EC2
494
495
York Sun1a770752017-03-06 09:02:26 -0800496config SYS_MC_RSV_MEM_ALIGN
497 hex "Management Complex reserved memory alignment"
498 depends on RESV_RAM
Ashish Kumarb0392702017-12-08 11:10:40 +0530499 default 0x20000000 if ARCH_LS2080A || ARCH_LS1088A
York Sun1a770752017-03-06 09:02:26 -0800500 help
501 Reserved memory needs to be aligned for MC to use. Default value
502 is 512MB.
Philipp Tomsich2d6a0cc2017-08-03 23:23:55 +0200503
504config SPL_LDSCRIPT
505 default "arch/arm/cpu/armv8/u-boot-spl.lds" if ARCH_LS1043A || ARCH_LS1046A || ARCH_LS2080A
Ran Wang5959f842017-10-23 10:09:21 +0800506
507config HAS_FSL_XHCI_USB
508 bool
509 default y if ARCH_LS1043A || ARCH_LS1046A
510 help
511 For some SoC(such as LS1043A and LS1046A), USB and QE-HDLC multiplex use
512 pins, select it when the pins are assigned to USB.