blob: d5f0e559647eb9a9d5cc1dccb31f83b363f16f5c [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
Ran Wang02dc77b2017-11-13 16:14:48 +08008 select SYS_FSL_ERRATUM_A009798
9 select SYS_FSL_ERRATUM_A008997
10 select SYS_FSL_ERRATUM_A009007
11 select SYS_FSL_ERRATUM_A009008
Simon Glass62adede2017-01-23 13:31:19 -070012 select ARCH_EARLY_INIT_R
Simon Glass7a99a872017-01-23 13:31:20 -070013 select BOARD_EARLY_INIT_F
Masahiro Yamadaacede7a2017-12-04 12:37:00 +090014 imply PANIC_HANG
York Sun149eb332016-09-26 08:09:27 -070015
16config ARCH_LS1043A
York Sunfcd0e742016-10-04 14:31:47 -070017 bool
Hou Zhiqiang4d1525a2017-01-06 17:41:11 +080018 select ARMV8_SET_SMPEN
York Sun4dd8c612016-10-04 14:31:48 -070019 select FSL_LSCH2
York Sund297d392016-12-28 08:43:40 -080020 select SYS_FSL_DDR
York Sunb6fffd82016-10-04 18:03:08 -070021 select SYS_FSL_DDR_BE
22 select SYS_FSL_DDR_VER_50
York Sun1dc61ca2016-12-28 08:43:41 -080023 select SYS_FSL_ERRATUM_A008850
Ran Wange64f7472017-09-04 18:46:50 +080024 select SYS_FSL_ERRATUM_A008997
Ran Wang3ba69482017-09-04 18:46:51 +080025 select SYS_FSL_ERRATUM_A009007
Ran Wangb358b7b2017-09-04 18:46:48 +080026 select SYS_FSL_ERRATUM_A009008
York Sun1dc61ca2016-12-28 08:43:41 -080027 select SYS_FSL_ERRATUM_A009660
28 select SYS_FSL_ERRATUM_A009663
Ran Wang9e8fabc2017-09-04 18:46:49 +080029 select SYS_FSL_ERRATUM_A009798
York Sun1dc61ca2016-12-28 08:43:41 -080030 select SYS_FSL_ERRATUM_A009929
31 select SYS_FSL_ERRATUM_A009942
York Sun149eb332016-09-26 08:09:27 -070032 select SYS_FSL_ERRATUM_A010315
Hou Zhiqiangc06b30a2016-09-29 12:42:44 +080033 select SYS_FSL_ERRATUM_A010539
York Sund297d392016-12-28 08:43:40 -080034 select SYS_FSL_HAS_DDR3
35 select SYS_FSL_HAS_DDR4
Simon Glass62adede2017-01-23 13:31:19 -070036 select ARCH_EARLY_INIT_R
Simon Glass7a99a872017-01-23 13:31:20 -070037 select BOARD_EARLY_INIT_F
Simon Glass0e5faf02017-06-14 21:28:21 -060038 imply SCSI
Tuomas Tynkkynenedf9f622017-12-08 15:36:19 +020039 imply SCSI_AHCI
Simon Glassc88a09a2017-08-04 16:34:34 -060040 imply CMD_PCI
York Sunb3d71642016-09-26 08:09:26 -070041
York Sunbad49842016-09-26 08:09:24 -070042config ARCH_LS1046A
York Sunfcd0e742016-10-04 14:31:47 -070043 bool
Hou Zhiqiang4d1525a2017-01-06 17:41:11 +080044 select ARMV8_SET_SMPEN
York Sun4dd8c612016-10-04 14:31:48 -070045 select FSL_LSCH2
York Sund297d392016-12-28 08:43:40 -080046 select SYS_FSL_DDR
York Sunb6fffd82016-10-04 18:03:08 -070047 select SYS_FSL_DDR_BE
York Sunb6fffd82016-10-04 18:03:08 -070048 select SYS_FSL_DDR_VER_50
York Sunf195cf72017-01-27 09:57:31 -080049 select SYS_FSL_ERRATUM_A008336
York Sun1dc61ca2016-12-28 08:43:41 -080050 select SYS_FSL_ERRATUM_A008511
Shengzhou Liua7c37c62017-03-23 18:14:40 +080051 select SYS_FSL_ERRATUM_A008850
Ran Wange64f7472017-09-04 18:46:50 +080052 select SYS_FSL_ERRATUM_A008997
Ran Wang3ba69482017-09-04 18:46:51 +080053 select SYS_FSL_ERRATUM_A009007
Ran Wangb358b7b2017-09-04 18:46:48 +080054 select SYS_FSL_ERRATUM_A009008
Ran Wang9e8fabc2017-09-04 18:46:49 +080055 select SYS_FSL_ERRATUM_A009798
York Sun1dc61ca2016-12-28 08:43:41 -080056 select SYS_FSL_ERRATUM_A009801
57 select SYS_FSL_ERRATUM_A009803
58 select SYS_FSL_ERRATUM_A009942
59 select SYS_FSL_ERRATUM_A010165
Hou Zhiqiangc06b30a2016-09-29 12:42:44 +080060 select SYS_FSL_ERRATUM_A010539
York Sund297d392016-12-28 08:43:40 -080061 select SYS_FSL_HAS_DDR4
York Sun6b62ef02016-10-04 18:01:34 -070062 select SYS_FSL_SRDS_2
Simon Glass62adede2017-01-23 13:31:19 -070063 select ARCH_EARLY_INIT_R
Simon Glass7a99a872017-01-23 13:31:20 -070064 select BOARD_EARLY_INIT_F
Simon Glass0e5faf02017-06-14 21:28:21 -060065 imply SCSI
Tuomas Tynkkynenedf9f622017-12-08 15:36:19 +020066 imply SCSI_AHCI
York Sunb3d71642016-09-26 08:09:26 -070067
Ashish Kumarb25faa22017-08-31 16:12:53 +053068config ARCH_LS1088A
69 bool
70 select ARMV8_SET_SMPEN
71 select FSL_LSCH3
72 select SYS_FSL_DDR
73 select SYS_FSL_DDR_LE
74 select SYS_FSL_DDR_VER_50
Ashish Kumarec455e22017-08-31 16:37:31 +053075 select SYS_FSL_EC1
76 select SYS_FSL_EC2
Ashish Kumarb25faa22017-08-31 16:12:53 +053077 select SYS_FSL_ERRATUM_A009803
78 select SYS_FSL_ERRATUM_A009942
79 select SYS_FSL_ERRATUM_A010165
80 select SYS_FSL_ERRATUM_A008511
81 select SYS_FSL_ERRATUM_A008850
Ran Wangef277072017-09-22 15:21:34 +080082 select SYS_FSL_ERRATUM_A009007
Ashish Kumarb25faa22017-08-31 16:12:53 +053083 select SYS_FSL_HAS_CCI400
84 select SYS_FSL_HAS_DDR4
Ashish Kumarec455e22017-08-31 16:37:31 +053085 select SYS_FSL_HAS_RGMII
Ashish Kumarb25faa22017-08-31 16:12:53 +053086 select SYS_FSL_HAS_SEC
87 select SYS_FSL_SEC_COMPAT_5
88 select SYS_FSL_SEC_LE
89 select SYS_FSL_SRDS_1
90 select SYS_FSL_SRDS_2
91 select FSL_TZASC_1
92 select ARCH_EARLY_INIT_R
93 select BOARD_EARLY_INIT_F
Ashish Kumara179e562017-11-02 09:50:47 +053094 imply SCSI
Masahiro Yamadaacede7a2017-12-04 12:37:00 +090095 imply PANIC_HANG
Ashish Kumarb25faa22017-08-31 16:12:53 +053096
York Sunfcd0e742016-10-04 14:31:47 -070097config ARCH_LS2080A
98 bool
Hou Zhiqiang4d1525a2017-01-06 17:41:11 +080099 select ARMV8_SET_SMPEN
Tom Rinibacb52c2017-03-07 07:13:42 -0500100 select ARM_ERRATA_826974
101 select ARM_ERRATA_828024
102 select ARM_ERRATA_829520
103 select ARM_ERRATA_833471
York Sun4dd8c612016-10-04 14:31:48 -0700104 select FSL_LSCH3
York Sund297d392016-12-28 08:43:40 -0800105 select SYS_FSL_DDR
York Sunb6fffd82016-10-04 18:03:08 -0700106 select SYS_FSL_DDR_LE
107 select SYS_FSL_DDR_VER_50
Ashish Kumar97393d62017-08-18 10:54:36 +0530108 select SYS_FSL_HAS_CCN504
York Sun6b62ef02016-10-04 18:01:34 -0700109 select SYS_FSL_HAS_DP_DDR
York Sun92c36e22016-12-28 08:43:30 -0800110 select SYS_FSL_HAS_SEC
York Sund297d392016-12-28 08:43:40 -0800111 select SYS_FSL_HAS_DDR4
York Sun92c36e22016-12-28 08:43:30 -0800112 select SYS_FSL_SEC_COMPAT_5
York Sunfa4199422016-12-28 08:43:31 -0800113 select SYS_FSL_SEC_LE
York Sun6b62ef02016-10-04 18:01:34 -0700114 select SYS_FSL_SRDS_2
Ashish kumar76bd6ce2017-04-07 11:40:32 +0530115 select FSL_TZASC_1
116 select FSL_TZASC_2
York Sun1dc61ca2016-12-28 08:43:41 -0800117 select SYS_FSL_ERRATUM_A008336
118 select SYS_FSL_ERRATUM_A008511
119 select SYS_FSL_ERRATUM_A008514
120 select SYS_FSL_ERRATUM_A008585
Ran Wange64f7472017-09-04 18:46:50 +0800121 select SYS_FSL_ERRATUM_A008997
Ran Wang3ba69482017-09-04 18:46:51 +0800122 select SYS_FSL_ERRATUM_A009007
Ran Wangb358b7b2017-09-04 18:46:48 +0800123 select SYS_FSL_ERRATUM_A009008
York Sun1dc61ca2016-12-28 08:43:41 -0800124 select SYS_FSL_ERRATUM_A009635
125 select SYS_FSL_ERRATUM_A009663
Ran Wang9e8fabc2017-09-04 18:46:49 +0800126 select SYS_FSL_ERRATUM_A009798
York Sun1dc61ca2016-12-28 08:43:41 -0800127 select SYS_FSL_ERRATUM_A009801
128 select SYS_FSL_ERRATUM_A009803
129 select SYS_FSL_ERRATUM_A009942
130 select SYS_FSL_ERRATUM_A010165
Ashish kumar3b52a232017-02-23 16:03:57 +0530131 select SYS_FSL_ERRATUM_A009203
Simon Glass62adede2017-01-23 13:31:19 -0700132 select ARCH_EARLY_INIT_R
Simon Glass7a99a872017-01-23 13:31:20 -0700133 select BOARD_EARLY_INIT_F
Masahiro Yamadaacede7a2017-12-04 12:37:00 +0900134 imply PANIC_HANG
York Sun4dd8c612016-10-04 14:31:48 -0700135
136config FSL_LSCH2
137 bool
Ashish Kumar11234062017-08-11 11:09:14 +0530138 select SYS_FSL_HAS_CCI400
York Sun92c36e22016-12-28 08:43:30 -0800139 select SYS_FSL_HAS_SEC
140 select SYS_FSL_SEC_COMPAT_5
York Sunfa4199422016-12-28 08:43:31 -0800141 select SYS_FSL_SEC_BE
York Sun6b62ef02016-10-04 18:01:34 -0700142 select SYS_FSL_SRDS_1
143 select SYS_HAS_SERDES
York Sun4dd8c612016-10-04 14:31:48 -0700144
145config FSL_LSCH3
146 bool
York Sun6b62ef02016-10-04 18:01:34 -0700147 select SYS_FSL_SRDS_1
148 select SYS_HAS_SERDES
York Sun4dd8c612016-10-04 14:31:48 -0700149
York Sun6c089742017-03-06 09:02:25 -0800150config FSL_MC_ENET
151 bool "Management Complex network"
Ashish Kumarb25faa22017-08-31 16:12:53 +0530152 depends on ARCH_LS2080A || ARCH_LS1088A
York Sun6c089742017-03-06 09:02:25 -0800153 default y
154 select RESV_RAM
155 help
156 Enable Management Complex (MC) network
157
York Sun4dd8c612016-10-04 14:31:48 -0700158menu "Layerscape architecture"
159 depends on FSL_LSCH2 || FSL_LSCH3
York Sunfcd0e742016-10-04 14:31:47 -0700160
Hou Zhiqiangd553bf22016-12-13 14:54:24 +0800161config FSL_PCIE_COMPAT
162 string "PCIe compatible of Kernel DT"
163 depends on PCIE_LAYERSCAPE
164 default "fsl,ls1012a-pcie" if ARCH_LS1012A
165 default "fsl,ls1043a-pcie" if ARCH_LS1043A
166 default "fsl,ls1046a-pcie" if ARCH_LS1046A
167 default "fsl,ls2080a-pcie" if ARCH_LS2080A
Ashish Kumarb25faa22017-08-31 16:12:53 +0530168 default "fsl,ls1088a-pcie" if ARCH_LS1088A
Hou Zhiqiangd553bf22016-12-13 14:54:24 +0800169 help
170 This compatible is used to find pci controller node in Kernel DT
171 to complete fixup.
172
Wenbin Songa8f57a92017-01-17 18:31:15 +0800173config HAS_FEATURE_GIC64K_ALIGN
174 bool
175 default y if ARCH_LS1043A
176
Wenbin Songc6bc7c02017-01-17 18:31:16 +0800177config HAS_FEATURE_ENHANCED_MSI
178 bool
179 default y if ARCH_LS1043A
Wenbin Songa8f57a92017-01-17 18:31:15 +0800180
macro.wave.z@gmail.comec2d7ed2016-12-08 11:58:21 +0800181menu "Layerscape PPA"
182config FSL_LS_PPA
183 bool "FSL Layerscape PPA firmware support"
macro.wave.z@gmail.com01bd3342016-12-08 11:58:22 +0800184 depends on !ARMV8_PSCI
Hou Zhiqiangbff56d52017-01-16 17:31:49 +0800185 select ARMV8_SEC_FIRMWARE_SUPPORT
Hou Zhiqiang6be115d2017-01-16 17:31:48 +0800186 select SEC_FIRMWARE_ARMV8_PSCI
Hou Zhiqiangbff56d52017-01-16 17:31:49 +0800187 select ARMV8_SEC_FIRMWARE_ERET_ADDR_REVERT if FSL_LSCH2
macro.wave.z@gmail.comec2d7ed2016-12-08 11:58:21 +0800188 help
189 The FSL Primary Protected Application (PPA) is a software component
190 which is loaded during boot stage, and then remains resident in RAM
191 and runs in the TrustZone after boot.
192 Say y to enable it.
York Sunf2aaf842017-05-15 08:52:00 -0700193
194config SPL_FSL_LS_PPA
195 bool "FSL Layerscape PPA firmware support for SPL build"
196 depends on !ARMV8_PSCI
197 select SPL_ARMV8_SEC_FIRMWARE_SUPPORT
198 select SEC_FIRMWARE_ARMV8_PSCI
199 select ARMV8_SEC_FIRMWARE_ERET_ADDR_REVERT if FSL_LSCH2
200 help
201 The FSL Primary Protected Application (PPA) is a software component
202 which is loaded during boot stage, and then remains resident in RAM
203 and runs in the TrustZone after boot. This is to load PPA during SPL
204 stage instead of the RAM version of U-Boot. Once PPA is initialized,
205 the rest of U-Boot (including RAM version) runs at EL2.
Hou Zhiqiangbff56d52017-01-16 17:31:49 +0800206choice
207 prompt "FSL Layerscape PPA firmware loading-media select"
208 depends on FSL_LS_PPA
Hou Zhiqiangbd6e2cd2017-03-17 16:12:33 +0800209 default SYS_LS_PPA_FW_IN_MMC if SD_BOOT
210 default SYS_LS_PPA_FW_IN_NAND if NAND_BOOT
Hou Zhiqiangbff56d52017-01-16 17:31:49 +0800211 default SYS_LS_PPA_FW_IN_XIP
212
213config SYS_LS_PPA_FW_IN_XIP
214 bool "XIP"
215 help
216 Say Y here if the PPA firmware locate at XIP flash, such
217 as NOR or QSPI flash.
218
Hou Zhiqiangbd6e2cd2017-03-17 16:12:33 +0800219config SYS_LS_PPA_FW_IN_MMC
220 bool "eMMC or SD Card"
221 help
222 Say Y here if the PPA firmware locate at eMMC/SD card.
223
224config SYS_LS_PPA_FW_IN_NAND
225 bool "NAND"
226 help
227 Say Y here if the PPA firmware locate at NAND flash.
228
Hou Zhiqiangbff56d52017-01-16 17:31:49 +0800229endchoice
230
231config SYS_LS_PPA_FW_ADDR
232 hex "Address of PPA firmware loading from"
233 depends on FSL_LS_PPA
Priyanka Jain7d05b992017-04-28 10:41:35 +0530234 default 0x20400000 if SYS_LS_PPA_FW_IN_XIP && QSPI_BOOT && ARCH_LS2080A
Alison Wangb5b8bfa2017-05-16 10:45:58 +0800235 default 0x40400000 if SYS_LS_PPA_FW_IN_XIP && QSPI_BOOT
Santan Kumar0f0173d2017-04-28 12:47:24 +0530236 default 0x580400000 if SYS_LS_PPA_FW_IN_XIP && ARCH_LS2080A
Ashish Kumar227b4bc2017-08-31 16:12:54 +0530237 default 0x20400000 if SYS_LS_PPA_FW_IN_XIP && ARCH_LS1088A
Alison Wangb5b8bfa2017-05-16 10:45:58 +0800238 default 0x60400000 if SYS_LS_PPA_FW_IN_XIP
239 default 0x400000 if SYS_LS_PPA_FW_IN_MMC
240 default 0x400000 if SYS_LS_PPA_FW_IN_NAND
Hou Zhiqiangbd6e2cd2017-03-17 16:12:33 +0800241
Hou Zhiqiangbff56d52017-01-16 17:31:49 +0800242 help
243 If the PPA firmware locate at XIP flash, such as NOR or
244 QSPI flash, this address is a directly memory-mapped.
245 If it is in a serial accessed flash, such as NAND and SD
246 card, it is a byte offset.
Vinitha Pillai-B57223a4b3ded2017-03-23 13:48:14 +0530247
248config SYS_LS_PPA_ESBC_ADDR
249 hex "hdr address of PPA firmware loading from"
250 depends on FSL_LS_PPA && CHAIN_OF_TRUST
Sumit Garg666bbd02017-08-16 07:13:28 -0400251 default 0x60680000 if SYS_LS_PPA_FW_IN_XIP && ARCH_LS1043A
252 default 0x40680000 if SYS_LS_PPA_FW_IN_XIP && ARCH_LS1046A
253 default 0x40680000 if SYS_LS_PPA_FW_IN_XIP && ARCH_LS1012A
Udit Agarwalc83ea8a2017-08-16 07:13:29 -0400254 default 0x20680000 if SYS_LS_PPA_FW_IN_XIP && QSPI_BOOT && ARCH_LS2080A
255 default 0x580680000 if SYS_LS_PPA_FW_IN_XIP && ARCH_LS2080A
Udit Agarwal09fd5792017-11-22 09:01:26 +0530256 default 0x20680000 if SYS_LS_PPA_FW_IN_XIP && ARCH_LS1088A
Sumit Garg666bbd02017-08-16 07:13:28 -0400257 default 0x680000 if SYS_LS_PPA_FW_IN_MMC
258 default 0x680000 if SYS_LS_PPA_FW_IN_NAND
Vinitha Pillai-B57223a4b3ded2017-03-23 13:48:14 +0530259 help
260 If the PPA header firmware locate at XIP flash, such as NOR or
261 QSPI flash, this address is a directly memory-mapped.
262 If it is in a serial accessed flash, such as NAND and SD
263 card, it is a byte offset.
264
Sumit Garg8fddf752017-04-20 05:09:11 +0530265config LS_PPA_ESBC_HDR_SIZE
266 hex "Length of PPA ESBC header"
267 depends on FSL_LS_PPA && CHAIN_OF_TRUST && !SYS_LS_PPA_FW_IN_XIP
268 default 0x2000
269 help
270 Length (in bytes) of PPA ESBC header to be copied from MMC/SD or
271 NAND to memory to validate PPA image.
272
macro.wave.z@gmail.comec2d7ed2016-12-08 11:58:21 +0800273endmenu
274
Ran Wange64f7472017-09-04 18:46:50 +0800275config SYS_FSL_ERRATUM_A008997
276 bool "Workaround for USB PHY erratum A008997"
277
Ran Wang3ba69482017-09-04 18:46:51 +0800278config SYS_FSL_ERRATUM_A009007
279 bool
280 help
281 Workaround for USB PHY erratum A009007
282
Ran Wangb358b7b2017-09-04 18:46:48 +0800283config SYS_FSL_ERRATUM_A009008
284 bool "Workaround for USB PHY erratum A009008"
285
Ran Wang9e8fabc2017-09-04 18:46:49 +0800286config SYS_FSL_ERRATUM_A009798
287 bool "Workaround for USB PHY erratum A009798"
288
York Sun149eb332016-09-26 08:09:27 -0700289config SYS_FSL_ERRATUM_A010315
290 bool "Workaround for PCIe erratum A010315"
Hou Zhiqiangc06b30a2016-09-29 12:42:44 +0800291
292config SYS_FSL_ERRATUM_A010539
293 bool "Workaround for PIN MUX erratum A010539"
York Sun4dd8c612016-10-04 14:31:48 -0700294
York Sunf188d222016-10-04 14:45:01 -0700295config MAX_CPUS
296 int "Maximum number of CPUs permitted for Layerscape"
297 default 4 if ARCH_LS1043A
298 default 4 if ARCH_LS1046A
299 default 16 if ARCH_LS2080A
Ashish Kumarb25faa22017-08-31 16:12:53 +0530300 default 8 if ARCH_LS1088A
York Sunf188d222016-10-04 14:45:01 -0700301 default 1
302 help
303 Set this number to the maximum number of possible CPUs in the SoC.
304 SoCs may have multiple clusters with each cluster may have multiple
305 ports. If some ports are reserved but higher ports are used for
306 cores, count the reserved ports. This will allocate enough memory
307 in spin table to properly handle all cores.
308
York Sun728e7002016-12-02 09:32:35 -0800309config SECURE_BOOT
York Sun8a3d8ed2017-01-04 10:32:08 -0800310 bool "Secure Boot"
York Sun728e7002016-12-02 09:32:35 -0800311 help
312 Enable Freescale Secure Boot feature
313
Yuan Yao52ae4fd2016-12-01 10:13:52 +0800314config QSPI_AHB_INIT
315 bool "Init the QSPI AHB bus"
316 help
317 The default setting for QSPI AHB bus just support 3bytes addressing.
318 But some QSPI flash size up to 64MBytes, so initialize the QSPI AHB
319 bus for those flashes to support the full QSPI flash size.
320
Ashish Kumar11234062017-08-11 11:09:14 +0530321config SYS_CCI400_OFFSET
322 hex "Offset for CCI400 base"
323 depends on SYS_FSL_HAS_CCI400
324 default 0x3090000 if ARCH_LS1088A
325 default 0x180000 if FSL_LSCH2
326 help
327 Offset for CCI400 base
328 CCI400 base addr = CCSRBAR + CCI400_OFFSET
329
York Sune7310a32016-10-04 14:45:54 -0700330config SYS_FSL_IFC_BANK_COUNT
331 int "Maximum banks of Integrated flash controller"
Ashish Kumarb25faa22017-08-31 16:12:53 +0530332 depends on ARCH_LS1043A || ARCH_LS1046A || ARCH_LS2080A || ARCH_LS1088A
York Sune7310a32016-10-04 14:45:54 -0700333 default 4 if ARCH_LS1043A
334 default 4 if ARCH_LS1046A
Ashish Kumarb25faa22017-08-31 16:12:53 +0530335 default 8 if ARCH_LS2080A || ARCH_LS1088A
York Sune7310a32016-10-04 14:45:54 -0700336
Ashish Kumar11234062017-08-11 11:09:14 +0530337config SYS_FSL_HAS_CCI400
338 bool
339
Ashish Kumar97393d62017-08-18 10:54:36 +0530340config SYS_FSL_HAS_CCN504
341 bool
342
York Sun0dc9abb2016-10-04 14:46:50 -0700343config SYS_FSL_HAS_DP_DDR
344 bool
345
York Sun6b62ef02016-10-04 18:01:34 -0700346config SYS_FSL_SRDS_1
347 bool
348
349config SYS_FSL_SRDS_2
350 bool
351
352config SYS_HAS_SERDES
353 bool
354
Ashish kumar76bd6ce2017-04-07 11:40:32 +0530355config FSL_TZASC_1
356 bool
357
358config FSL_TZASC_2
359 bool
360
York Sun4dd8c612016-10-04 14:31:48 -0700361endmenu
York Sun1dc61ca2016-12-28 08:43:41 -0800362
Hou Zhiqiang3f91cda2017-01-10 16:44:15 +0800363menu "Layerscape clock tree configuration"
364 depends on FSL_LSCH2 || FSL_LSCH3
365
366config SYS_FSL_CLK
367 bool "Enable clock tree initialization"
368 default y
369
370config CLUSTER_CLK_FREQ
371 int "Reference clock of core cluster"
372 depends on ARCH_LS1012A
373 default 100000000
374 help
375 This number is the reference clock frequency of core PLL.
376 For most platforms, the core PLL and Platform PLL have the same
377 reference clock, but for some platforms, LS1012A for instance,
378 they are provided sepatately.
379
380config SYS_FSL_PCLK_DIV
381 int "Platform clock divider"
382 default 1 if ARCH_LS1043A
383 default 1 if ARCH_LS1046A
Ashish Kumarb25faa22017-08-31 16:12:53 +0530384 default 1 if ARCH_LS1088A
Hou Zhiqiang3f91cda2017-01-10 16:44:15 +0800385 default 2
386 help
387 This is the divider that is used to derive Platform clock from
388 Platform PLL, in another word:
389 Platform_clk = Platform_PLL_freq / this_divider
390
391config SYS_FSL_DSPI_CLK_DIV
392 int "DSPI clock divider"
393 default 1 if ARCH_LS1043A
394 default 2
395 help
396 This is the divider that is used to derive DSPI clock from Platform
Hou Zhiqiang0c8fcb62017-07-03 18:37:11 +0800397 clock, in another word DSPI_clk = Platform_clk / this_divider.
Hou Zhiqiang3f91cda2017-01-10 16:44:15 +0800398
399config SYS_FSL_DUART_CLK_DIV
400 int "DUART clock divider"
401 default 1 if ARCH_LS1043A
402 default 2
403 help
404 This is the divider that is used to derive DUART clock from Platform
405 clock, in another word DUART_clk = Platform_clk / this_divider.
406
407config SYS_FSL_I2C_CLK_DIV
408 int "I2C clock divider"
409 default 1 if ARCH_LS1043A
410 default 2
411 help
412 This is the divider that is used to derive I2C clock from Platform
413 clock, in another word I2C_clk = Platform_clk / this_divider.
414
415config SYS_FSL_IFC_CLK_DIV
416 int "IFC clock divider"
417 default 1 if ARCH_LS1043A
418 default 2
419 help
420 This is the divider that is used to derive IFC clock from Platform
421 clock, in another word IFC_clk = Platform_clk / this_divider.
422
423config SYS_FSL_LPUART_CLK_DIV
424 int "LPUART clock divider"
425 default 1 if ARCH_LS1043A
426 default 2
427 help
428 This is the divider that is used to derive LPUART clock from Platform
429 clock, in another word LPUART_clk = Platform_clk / this_divider.
430
431config SYS_FSL_SDHC_CLK_DIV
432 int "SDHC clock divider"
433 default 1 if ARCH_LS1043A
434 default 1 if ARCH_LS1012A
435 default 2
436 help
437 This is the divider that is used to derive SDHC clock from Platform
438 clock, in another word SDHC_clk = Platform_clk / this_divider.
439endmenu
440
York Sund6964b32017-03-06 09:02:24 -0800441config RESV_RAM
442 bool
443 help
444 Reserve memory from the top, tracked by gd->arch.resv_ram. This
445 reserved RAM can be used by special driver that resides in memory
446 after U-Boot exits. It's up to implementation to allocate and allow
447 access to this reserved memory. For example, the reserved RAM can
448 be at the high end of physical memory. The reserve RAM may be
449 excluded from memory bank(s) passed to OS, or marked as reserved.
450
Ashish Kumarec455e22017-08-31 16:37:31 +0530451config SYS_FSL_EC1
452 bool
453 help
454 Ethernet controller 1, this is connected to MAC3.
455 Provides DPAA2 capabilities
456
457config SYS_FSL_EC2
458 bool
459 help
460 Ethernet controller 2, this is connected to MAC4.
461 Provides DPAA2 capabilities
462
York Sun1dc61ca2016-12-28 08:43:41 -0800463config SYS_FSL_ERRATUM_A008336
464 bool
465
466config SYS_FSL_ERRATUM_A008514
467 bool
468
469config SYS_FSL_ERRATUM_A008585
470 bool
471
472config SYS_FSL_ERRATUM_A008850
473 bool
474
Ashish kumar3b52a232017-02-23 16:03:57 +0530475config SYS_FSL_ERRATUM_A009203
476 bool
477
York Sun1dc61ca2016-12-28 08:43:41 -0800478config SYS_FSL_ERRATUM_A009635
479 bool
480
481config SYS_FSL_ERRATUM_A009660
482 bool
483
484config SYS_FSL_ERRATUM_A009929
485 bool
York Sun1a770752017-03-06 09:02:26 -0800486
Ashish Kumarec455e22017-08-31 16:37:31 +0530487
488config SYS_FSL_HAS_RGMII
489 bool
490 depends on SYS_FSL_EC1 || SYS_FSL_EC2
491
492
York Sun1a770752017-03-06 09:02:26 -0800493config SYS_MC_RSV_MEM_ALIGN
494 hex "Management Complex reserved memory alignment"
495 depends on RESV_RAM
Ashish Kumarb0392702017-12-08 11:10:40 +0530496 default 0x20000000 if ARCH_LS2080A || ARCH_LS1088A
York Sun1a770752017-03-06 09:02:26 -0800497 help
498 Reserved memory needs to be aligned for MC to use. Default value
499 is 512MB.
Philipp Tomsich2d6a0cc2017-08-03 23:23:55 +0200500
501config SPL_LDSCRIPT
502 default "arch/arm/cpu/armv8/u-boot-spl.lds" if ARCH_LS1043A || ARCH_LS1046A || ARCH_LS2080A
Ran Wang5959f842017-10-23 10:09:21 +0800503
504config HAS_FSL_XHCI_USB
505 bool
506 default y if ARCH_LS1043A || ARCH_LS1046A
507 help
508 For some SoC(such as LS1043A and LS1046A), USB and QE-HDLC multiplex use
509 pins, select it when the pins are assigned to USB.