blob: 7b59dc9a7c8b4e94bca89678b94dbea160258a2b [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
Sriram Dash4a943332018-01-30 15:58:44 +05306 select SYS_FSL_SRDS_1
7 select SYS_HAS_SERDES
York Sunb6fffd82016-10-04 18:03:08 -07008 select SYS_FSL_DDR_BE
York Sunb3d71642016-09-26 08:09:26 -07009 select SYS_FSL_MMDC
York Sun149eb332016-09-26 08:09:27 -070010 select SYS_FSL_ERRATUM_A010315
Ran Wang02dc77b2017-11-13 16:14:48 +080011 select SYS_FSL_ERRATUM_A009798
12 select SYS_FSL_ERRATUM_A008997
13 select SYS_FSL_ERRATUM_A009007
14 select SYS_FSL_ERRATUM_A009008
Simon Glass62adede2017-01-23 13:31:19 -070015 select ARCH_EARLY_INIT_R
Simon Glass7a99a872017-01-23 13:31:20 -070016 select BOARD_EARLY_INIT_F
Masahiro Yamadaacede7a2017-12-04 12:37:00 +090017 imply PANIC_HANG
York Sun149eb332016-09-26 08:09:27 -070018
19config ARCH_LS1043A
York Sunfcd0e742016-10-04 14:31:47 -070020 bool
Hou Zhiqiang4d1525a2017-01-06 17:41:11 +080021 select ARMV8_SET_SMPEN
Alison Wangc1293872017-12-28 13:00:55 +080022 select ARM_ERRATA_855873
York Sun4dd8c612016-10-04 14:31:48 -070023 select FSL_LSCH2
Sriram Dash4a943332018-01-30 15:58:44 +053024 select SYS_FSL_SRDS_1
25 select SYS_HAS_SERDES
York Sund297d392016-12-28 08:43:40 -080026 select SYS_FSL_DDR
York Sunb6fffd82016-10-04 18:03:08 -070027 select SYS_FSL_DDR_BE
28 select SYS_FSL_DDR_VER_50
York Sun1dc61ca2016-12-28 08:43:41 -080029 select SYS_FSL_ERRATUM_A008850
Ran Wange64f7472017-09-04 18:46:50 +080030 select SYS_FSL_ERRATUM_A008997
Ran Wang3ba69482017-09-04 18:46:51 +080031 select SYS_FSL_ERRATUM_A009007
Ran Wangb358b7b2017-09-04 18:46:48 +080032 select SYS_FSL_ERRATUM_A009008
York Sun1dc61ca2016-12-28 08:43:41 -080033 select SYS_FSL_ERRATUM_A009660
34 select SYS_FSL_ERRATUM_A009663
Ran Wang9e8fabc2017-09-04 18:46:49 +080035 select SYS_FSL_ERRATUM_A009798
York Sun1dc61ca2016-12-28 08:43:41 -080036 select SYS_FSL_ERRATUM_A009929
37 select SYS_FSL_ERRATUM_A009942
York Sun149eb332016-09-26 08:09:27 -070038 select SYS_FSL_ERRATUM_A010315
Hou Zhiqiangc06b30a2016-09-29 12:42:44 +080039 select SYS_FSL_ERRATUM_A010539
York Sund297d392016-12-28 08:43:40 -080040 select SYS_FSL_HAS_DDR3
41 select SYS_FSL_HAS_DDR4
Simon Glass62adede2017-01-23 13:31:19 -070042 select ARCH_EARLY_INIT_R
Simon Glass7a99a872017-01-23 13:31:20 -070043 select BOARD_EARLY_INIT_F
Simon Glass0e5faf02017-06-14 21:28:21 -060044 imply SCSI
Tuomas Tynkkynenedf9f622017-12-08 15:36:19 +020045 imply SCSI_AHCI
Simon Glassc88a09a2017-08-04 16:34:34 -060046 imply CMD_PCI
York Sunb3d71642016-09-26 08:09:26 -070047
York Sunbad49842016-09-26 08:09:24 -070048config ARCH_LS1046A
York Sunfcd0e742016-10-04 14:31:47 -070049 bool
Hou Zhiqiang4d1525a2017-01-06 17:41:11 +080050 select ARMV8_SET_SMPEN
York Sun4dd8c612016-10-04 14:31:48 -070051 select FSL_LSCH2
Sriram Dash4a943332018-01-30 15:58:44 +053052 select SYS_FSL_SRDS_1
53 select SYS_HAS_SERDES
York Sund297d392016-12-28 08:43:40 -080054 select SYS_FSL_DDR
York Sunb6fffd82016-10-04 18:03:08 -070055 select SYS_FSL_DDR_BE
York Sunb6fffd82016-10-04 18:03:08 -070056 select SYS_FSL_DDR_VER_50
York Sunf195cf72017-01-27 09:57:31 -080057 select SYS_FSL_ERRATUM_A008336
York Sun1dc61ca2016-12-28 08:43:41 -080058 select SYS_FSL_ERRATUM_A008511
Shengzhou Liua7c37c62017-03-23 18:14:40 +080059 select SYS_FSL_ERRATUM_A008850
Ran Wange64f7472017-09-04 18:46:50 +080060 select SYS_FSL_ERRATUM_A008997
Ran Wang3ba69482017-09-04 18:46:51 +080061 select SYS_FSL_ERRATUM_A009007
Ran Wangb358b7b2017-09-04 18:46:48 +080062 select SYS_FSL_ERRATUM_A009008
Ran Wang9e8fabc2017-09-04 18:46:49 +080063 select SYS_FSL_ERRATUM_A009798
York Sun1dc61ca2016-12-28 08:43:41 -080064 select SYS_FSL_ERRATUM_A009801
65 select SYS_FSL_ERRATUM_A009803
66 select SYS_FSL_ERRATUM_A009942
67 select SYS_FSL_ERRATUM_A010165
Hou Zhiqiangc06b30a2016-09-29 12:42:44 +080068 select SYS_FSL_ERRATUM_A010539
York Sund297d392016-12-28 08:43:40 -080069 select SYS_FSL_HAS_DDR4
York Sun6b62ef02016-10-04 18:01:34 -070070 select SYS_FSL_SRDS_2
Simon Glass62adede2017-01-23 13:31:19 -070071 select ARCH_EARLY_INIT_R
Simon Glass7a99a872017-01-23 13:31:20 -070072 select BOARD_EARLY_INIT_F
Simon Glass0e5faf02017-06-14 21:28:21 -060073 imply SCSI
Tuomas Tynkkynenedf9f622017-12-08 15:36:19 +020074 imply SCSI_AHCI
York Sunb3d71642016-09-26 08:09:26 -070075
Ashish Kumarb25faa22017-08-31 16:12:53 +053076config ARCH_LS1088A
77 bool
78 select ARMV8_SET_SMPEN
Alison Wangc1293872017-12-28 13:00:55 +080079 select ARM_ERRATA_855873
Ashish Kumarb25faa22017-08-31 16:12:53 +053080 select FSL_LSCH3
Sriram Dash4a943332018-01-30 15:58:44 +053081 select SYS_FSL_SRDS_1
82 select SYS_HAS_SERDES
Ashish Kumarb25faa22017-08-31 16:12:53 +053083 select SYS_FSL_DDR
84 select SYS_FSL_DDR_LE
85 select SYS_FSL_DDR_VER_50
Ashish Kumarec455e22017-08-31 16:37:31 +053086 select SYS_FSL_EC1
87 select SYS_FSL_EC2
Ashish Kumarb25faa22017-08-31 16:12:53 +053088 select SYS_FSL_ERRATUM_A009803
89 select SYS_FSL_ERRATUM_A009942
90 select SYS_FSL_ERRATUM_A010165
91 select SYS_FSL_ERRATUM_A008511
92 select SYS_FSL_ERRATUM_A008850
Ran Wangef277072017-09-22 15:21:34 +080093 select SYS_FSL_ERRATUM_A009007
Ashish Kumarb25faa22017-08-31 16:12:53 +053094 select SYS_FSL_HAS_CCI400
95 select SYS_FSL_HAS_DDR4
Ashish Kumarec455e22017-08-31 16:37:31 +053096 select SYS_FSL_HAS_RGMII
Ashish Kumarb25faa22017-08-31 16:12:53 +053097 select SYS_FSL_HAS_SEC
98 select SYS_FSL_SEC_COMPAT_5
99 select SYS_FSL_SEC_LE
100 select SYS_FSL_SRDS_1
101 select SYS_FSL_SRDS_2
102 select FSL_TZASC_1
103 select ARCH_EARLY_INIT_R
104 select BOARD_EARLY_INIT_F
Ashish Kumara179e562017-11-02 09:50:47 +0530105 imply SCSI
Masahiro Yamadaacede7a2017-12-04 12:37:00 +0900106 imply PANIC_HANG
Ashish Kumarb25faa22017-08-31 16:12:53 +0530107
York Sunfcd0e742016-10-04 14:31:47 -0700108config ARCH_LS2080A
109 bool
Hou Zhiqiang4d1525a2017-01-06 17:41:11 +0800110 select ARMV8_SET_SMPEN
Tom Rinibacb52c2017-03-07 07:13:42 -0500111 select ARM_ERRATA_826974
112 select ARM_ERRATA_828024
113 select ARM_ERRATA_829520
114 select ARM_ERRATA_833471
York Sun4dd8c612016-10-04 14:31:48 -0700115 select FSL_LSCH3
Sriram Dash4a943332018-01-30 15:58:44 +0530116 select SYS_FSL_SRDS_1
117 select SYS_HAS_SERDES
York Sund297d392016-12-28 08:43:40 -0800118 select SYS_FSL_DDR
York Sunb6fffd82016-10-04 18:03:08 -0700119 select SYS_FSL_DDR_LE
120 select SYS_FSL_DDR_VER_50
Ashish Kumar97393d62017-08-18 10:54:36 +0530121 select SYS_FSL_HAS_CCN504
York Sun6b62ef02016-10-04 18:01:34 -0700122 select SYS_FSL_HAS_DP_DDR
York Sun92c36e22016-12-28 08:43:30 -0800123 select SYS_FSL_HAS_SEC
York Sund297d392016-12-28 08:43:40 -0800124 select SYS_FSL_HAS_DDR4
York Sun92c36e22016-12-28 08:43:30 -0800125 select SYS_FSL_SEC_COMPAT_5
York Sunfa4199422016-12-28 08:43:31 -0800126 select SYS_FSL_SEC_LE
York Sun6b62ef02016-10-04 18:01:34 -0700127 select SYS_FSL_SRDS_2
Ashish kumar76bd6ce2017-04-07 11:40:32 +0530128 select FSL_TZASC_1
129 select FSL_TZASC_2
York Sun1dc61ca2016-12-28 08:43:41 -0800130 select SYS_FSL_ERRATUM_A008336
131 select SYS_FSL_ERRATUM_A008511
132 select SYS_FSL_ERRATUM_A008514
133 select SYS_FSL_ERRATUM_A008585
Ran Wange64f7472017-09-04 18:46:50 +0800134 select SYS_FSL_ERRATUM_A008997
Ran Wang3ba69482017-09-04 18:46:51 +0800135 select SYS_FSL_ERRATUM_A009007
Ran Wangb358b7b2017-09-04 18:46:48 +0800136 select SYS_FSL_ERRATUM_A009008
York Sun1dc61ca2016-12-28 08:43:41 -0800137 select SYS_FSL_ERRATUM_A009635
138 select SYS_FSL_ERRATUM_A009663
Ran Wang9e8fabc2017-09-04 18:46:49 +0800139 select SYS_FSL_ERRATUM_A009798
York Sun1dc61ca2016-12-28 08:43:41 -0800140 select SYS_FSL_ERRATUM_A009801
141 select SYS_FSL_ERRATUM_A009803
142 select SYS_FSL_ERRATUM_A009942
143 select SYS_FSL_ERRATUM_A010165
Ashish kumar3b52a232017-02-23 16:03:57 +0530144 select SYS_FSL_ERRATUM_A009203
Simon Glass62adede2017-01-23 13:31:19 -0700145 select ARCH_EARLY_INIT_R
Simon Glass7a99a872017-01-23 13:31:20 -0700146 select BOARD_EARLY_INIT_F
Masahiro Yamadaacede7a2017-12-04 12:37:00 +0900147 imply PANIC_HANG
York Sun4dd8c612016-10-04 14:31:48 -0700148
149config FSL_LSCH2
150 bool
Ashish Kumar11234062017-08-11 11:09:14 +0530151 select SYS_FSL_HAS_CCI400
York Sun92c36e22016-12-28 08:43:30 -0800152 select SYS_FSL_HAS_SEC
153 select SYS_FSL_SEC_COMPAT_5
York Sunfa4199422016-12-28 08:43:31 -0800154 select SYS_FSL_SEC_BE
York Sun4dd8c612016-10-04 14:31:48 -0700155
156config FSL_LSCH3
157 bool
158
York Sun6c089742017-03-06 09:02:25 -0800159config FSL_MC_ENET
160 bool "Management Complex network"
Ashish Kumarb25faa22017-08-31 16:12:53 +0530161 depends on ARCH_LS2080A || ARCH_LS1088A
York Sun6c089742017-03-06 09:02:25 -0800162 default y
163 select RESV_RAM
164 help
165 Enable Management Complex (MC) network
166
York Sun4dd8c612016-10-04 14:31:48 -0700167menu "Layerscape architecture"
168 depends on FSL_LSCH2 || FSL_LSCH3
York Sunfcd0e742016-10-04 14:31:47 -0700169
Hou Zhiqiangd553bf22016-12-13 14:54:24 +0800170config FSL_PCIE_COMPAT
171 string "PCIe compatible of Kernel DT"
172 depends on PCIE_LAYERSCAPE
173 default "fsl,ls1012a-pcie" if ARCH_LS1012A
174 default "fsl,ls1043a-pcie" if ARCH_LS1043A
175 default "fsl,ls1046a-pcie" if ARCH_LS1046A
176 default "fsl,ls2080a-pcie" if ARCH_LS2080A
Ashish Kumarb25faa22017-08-31 16:12:53 +0530177 default "fsl,ls1088a-pcie" if ARCH_LS1088A
Hou Zhiqiangd553bf22016-12-13 14:54:24 +0800178 help
179 This compatible is used to find pci controller node in Kernel DT
180 to complete fixup.
181
Wenbin Songa8f57a92017-01-17 18:31:15 +0800182config HAS_FEATURE_GIC64K_ALIGN
183 bool
184 default y if ARCH_LS1043A
185
Wenbin Songc6bc7c02017-01-17 18:31:16 +0800186config HAS_FEATURE_ENHANCED_MSI
187 bool
188 default y if ARCH_LS1043A
Wenbin Songa8f57a92017-01-17 18:31:15 +0800189
macro.wave.z@gmail.comec2d7ed2016-12-08 11:58:21 +0800190menu "Layerscape PPA"
191config FSL_LS_PPA
192 bool "FSL Layerscape PPA firmware support"
macro.wave.z@gmail.com01bd3342016-12-08 11:58:22 +0800193 depends on !ARMV8_PSCI
Hou Zhiqiangbff56d52017-01-16 17:31:49 +0800194 select ARMV8_SEC_FIRMWARE_SUPPORT
Hou Zhiqiang6be115d2017-01-16 17:31:48 +0800195 select SEC_FIRMWARE_ARMV8_PSCI
Hou Zhiqiangbff56d52017-01-16 17:31:49 +0800196 select ARMV8_SEC_FIRMWARE_ERET_ADDR_REVERT if FSL_LSCH2
macro.wave.z@gmail.comec2d7ed2016-12-08 11:58:21 +0800197 help
198 The FSL Primary Protected Application (PPA) is a software component
199 which is loaded during boot stage, and then remains resident in RAM
200 and runs in the TrustZone after boot.
201 Say y to enable it.
York Sunf2aaf842017-05-15 08:52:00 -0700202
203config SPL_FSL_LS_PPA
204 bool "FSL Layerscape PPA firmware support for SPL build"
205 depends on !ARMV8_PSCI
206 select SPL_ARMV8_SEC_FIRMWARE_SUPPORT
207 select SEC_FIRMWARE_ARMV8_PSCI
208 select ARMV8_SEC_FIRMWARE_ERET_ADDR_REVERT if FSL_LSCH2
209 help
210 The FSL Primary Protected Application (PPA) is a software component
211 which is loaded during boot stage, and then remains resident in RAM
212 and runs in the TrustZone after boot. This is to load PPA during SPL
213 stage instead of the RAM version of U-Boot. Once PPA is initialized,
214 the rest of U-Boot (including RAM version) runs at EL2.
Hou Zhiqiangbff56d52017-01-16 17:31:49 +0800215choice
216 prompt "FSL Layerscape PPA firmware loading-media select"
217 depends on FSL_LS_PPA
Hou Zhiqiangbd6e2cd2017-03-17 16:12:33 +0800218 default SYS_LS_PPA_FW_IN_MMC if SD_BOOT
219 default SYS_LS_PPA_FW_IN_NAND if NAND_BOOT
Hou Zhiqiangbff56d52017-01-16 17:31:49 +0800220 default SYS_LS_PPA_FW_IN_XIP
221
222config SYS_LS_PPA_FW_IN_XIP
223 bool "XIP"
224 help
225 Say Y here if the PPA firmware locate at XIP flash, such
226 as NOR or QSPI flash.
227
Hou Zhiqiangbd6e2cd2017-03-17 16:12:33 +0800228config SYS_LS_PPA_FW_IN_MMC
229 bool "eMMC or SD Card"
230 help
231 Say Y here if the PPA firmware locate at eMMC/SD card.
232
233config SYS_LS_PPA_FW_IN_NAND
234 bool "NAND"
235 help
236 Say Y here if the PPA firmware locate at NAND flash.
237
Hou Zhiqiangbff56d52017-01-16 17:31:49 +0800238endchoice
239
240config SYS_LS_PPA_FW_ADDR
241 hex "Address of PPA firmware loading from"
242 depends on FSL_LS_PPA
Priyanka Jain7d05b992017-04-28 10:41:35 +0530243 default 0x20400000 if SYS_LS_PPA_FW_IN_XIP && QSPI_BOOT && ARCH_LS2080A
Alison Wangb5b8bfa2017-05-16 10:45:58 +0800244 default 0x40400000 if SYS_LS_PPA_FW_IN_XIP && QSPI_BOOT
Santan Kumar0f0173d2017-04-28 12:47:24 +0530245 default 0x580400000 if SYS_LS_PPA_FW_IN_XIP && ARCH_LS2080A
Ashish Kumar227b4bc2017-08-31 16:12:54 +0530246 default 0x20400000 if SYS_LS_PPA_FW_IN_XIP && ARCH_LS1088A
Alison Wangb5b8bfa2017-05-16 10:45:58 +0800247 default 0x60400000 if SYS_LS_PPA_FW_IN_XIP
248 default 0x400000 if SYS_LS_PPA_FW_IN_MMC
249 default 0x400000 if SYS_LS_PPA_FW_IN_NAND
Hou Zhiqiangbd6e2cd2017-03-17 16:12:33 +0800250
Hou Zhiqiangbff56d52017-01-16 17:31:49 +0800251 help
252 If the PPA firmware locate at XIP flash, such as NOR or
253 QSPI flash, this address is a directly memory-mapped.
254 If it is in a serial accessed flash, such as NAND and SD
255 card, it is a byte offset.
Vinitha Pillai-B57223a4b3ded2017-03-23 13:48:14 +0530256
257config SYS_LS_PPA_ESBC_ADDR
258 hex "hdr address of PPA firmware loading from"
259 depends on FSL_LS_PPA && CHAIN_OF_TRUST
Sumit Garg666bbd02017-08-16 07:13:28 -0400260 default 0x60680000 if SYS_LS_PPA_FW_IN_XIP && ARCH_LS1043A
261 default 0x40680000 if SYS_LS_PPA_FW_IN_XIP && ARCH_LS1046A
262 default 0x40680000 if SYS_LS_PPA_FW_IN_XIP && ARCH_LS1012A
Udit Agarwalc83ea8a2017-08-16 07:13:29 -0400263 default 0x20680000 if SYS_LS_PPA_FW_IN_XIP && QSPI_BOOT && ARCH_LS2080A
264 default 0x580680000 if SYS_LS_PPA_FW_IN_XIP && ARCH_LS2080A
Udit Agarwal09fd5792017-11-22 09:01:26 +0530265 default 0x20680000 if SYS_LS_PPA_FW_IN_XIP && ARCH_LS1088A
Sumit Garg666bbd02017-08-16 07:13:28 -0400266 default 0x680000 if SYS_LS_PPA_FW_IN_MMC
267 default 0x680000 if SYS_LS_PPA_FW_IN_NAND
Vinitha Pillai-B57223a4b3ded2017-03-23 13:48:14 +0530268 help
269 If the PPA header firmware locate at XIP flash, such as NOR or
270 QSPI flash, this address is a directly memory-mapped.
271 If it is in a serial accessed flash, such as NAND and SD
272 card, it is a byte offset.
273
Sumit Garg8fddf752017-04-20 05:09:11 +0530274config LS_PPA_ESBC_HDR_SIZE
275 hex "Length of PPA ESBC header"
276 depends on FSL_LS_PPA && CHAIN_OF_TRUST && !SYS_LS_PPA_FW_IN_XIP
277 default 0x2000
278 help
279 Length (in bytes) of PPA ESBC header to be copied from MMC/SD or
280 NAND to memory to validate PPA image.
281
macro.wave.z@gmail.comec2d7ed2016-12-08 11:58:21 +0800282endmenu
283
Ran Wange64f7472017-09-04 18:46:50 +0800284config SYS_FSL_ERRATUM_A008997
285 bool "Workaround for USB PHY erratum A008997"
286
Ran Wang3ba69482017-09-04 18:46:51 +0800287config SYS_FSL_ERRATUM_A009007
288 bool
289 help
290 Workaround for USB PHY erratum A009007
291
Ran Wangb358b7b2017-09-04 18:46:48 +0800292config SYS_FSL_ERRATUM_A009008
293 bool "Workaround for USB PHY erratum A009008"
294
Ran Wang9e8fabc2017-09-04 18:46:49 +0800295config SYS_FSL_ERRATUM_A009798
296 bool "Workaround for USB PHY erratum A009798"
297
York Sun149eb332016-09-26 08:09:27 -0700298config SYS_FSL_ERRATUM_A010315
299 bool "Workaround for PCIe erratum A010315"
Hou Zhiqiangc06b30a2016-09-29 12:42:44 +0800300
301config SYS_FSL_ERRATUM_A010539
302 bool "Workaround for PIN MUX erratum A010539"
York Sun4dd8c612016-10-04 14:31:48 -0700303
York Sunf188d222016-10-04 14:45:01 -0700304config MAX_CPUS
305 int "Maximum number of CPUs permitted for Layerscape"
306 default 4 if ARCH_LS1043A
307 default 4 if ARCH_LS1046A
308 default 16 if ARCH_LS2080A
Ashish Kumarb25faa22017-08-31 16:12:53 +0530309 default 8 if ARCH_LS1088A
York Sunf188d222016-10-04 14:45:01 -0700310 default 1
311 help
312 Set this number to the maximum number of possible CPUs in the SoC.
313 SoCs may have multiple clusters with each cluster may have multiple
314 ports. If some ports are reserved but higher ports are used for
315 cores, count the reserved ports. This will allocate enough memory
316 in spin table to properly handle all cores.
317
York Sun728e7002016-12-02 09:32:35 -0800318config SECURE_BOOT
York Sun8a3d8ed2017-01-04 10:32:08 -0800319 bool "Secure Boot"
York Sun728e7002016-12-02 09:32:35 -0800320 help
321 Enable Freescale Secure Boot feature
322
Yuan Yao52ae4fd2016-12-01 10:13:52 +0800323config QSPI_AHB_INIT
324 bool "Init the QSPI AHB bus"
325 help
326 The default setting for QSPI AHB bus just support 3bytes addressing.
327 But some QSPI flash size up to 64MBytes, so initialize the QSPI AHB
328 bus for those flashes to support the full QSPI flash size.
329
Ashish Kumar11234062017-08-11 11:09:14 +0530330config SYS_CCI400_OFFSET
331 hex "Offset for CCI400 base"
332 depends on SYS_FSL_HAS_CCI400
333 default 0x3090000 if ARCH_LS1088A
334 default 0x180000 if FSL_LSCH2
335 help
336 Offset for CCI400 base
337 CCI400 base addr = CCSRBAR + CCI400_OFFSET
338
York Sune7310a32016-10-04 14:45:54 -0700339config SYS_FSL_IFC_BANK_COUNT
340 int "Maximum banks of Integrated flash controller"
Ashish Kumarb25faa22017-08-31 16:12:53 +0530341 depends on ARCH_LS1043A || ARCH_LS1046A || ARCH_LS2080A || ARCH_LS1088A
York Sune7310a32016-10-04 14:45:54 -0700342 default 4 if ARCH_LS1043A
343 default 4 if ARCH_LS1046A
Ashish Kumarb25faa22017-08-31 16:12:53 +0530344 default 8 if ARCH_LS2080A || ARCH_LS1088A
York Sune7310a32016-10-04 14:45:54 -0700345
Ashish Kumar11234062017-08-11 11:09:14 +0530346config SYS_FSL_HAS_CCI400
347 bool
348
Ashish Kumar97393d62017-08-18 10:54:36 +0530349config SYS_FSL_HAS_CCN504
350 bool
351
York Sun0dc9abb2016-10-04 14:46:50 -0700352config SYS_FSL_HAS_DP_DDR
353 bool
354
York Sun6b62ef02016-10-04 18:01:34 -0700355config SYS_FSL_SRDS_1
356 bool
357
358config SYS_FSL_SRDS_2
359 bool
360
361config SYS_HAS_SERDES
362 bool
363
Ashish kumar76bd6ce2017-04-07 11:40:32 +0530364config FSL_TZASC_1
365 bool
366
367config FSL_TZASC_2
368 bool
369
York Sun4dd8c612016-10-04 14:31:48 -0700370endmenu
York Sun1dc61ca2016-12-28 08:43:41 -0800371
Hou Zhiqiang3f91cda2017-01-10 16:44:15 +0800372menu "Layerscape clock tree configuration"
373 depends on FSL_LSCH2 || FSL_LSCH3
374
375config SYS_FSL_CLK
376 bool "Enable clock tree initialization"
377 default y
378
379config CLUSTER_CLK_FREQ
380 int "Reference clock of core cluster"
381 depends on ARCH_LS1012A
382 default 100000000
383 help
384 This number is the reference clock frequency of core PLL.
385 For most platforms, the core PLL and Platform PLL have the same
386 reference clock, but for some platforms, LS1012A for instance,
387 they are provided sepatately.
388
389config SYS_FSL_PCLK_DIV
390 int "Platform clock divider"
391 default 1 if ARCH_LS1043A
392 default 1 if ARCH_LS1046A
Ashish Kumarb25faa22017-08-31 16:12:53 +0530393 default 1 if ARCH_LS1088A
Hou Zhiqiang3f91cda2017-01-10 16:44:15 +0800394 default 2
395 help
396 This is the divider that is used to derive Platform clock from
397 Platform PLL, in another word:
398 Platform_clk = Platform_PLL_freq / this_divider
399
400config SYS_FSL_DSPI_CLK_DIV
401 int "DSPI clock divider"
402 default 1 if ARCH_LS1043A
403 default 2
404 help
405 This is the divider that is used to derive DSPI clock from Platform
Hou Zhiqiang0c8fcb62017-07-03 18:37:11 +0800406 clock, in another word DSPI_clk = Platform_clk / this_divider.
Hou Zhiqiang3f91cda2017-01-10 16:44:15 +0800407
408config SYS_FSL_DUART_CLK_DIV
409 int "DUART clock divider"
410 default 1 if ARCH_LS1043A
411 default 2
412 help
413 This is the divider that is used to derive DUART clock from Platform
414 clock, in another word DUART_clk = Platform_clk / this_divider.
415
416config SYS_FSL_I2C_CLK_DIV
417 int "I2C clock divider"
418 default 1 if ARCH_LS1043A
419 default 2
420 help
421 This is the divider that is used to derive I2C clock from Platform
422 clock, in another word I2C_clk = Platform_clk / this_divider.
423
424config SYS_FSL_IFC_CLK_DIV
425 int "IFC clock divider"
426 default 1 if ARCH_LS1043A
427 default 2
428 help
429 This is the divider that is used to derive IFC clock from Platform
430 clock, in another word IFC_clk = Platform_clk / this_divider.
431
432config SYS_FSL_LPUART_CLK_DIV
433 int "LPUART clock divider"
434 default 1 if ARCH_LS1043A
435 default 2
436 help
437 This is the divider that is used to derive LPUART clock from Platform
438 clock, in another word LPUART_clk = Platform_clk / this_divider.
439
440config SYS_FSL_SDHC_CLK_DIV
441 int "SDHC clock divider"
442 default 1 if ARCH_LS1043A
443 default 1 if ARCH_LS1012A
444 default 2
445 help
446 This is the divider that is used to derive SDHC clock from Platform
447 clock, in another word SDHC_clk = Platform_clk / this_divider.
448endmenu
449
York Sund6964b32017-03-06 09:02:24 -0800450config RESV_RAM
451 bool
452 help
453 Reserve memory from the top, tracked by gd->arch.resv_ram. This
454 reserved RAM can be used by special driver that resides in memory
455 after U-Boot exits. It's up to implementation to allocate and allow
456 access to this reserved memory. For example, the reserved RAM can
457 be at the high end of physical memory. The reserve RAM may be
458 excluded from memory bank(s) passed to OS, or marked as reserved.
459
Ashish Kumarec455e22017-08-31 16:37:31 +0530460config SYS_FSL_EC1
461 bool
462 help
463 Ethernet controller 1, this is connected to MAC3.
464 Provides DPAA2 capabilities
465
466config SYS_FSL_EC2
467 bool
468 help
469 Ethernet controller 2, this is connected to MAC4.
470 Provides DPAA2 capabilities
471
York Sun1dc61ca2016-12-28 08:43:41 -0800472config SYS_FSL_ERRATUM_A008336
473 bool
474
475config SYS_FSL_ERRATUM_A008514
476 bool
477
478config SYS_FSL_ERRATUM_A008585
479 bool
480
481config SYS_FSL_ERRATUM_A008850
482 bool
483
Ashish kumar3b52a232017-02-23 16:03:57 +0530484config SYS_FSL_ERRATUM_A009203
485 bool
486
York Sun1dc61ca2016-12-28 08:43:41 -0800487config SYS_FSL_ERRATUM_A009635
488 bool
489
490config SYS_FSL_ERRATUM_A009660
491 bool
492
493config SYS_FSL_ERRATUM_A009929
494 bool
York Sun1a770752017-03-06 09:02:26 -0800495
Ashish Kumarec455e22017-08-31 16:37:31 +0530496
497config SYS_FSL_HAS_RGMII
498 bool
499 depends on SYS_FSL_EC1 || SYS_FSL_EC2
500
501
York Sun1a770752017-03-06 09:02:26 -0800502config SYS_MC_RSV_MEM_ALIGN
503 hex "Management Complex reserved memory alignment"
504 depends on RESV_RAM
Ashish Kumarb0392702017-12-08 11:10:40 +0530505 default 0x20000000 if ARCH_LS2080A || ARCH_LS1088A
York Sun1a770752017-03-06 09:02:26 -0800506 help
507 Reserved memory needs to be aligned for MC to use. Default value
508 is 512MB.
Philipp Tomsich2d6a0cc2017-08-03 23:23:55 +0200509
510config SPL_LDSCRIPT
511 default "arch/arm/cpu/armv8/u-boot-spl.lds" if ARCH_LS1043A || ARCH_LS1046A || ARCH_LS2080A
Ran Wang5959f842017-10-23 10:09:21 +0800512
513config HAS_FSL_XHCI_USB
514 bool
515 default y if ARCH_LS1043A || ARCH_LS1046A
516 help
517 For some SoC(such as LS1043A and LS1046A), USB and QE-HDLC multiplex use
518 pins, select it when the pins are assigned to USB.