blob: 5daf79e919235b6ed978a08d720acf0b4c70690d [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
York Sun4dd8c612016-10-04 14:31:48 -07004 select FSL_LSCH2
York Sunb6fffd82016-10-04 18:03:08 -07005 select SYS_FSL_DDR_BE
York Sunb3d71642016-09-26 08:09:26 -07006 select SYS_FSL_MMDC
York Sun149eb332016-09-26 08:09:27 -07007 select SYS_FSL_ERRATUM_A010315
Simon Glass62adede2017-01-23 13:31:19 -07008 select ARCH_EARLY_INIT_R
Simon Glass7a99a872017-01-23 13:31:20 -07009 select BOARD_EARLY_INIT_F
York Sun149eb332016-09-26 08:09:27 -070010
11config ARCH_LS1043A
York Sunfcd0e742016-10-04 14:31:47 -070012 bool
Hou Zhiqiang4d1525a2017-01-06 17:41:11 +080013 select ARMV8_SET_SMPEN
York Sun4dd8c612016-10-04 14:31:48 -070014 select FSL_LSCH2
York Sund297d392016-12-28 08:43:40 -080015 select SYS_FSL_DDR
York Sunb6fffd82016-10-04 18:03:08 -070016 select SYS_FSL_DDR_BE
17 select SYS_FSL_DDR_VER_50
York Sun1dc61ca2016-12-28 08:43:41 -080018 select SYS_FSL_ERRATUM_A008850
Ran Wange64f7472017-09-04 18:46:50 +080019 select SYS_FSL_ERRATUM_A008997
Ran Wang3ba69482017-09-04 18:46:51 +080020 select SYS_FSL_ERRATUM_A009007
Ran Wangb358b7b2017-09-04 18:46:48 +080021 select SYS_FSL_ERRATUM_A009008
York Sun1dc61ca2016-12-28 08:43:41 -080022 select SYS_FSL_ERRATUM_A009660
23 select SYS_FSL_ERRATUM_A009663
Ran Wang9e8fabc2017-09-04 18:46:49 +080024 select SYS_FSL_ERRATUM_A009798
York Sun1dc61ca2016-12-28 08:43:41 -080025 select SYS_FSL_ERRATUM_A009929
26 select SYS_FSL_ERRATUM_A009942
York Sun149eb332016-09-26 08:09:27 -070027 select SYS_FSL_ERRATUM_A010315
Hou Zhiqiangc06b30a2016-09-29 12:42:44 +080028 select SYS_FSL_ERRATUM_A010539
York Sund297d392016-12-28 08:43:40 -080029 select SYS_FSL_HAS_DDR3
30 select SYS_FSL_HAS_DDR4
Simon Glass62adede2017-01-23 13:31:19 -070031 select ARCH_EARLY_INIT_R
Simon Glass7a99a872017-01-23 13:31:20 -070032 select BOARD_EARLY_INIT_F
Simon Glass0e5faf02017-06-14 21:28:21 -060033 imply SCSI
Simon Glassc88a09a2017-08-04 16:34:34 -060034 imply CMD_PCI
York Sunb3d71642016-09-26 08:09:26 -070035
York Sunbad49842016-09-26 08:09:24 -070036config ARCH_LS1046A
York Sunfcd0e742016-10-04 14:31:47 -070037 bool
Hou Zhiqiang4d1525a2017-01-06 17:41:11 +080038 select ARMV8_SET_SMPEN
York Sun4dd8c612016-10-04 14:31:48 -070039 select FSL_LSCH2
York Sund297d392016-12-28 08:43:40 -080040 select SYS_FSL_DDR
York Sunb6fffd82016-10-04 18:03:08 -070041 select SYS_FSL_DDR_BE
York Sunb6fffd82016-10-04 18:03:08 -070042 select SYS_FSL_DDR_VER_50
York Sunf195cf72017-01-27 09:57:31 -080043 select SYS_FSL_ERRATUM_A008336
York Sun1dc61ca2016-12-28 08:43:41 -080044 select SYS_FSL_ERRATUM_A008511
Shengzhou Liua7c37c62017-03-23 18:14:40 +080045 select SYS_FSL_ERRATUM_A008850
Ran Wange64f7472017-09-04 18:46:50 +080046 select SYS_FSL_ERRATUM_A008997
Ran Wang3ba69482017-09-04 18:46:51 +080047 select SYS_FSL_ERRATUM_A009007
Ran Wangb358b7b2017-09-04 18:46:48 +080048 select SYS_FSL_ERRATUM_A009008
Ran Wang9e8fabc2017-09-04 18:46:49 +080049 select SYS_FSL_ERRATUM_A009798
York Sun1dc61ca2016-12-28 08:43:41 -080050 select SYS_FSL_ERRATUM_A009801
51 select SYS_FSL_ERRATUM_A009803
52 select SYS_FSL_ERRATUM_A009942
53 select SYS_FSL_ERRATUM_A010165
Hou Zhiqiangc06b30a2016-09-29 12:42:44 +080054 select SYS_FSL_ERRATUM_A010539
York Sund297d392016-12-28 08:43:40 -080055 select SYS_FSL_HAS_DDR4
York Sun6b62ef02016-10-04 18:01:34 -070056 select SYS_FSL_SRDS_2
Simon Glass62adede2017-01-23 13:31:19 -070057 select ARCH_EARLY_INIT_R
Simon Glass7a99a872017-01-23 13:31:20 -070058 select BOARD_EARLY_INIT_F
Simon Glass0e5faf02017-06-14 21:28:21 -060059 imply SCSI
York Sunb3d71642016-09-26 08:09:26 -070060
Ashish Kumarb25faa22017-08-31 16:12:53 +053061config ARCH_LS1088A
62 bool
63 select ARMV8_SET_SMPEN
64 select FSL_LSCH3
65 select SYS_FSL_DDR
66 select SYS_FSL_DDR_LE
67 select SYS_FSL_DDR_VER_50
Ashish Kumarec455e22017-08-31 16:37:31 +053068 select SYS_FSL_EC1
69 select SYS_FSL_EC2
Ashish Kumarb25faa22017-08-31 16:12:53 +053070 select SYS_FSL_ERRATUM_A009803
71 select SYS_FSL_ERRATUM_A009942
72 select SYS_FSL_ERRATUM_A010165
73 select SYS_FSL_ERRATUM_A008511
74 select SYS_FSL_ERRATUM_A008850
Ran Wangef277072017-09-22 15:21:34 +080075 select SYS_FSL_ERRATUM_A009007
Ashish Kumarb25faa22017-08-31 16:12:53 +053076 select SYS_FSL_HAS_CCI400
77 select SYS_FSL_HAS_DDR4
Ashish Kumarec455e22017-08-31 16:37:31 +053078 select SYS_FSL_HAS_RGMII
Ashish Kumarb25faa22017-08-31 16:12:53 +053079 select SYS_FSL_HAS_SEC
80 select SYS_FSL_SEC_COMPAT_5
81 select SYS_FSL_SEC_LE
82 select SYS_FSL_SRDS_1
83 select SYS_FSL_SRDS_2
84 select FSL_TZASC_1
85 select ARCH_EARLY_INIT_R
86 select BOARD_EARLY_INIT_F
Ashish Kumara179e562017-11-02 09:50:47 +053087 imply SCSI
Ashish Kumarb25faa22017-08-31 16:12:53 +053088
York Sunfcd0e742016-10-04 14:31:47 -070089config ARCH_LS2080A
90 bool
Hou Zhiqiang4d1525a2017-01-06 17:41:11 +080091 select ARMV8_SET_SMPEN
Tom Rinibacb52c2017-03-07 07:13:42 -050092 select ARM_ERRATA_826974
93 select ARM_ERRATA_828024
94 select ARM_ERRATA_829520
95 select ARM_ERRATA_833471
York Sun4dd8c612016-10-04 14:31:48 -070096 select FSL_LSCH3
York Sund297d392016-12-28 08:43:40 -080097 select SYS_FSL_DDR
York Sunb6fffd82016-10-04 18:03:08 -070098 select SYS_FSL_DDR_LE
99 select SYS_FSL_DDR_VER_50
Ashish Kumar97393d62017-08-18 10:54:36 +0530100 select SYS_FSL_HAS_CCN504
York Sun6b62ef02016-10-04 18:01:34 -0700101 select SYS_FSL_HAS_DP_DDR
York Sun92c36e22016-12-28 08:43:30 -0800102 select SYS_FSL_HAS_SEC
York Sund297d392016-12-28 08:43:40 -0800103 select SYS_FSL_HAS_DDR4
York Sun92c36e22016-12-28 08:43:30 -0800104 select SYS_FSL_SEC_COMPAT_5
York Sunfa4199422016-12-28 08:43:31 -0800105 select SYS_FSL_SEC_LE
York Sun6b62ef02016-10-04 18:01:34 -0700106 select SYS_FSL_SRDS_2
Ashish kumar76bd6ce2017-04-07 11:40:32 +0530107 select FSL_TZASC_1
108 select FSL_TZASC_2
York Sun1dc61ca2016-12-28 08:43:41 -0800109 select SYS_FSL_ERRATUM_A008336
110 select SYS_FSL_ERRATUM_A008511
111 select SYS_FSL_ERRATUM_A008514
112 select SYS_FSL_ERRATUM_A008585
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
York Sun1dc61ca2016-12-28 08:43:41 -0800116 select SYS_FSL_ERRATUM_A009635
117 select SYS_FSL_ERRATUM_A009663
Ran Wang9e8fabc2017-09-04 18:46:49 +0800118 select SYS_FSL_ERRATUM_A009798
York Sun1dc61ca2016-12-28 08:43:41 -0800119 select SYS_FSL_ERRATUM_A009801
120 select SYS_FSL_ERRATUM_A009803
121 select SYS_FSL_ERRATUM_A009942
122 select SYS_FSL_ERRATUM_A010165
Ashish kumar3b52a232017-02-23 16:03:57 +0530123 select SYS_FSL_ERRATUM_A009203
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
York Sun4dd8c612016-10-04 14:31:48 -0700126
127config FSL_LSCH2
128 bool
Ashish Kumar11234062017-08-11 11:09:14 +0530129 select SYS_FSL_HAS_CCI400
York Sun92c36e22016-12-28 08:43:30 -0800130 select SYS_FSL_HAS_SEC
131 select SYS_FSL_SEC_COMPAT_5
York Sunfa4199422016-12-28 08:43:31 -0800132 select SYS_FSL_SEC_BE
York Sun6b62ef02016-10-04 18:01:34 -0700133 select SYS_FSL_SRDS_1
134 select SYS_HAS_SERDES
York Sun4dd8c612016-10-04 14:31:48 -0700135
136config FSL_LSCH3
137 bool
York Sun6b62ef02016-10-04 18:01:34 -0700138 select SYS_FSL_SRDS_1
139 select SYS_HAS_SERDES
York Sun4dd8c612016-10-04 14:31:48 -0700140
York Sun6c089742017-03-06 09:02:25 -0800141config FSL_MC_ENET
142 bool "Management Complex network"
Ashish Kumarb25faa22017-08-31 16:12:53 +0530143 depends on ARCH_LS2080A || ARCH_LS1088A
York Sun6c089742017-03-06 09:02:25 -0800144 default y
145 select RESV_RAM
146 help
147 Enable Management Complex (MC) network
148
York Sun4dd8c612016-10-04 14:31:48 -0700149menu "Layerscape architecture"
150 depends on FSL_LSCH2 || FSL_LSCH3
York Sunfcd0e742016-10-04 14:31:47 -0700151
Hou Zhiqiangd553bf22016-12-13 14:54:24 +0800152config FSL_PCIE_COMPAT
153 string "PCIe compatible of Kernel DT"
154 depends on PCIE_LAYERSCAPE
155 default "fsl,ls1012a-pcie" if ARCH_LS1012A
156 default "fsl,ls1043a-pcie" if ARCH_LS1043A
157 default "fsl,ls1046a-pcie" if ARCH_LS1046A
158 default "fsl,ls2080a-pcie" if ARCH_LS2080A
Ashish Kumarb25faa22017-08-31 16:12:53 +0530159 default "fsl,ls1088a-pcie" if ARCH_LS1088A
Hou Zhiqiangd553bf22016-12-13 14:54:24 +0800160 help
161 This compatible is used to find pci controller node in Kernel DT
162 to complete fixup.
163
Wenbin Songa8f57a92017-01-17 18:31:15 +0800164config HAS_FEATURE_GIC64K_ALIGN
165 bool
166 default y if ARCH_LS1043A
167
Wenbin Songc6bc7c02017-01-17 18:31:16 +0800168config HAS_FEATURE_ENHANCED_MSI
169 bool
170 default y if ARCH_LS1043A
Wenbin Songa8f57a92017-01-17 18:31:15 +0800171
macro.wave.z@gmail.comec2d7ed2016-12-08 11:58:21 +0800172menu "Layerscape PPA"
173config FSL_LS_PPA
174 bool "FSL Layerscape PPA firmware support"
macro.wave.z@gmail.com01bd3342016-12-08 11:58:22 +0800175 depends on !ARMV8_PSCI
Hou Zhiqiangbff56d52017-01-16 17:31:49 +0800176 select ARMV8_SEC_FIRMWARE_SUPPORT
Hou Zhiqiang6be115d2017-01-16 17:31:48 +0800177 select SEC_FIRMWARE_ARMV8_PSCI
Hou Zhiqiangbff56d52017-01-16 17:31:49 +0800178 select ARMV8_SEC_FIRMWARE_ERET_ADDR_REVERT if FSL_LSCH2
macro.wave.z@gmail.comec2d7ed2016-12-08 11:58:21 +0800179 help
180 The FSL Primary Protected Application (PPA) is a software component
181 which is loaded during boot stage, and then remains resident in RAM
182 and runs in the TrustZone after boot.
183 Say y to enable it.
York Sunf2aaf842017-05-15 08:52:00 -0700184
185config SPL_FSL_LS_PPA
186 bool "FSL Layerscape PPA firmware support for SPL build"
187 depends on !ARMV8_PSCI
188 select SPL_ARMV8_SEC_FIRMWARE_SUPPORT
189 select SEC_FIRMWARE_ARMV8_PSCI
190 select ARMV8_SEC_FIRMWARE_ERET_ADDR_REVERT if FSL_LSCH2
191 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. This is to load PPA during SPL
195 stage instead of the RAM version of U-Boot. Once PPA is initialized,
196 the rest of U-Boot (including RAM version) runs at EL2.
Hou Zhiqiangbff56d52017-01-16 17:31:49 +0800197choice
198 prompt "FSL Layerscape PPA firmware loading-media select"
199 depends on FSL_LS_PPA
Hou Zhiqiangbd6e2cd2017-03-17 16:12:33 +0800200 default SYS_LS_PPA_FW_IN_MMC if SD_BOOT
201 default SYS_LS_PPA_FW_IN_NAND if NAND_BOOT
Hou Zhiqiangbff56d52017-01-16 17:31:49 +0800202 default SYS_LS_PPA_FW_IN_XIP
203
204config SYS_LS_PPA_FW_IN_XIP
205 bool "XIP"
206 help
207 Say Y here if the PPA firmware locate at XIP flash, such
208 as NOR or QSPI flash.
209
Hou Zhiqiangbd6e2cd2017-03-17 16:12:33 +0800210config SYS_LS_PPA_FW_IN_MMC
211 bool "eMMC or SD Card"
212 help
213 Say Y here if the PPA firmware locate at eMMC/SD card.
214
215config SYS_LS_PPA_FW_IN_NAND
216 bool "NAND"
217 help
218 Say Y here if the PPA firmware locate at NAND flash.
219
Hou Zhiqiangbff56d52017-01-16 17:31:49 +0800220endchoice
221
222config SYS_LS_PPA_FW_ADDR
223 hex "Address of PPA firmware loading from"
224 depends on FSL_LS_PPA
Priyanka Jain7d05b992017-04-28 10:41:35 +0530225 default 0x20400000 if SYS_LS_PPA_FW_IN_XIP && QSPI_BOOT && ARCH_LS2080A
Alison Wangb5b8bfa2017-05-16 10:45:58 +0800226 default 0x40400000 if SYS_LS_PPA_FW_IN_XIP && QSPI_BOOT
Santan Kumar0f0173d2017-04-28 12:47:24 +0530227 default 0x580400000 if SYS_LS_PPA_FW_IN_XIP && ARCH_LS2080A
Ashish Kumar227b4bc2017-08-31 16:12:54 +0530228 default 0x20400000 if SYS_LS_PPA_FW_IN_XIP && ARCH_LS1088A
Alison Wangb5b8bfa2017-05-16 10:45:58 +0800229 default 0x60400000 if SYS_LS_PPA_FW_IN_XIP
230 default 0x400000 if SYS_LS_PPA_FW_IN_MMC
231 default 0x400000 if SYS_LS_PPA_FW_IN_NAND
Hou Zhiqiangbd6e2cd2017-03-17 16:12:33 +0800232
Hou Zhiqiangbff56d52017-01-16 17:31:49 +0800233 help
234 If the PPA firmware locate at XIP flash, such as NOR or
235 QSPI flash, this address is a directly memory-mapped.
236 If it is in a serial accessed flash, such as NAND and SD
237 card, it is a byte offset.
Vinitha Pillai-B57223a4b3ded2017-03-23 13:48:14 +0530238
239config SYS_LS_PPA_ESBC_ADDR
240 hex "hdr address of PPA firmware loading from"
241 depends on FSL_LS_PPA && CHAIN_OF_TRUST
Sumit Garg666bbd02017-08-16 07:13:28 -0400242 default 0x60680000 if SYS_LS_PPA_FW_IN_XIP && ARCH_LS1043A
243 default 0x40680000 if SYS_LS_PPA_FW_IN_XIP && ARCH_LS1046A
244 default 0x40680000 if SYS_LS_PPA_FW_IN_XIP && ARCH_LS1012A
Udit Agarwalc83ea8a2017-08-16 07:13:29 -0400245 default 0x20680000 if SYS_LS_PPA_FW_IN_XIP && QSPI_BOOT && ARCH_LS2080A
246 default 0x580680000 if SYS_LS_PPA_FW_IN_XIP && ARCH_LS2080A
Sumit Garg666bbd02017-08-16 07:13:28 -0400247 default 0x680000 if SYS_LS_PPA_FW_IN_MMC
248 default 0x680000 if SYS_LS_PPA_FW_IN_NAND
Vinitha Pillai-B57223a4b3ded2017-03-23 13:48:14 +0530249 help
250 If the PPA header firmware locate at XIP flash, such as NOR or
251 QSPI flash, this address is a directly memory-mapped.
252 If it is in a serial accessed flash, such as NAND and SD
253 card, it is a byte offset.
254
Sumit Garg8fddf752017-04-20 05:09:11 +0530255config LS_PPA_ESBC_HDR_SIZE
256 hex "Length of PPA ESBC header"
257 depends on FSL_LS_PPA && CHAIN_OF_TRUST && !SYS_LS_PPA_FW_IN_XIP
258 default 0x2000
259 help
260 Length (in bytes) of PPA ESBC header to be copied from MMC/SD or
261 NAND to memory to validate PPA image.
262
macro.wave.z@gmail.comec2d7ed2016-12-08 11:58:21 +0800263endmenu
264
Ran Wange64f7472017-09-04 18:46:50 +0800265config SYS_FSL_ERRATUM_A008997
266 bool "Workaround for USB PHY erratum A008997"
267
Ran Wang3ba69482017-09-04 18:46:51 +0800268config SYS_FSL_ERRATUM_A009007
269 bool
270 help
271 Workaround for USB PHY erratum A009007
272
Ran Wangb358b7b2017-09-04 18:46:48 +0800273config SYS_FSL_ERRATUM_A009008
274 bool "Workaround for USB PHY erratum A009008"
275
Ran Wang9e8fabc2017-09-04 18:46:49 +0800276config SYS_FSL_ERRATUM_A009798
277 bool "Workaround for USB PHY erratum A009798"
278
York Sun149eb332016-09-26 08:09:27 -0700279config SYS_FSL_ERRATUM_A010315
280 bool "Workaround for PCIe erratum A010315"
Hou Zhiqiangc06b30a2016-09-29 12:42:44 +0800281
282config SYS_FSL_ERRATUM_A010539
283 bool "Workaround for PIN MUX erratum A010539"
York Sun4dd8c612016-10-04 14:31:48 -0700284
York Sunf188d222016-10-04 14:45:01 -0700285config MAX_CPUS
286 int "Maximum number of CPUs permitted for Layerscape"
287 default 4 if ARCH_LS1043A
288 default 4 if ARCH_LS1046A
289 default 16 if ARCH_LS2080A
Ashish Kumarb25faa22017-08-31 16:12:53 +0530290 default 8 if ARCH_LS1088A
York Sunf188d222016-10-04 14:45:01 -0700291 default 1
292 help
293 Set this number to the maximum number of possible CPUs in the SoC.
294 SoCs may have multiple clusters with each cluster may have multiple
295 ports. If some ports are reserved but higher ports are used for
296 cores, count the reserved ports. This will allocate enough memory
297 in spin table to properly handle all cores.
298
York Sun728e7002016-12-02 09:32:35 -0800299config SECURE_BOOT
York Sun8a3d8ed2017-01-04 10:32:08 -0800300 bool "Secure Boot"
York Sun728e7002016-12-02 09:32:35 -0800301 help
302 Enable Freescale Secure Boot feature
303
Yuan Yao52ae4fd2016-12-01 10:13:52 +0800304config QSPI_AHB_INIT
305 bool "Init the QSPI AHB bus"
306 help
307 The default setting for QSPI AHB bus just support 3bytes addressing.
308 But some QSPI flash size up to 64MBytes, so initialize the QSPI AHB
309 bus for those flashes to support the full QSPI flash size.
310
Ashish Kumar11234062017-08-11 11:09:14 +0530311config SYS_CCI400_OFFSET
312 hex "Offset for CCI400 base"
313 depends on SYS_FSL_HAS_CCI400
314 default 0x3090000 if ARCH_LS1088A
315 default 0x180000 if FSL_LSCH2
316 help
317 Offset for CCI400 base
318 CCI400 base addr = CCSRBAR + CCI400_OFFSET
319
York Sune7310a32016-10-04 14:45:54 -0700320config SYS_FSL_IFC_BANK_COUNT
321 int "Maximum banks of Integrated flash controller"
Ashish Kumarb25faa22017-08-31 16:12:53 +0530322 depends on ARCH_LS1043A || ARCH_LS1046A || ARCH_LS2080A || ARCH_LS1088A
York Sune7310a32016-10-04 14:45:54 -0700323 default 4 if ARCH_LS1043A
324 default 4 if ARCH_LS1046A
Ashish Kumarb25faa22017-08-31 16:12:53 +0530325 default 8 if ARCH_LS2080A || ARCH_LS1088A
York Sune7310a32016-10-04 14:45:54 -0700326
Ashish Kumar11234062017-08-11 11:09:14 +0530327config SYS_FSL_HAS_CCI400
328 bool
329
Ashish Kumar97393d62017-08-18 10:54:36 +0530330config SYS_FSL_HAS_CCN504
331 bool
332
York Sun0dc9abb2016-10-04 14:46:50 -0700333config SYS_FSL_HAS_DP_DDR
334 bool
335
York Sun6b62ef02016-10-04 18:01:34 -0700336config SYS_FSL_SRDS_1
337 bool
338
339config SYS_FSL_SRDS_2
340 bool
341
342config SYS_HAS_SERDES
343 bool
344
Ashish kumar76bd6ce2017-04-07 11:40:32 +0530345config FSL_TZASC_1
346 bool
347
348config FSL_TZASC_2
349 bool
350
York Sun4dd8c612016-10-04 14:31:48 -0700351endmenu
York Sun1dc61ca2016-12-28 08:43:41 -0800352
Hou Zhiqiang3f91cda2017-01-10 16:44:15 +0800353menu "Layerscape clock tree configuration"
354 depends on FSL_LSCH2 || FSL_LSCH3
355
356config SYS_FSL_CLK
357 bool "Enable clock tree initialization"
358 default y
359
360config CLUSTER_CLK_FREQ
361 int "Reference clock of core cluster"
362 depends on ARCH_LS1012A
363 default 100000000
364 help
365 This number is the reference clock frequency of core PLL.
366 For most platforms, the core PLL and Platform PLL have the same
367 reference clock, but for some platforms, LS1012A for instance,
368 they are provided sepatately.
369
370config SYS_FSL_PCLK_DIV
371 int "Platform clock divider"
372 default 1 if ARCH_LS1043A
373 default 1 if ARCH_LS1046A
Ashish Kumarb25faa22017-08-31 16:12:53 +0530374 default 1 if ARCH_LS1088A
Hou Zhiqiang3f91cda2017-01-10 16:44:15 +0800375 default 2
376 help
377 This is the divider that is used to derive Platform clock from
378 Platform PLL, in another word:
379 Platform_clk = Platform_PLL_freq / this_divider
380
381config SYS_FSL_DSPI_CLK_DIV
382 int "DSPI clock divider"
383 default 1 if ARCH_LS1043A
384 default 2
385 help
386 This is the divider that is used to derive DSPI clock from Platform
Hou Zhiqiang0c8fcb62017-07-03 18:37:11 +0800387 clock, in another word DSPI_clk = Platform_clk / this_divider.
Hou Zhiqiang3f91cda2017-01-10 16:44:15 +0800388
389config SYS_FSL_DUART_CLK_DIV
390 int "DUART clock divider"
391 default 1 if ARCH_LS1043A
392 default 2
393 help
394 This is the divider that is used to derive DUART clock from Platform
395 clock, in another word DUART_clk = Platform_clk / this_divider.
396
397config SYS_FSL_I2C_CLK_DIV
398 int "I2C clock divider"
399 default 1 if ARCH_LS1043A
400 default 2
401 help
402 This is the divider that is used to derive I2C clock from Platform
403 clock, in another word I2C_clk = Platform_clk / this_divider.
404
405config SYS_FSL_IFC_CLK_DIV
406 int "IFC clock divider"
407 default 1 if ARCH_LS1043A
408 default 2
409 help
410 This is the divider that is used to derive IFC clock from Platform
411 clock, in another word IFC_clk = Platform_clk / this_divider.
412
413config SYS_FSL_LPUART_CLK_DIV
414 int "LPUART clock divider"
415 default 1 if ARCH_LS1043A
416 default 2
417 help
418 This is the divider that is used to derive LPUART clock from Platform
419 clock, in another word LPUART_clk = Platform_clk / this_divider.
420
421config SYS_FSL_SDHC_CLK_DIV
422 int "SDHC clock divider"
423 default 1 if ARCH_LS1043A
424 default 1 if ARCH_LS1012A
425 default 2
426 help
427 This is the divider that is used to derive SDHC clock from Platform
428 clock, in another word SDHC_clk = Platform_clk / this_divider.
429endmenu
430
York Sund6964b32017-03-06 09:02:24 -0800431config RESV_RAM
432 bool
433 help
434 Reserve memory from the top, tracked by gd->arch.resv_ram. This
435 reserved RAM can be used by special driver that resides in memory
436 after U-Boot exits. It's up to implementation to allocate and allow
437 access to this reserved memory. For example, the reserved RAM can
438 be at the high end of physical memory. The reserve RAM may be
439 excluded from memory bank(s) passed to OS, or marked as reserved.
440
Ashish Kumarec455e22017-08-31 16:37:31 +0530441config SYS_FSL_EC1
442 bool
443 help
444 Ethernet controller 1, this is connected to MAC3.
445 Provides DPAA2 capabilities
446
447config SYS_FSL_EC2
448 bool
449 help
450 Ethernet controller 2, this is connected to MAC4.
451 Provides DPAA2 capabilities
452
York Sun1dc61ca2016-12-28 08:43:41 -0800453config SYS_FSL_ERRATUM_A008336
454 bool
455
456config SYS_FSL_ERRATUM_A008514
457 bool
458
459config SYS_FSL_ERRATUM_A008585
460 bool
461
462config SYS_FSL_ERRATUM_A008850
463 bool
464
Ashish kumar3b52a232017-02-23 16:03:57 +0530465config SYS_FSL_ERRATUM_A009203
466 bool
467
York Sun1dc61ca2016-12-28 08:43:41 -0800468config SYS_FSL_ERRATUM_A009635
469 bool
470
471config SYS_FSL_ERRATUM_A009660
472 bool
473
474config SYS_FSL_ERRATUM_A009929
475 bool
York Sun1a770752017-03-06 09:02:26 -0800476
Ashish Kumarec455e22017-08-31 16:37:31 +0530477
478config SYS_FSL_HAS_RGMII
479 bool
480 depends on SYS_FSL_EC1 || SYS_FSL_EC2
481
482
York Sun1a770752017-03-06 09:02:26 -0800483config SYS_MC_RSV_MEM_ALIGN
484 hex "Management Complex reserved memory alignment"
485 depends on RESV_RAM
Ashish Kumarb25faa22017-08-31 16:12:53 +0530486 default 0x20000000 if ARCH_LS2080A
487 default 0x70000000 if ARCH_LS1088A
York Sun1a770752017-03-06 09:02:26 -0800488 help
489 Reserved memory needs to be aligned for MC to use. Default value
490 is 512MB.
Philipp Tomsich2d6a0cc2017-08-03 23:23:55 +0200491
492config SPL_LDSCRIPT
493 default "arch/arm/cpu/armv8/u-boot-spl.lds" if ARCH_LS1043A || ARCH_LS1046A || ARCH_LS2080A
Ran Wang5959f842017-10-23 10:09:21 +0800494
495config HAS_FSL_XHCI_USB
496 bool
497 default y if ARCH_LS1043A || ARCH_LS1046A
498 help
499 For some SoC(such as LS1043A and LS1046A), USB and QE-HDLC multiplex use
500 pins, select it when the pins are assigned to USB.