blob: 546de33b72e6e35d33702fe4e989aa5ce61df6f5 [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
Sriram Dash7122a0c2018-02-06 11:26:30 +053017 select SYS_I2C_MXC
18 select SYS_I2C_MXC_I2C1
19 select SYS_I2C_MXC_I2C2
Masahiro Yamadaacede7a2017-12-04 12:37:00 +090020 imply PANIC_HANG
York Sun149eb332016-09-26 08:09:27 -070021
22config ARCH_LS1043A
York Sunfcd0e742016-10-04 14:31:47 -070023 bool
Hou Zhiqiang4d1525a2017-01-06 17:41:11 +080024 select ARMV8_SET_SMPEN
Alison Wangc1293872017-12-28 13:00:55 +080025 select ARM_ERRATA_855873
York Sun4dd8c612016-10-04 14:31:48 -070026 select FSL_LSCH2
Sriram Dash4a943332018-01-30 15:58:44 +053027 select SYS_FSL_SRDS_1
28 select SYS_HAS_SERDES
York Sund297d392016-12-28 08:43:40 -080029 select SYS_FSL_DDR
York Sunb6fffd82016-10-04 18:03:08 -070030 select SYS_FSL_DDR_BE
31 select SYS_FSL_DDR_VER_50
York Sun1dc61ca2016-12-28 08:43:41 -080032 select SYS_FSL_ERRATUM_A008850
Ran Wange64f7472017-09-04 18:46:50 +080033 select SYS_FSL_ERRATUM_A008997
Ran Wang3ba69482017-09-04 18:46:51 +080034 select SYS_FSL_ERRATUM_A009007
Ran Wangb358b7b2017-09-04 18:46:48 +080035 select SYS_FSL_ERRATUM_A009008
York Sun1dc61ca2016-12-28 08:43:41 -080036 select SYS_FSL_ERRATUM_A009660
37 select SYS_FSL_ERRATUM_A009663
Ran Wang9e8fabc2017-09-04 18:46:49 +080038 select SYS_FSL_ERRATUM_A009798
York Sun1dc61ca2016-12-28 08:43:41 -080039 select SYS_FSL_ERRATUM_A009929
40 select SYS_FSL_ERRATUM_A009942
York Sun149eb332016-09-26 08:09:27 -070041 select SYS_FSL_ERRATUM_A010315
Hou Zhiqiangc06b30a2016-09-29 12:42:44 +080042 select SYS_FSL_ERRATUM_A010539
York Sund297d392016-12-28 08:43:40 -080043 select SYS_FSL_HAS_DDR3
44 select SYS_FSL_HAS_DDR4
Simon Glass62adede2017-01-23 13:31:19 -070045 select ARCH_EARLY_INIT_R
Simon Glass7a99a872017-01-23 13:31:20 -070046 select BOARD_EARLY_INIT_F
Sriram Dash7122a0c2018-02-06 11:26:30 +053047 select SYS_I2C_MXC
48 select SYS_I2C_MXC_I2C1
49 select SYS_I2C_MXC_I2C2
50 select SYS_I2C_MXC_I2C3
51 select SYS_I2C_MXC_I2C4
Simon Glass0e5faf02017-06-14 21:28:21 -060052 imply SCSI
Tuomas Tynkkynenedf9f622017-12-08 15:36:19 +020053 imply SCSI_AHCI
Simon Glassc88a09a2017-08-04 16:34:34 -060054 imply CMD_PCI
York Sunb3d71642016-09-26 08:09:26 -070055
York Sunbad49842016-09-26 08:09:24 -070056config ARCH_LS1046A
York Sunfcd0e742016-10-04 14:31:47 -070057 bool
Hou Zhiqiang4d1525a2017-01-06 17:41:11 +080058 select ARMV8_SET_SMPEN
York Sun4dd8c612016-10-04 14:31:48 -070059 select FSL_LSCH2
Sriram Dash4a943332018-01-30 15:58:44 +053060 select SYS_FSL_SRDS_1
61 select SYS_HAS_SERDES
York Sund297d392016-12-28 08:43:40 -080062 select SYS_FSL_DDR
York Sunb6fffd82016-10-04 18:03:08 -070063 select SYS_FSL_DDR_BE
York Sunb6fffd82016-10-04 18:03:08 -070064 select SYS_FSL_DDR_VER_50
York Sunf195cf72017-01-27 09:57:31 -080065 select SYS_FSL_ERRATUM_A008336
York Sun1dc61ca2016-12-28 08:43:41 -080066 select SYS_FSL_ERRATUM_A008511
Shengzhou Liua7c37c62017-03-23 18:14:40 +080067 select SYS_FSL_ERRATUM_A008850
Ran Wange64f7472017-09-04 18:46:50 +080068 select SYS_FSL_ERRATUM_A008997
Ran Wang3ba69482017-09-04 18:46:51 +080069 select SYS_FSL_ERRATUM_A009007
Ran Wangb358b7b2017-09-04 18:46:48 +080070 select SYS_FSL_ERRATUM_A009008
Ran Wang9e8fabc2017-09-04 18:46:49 +080071 select SYS_FSL_ERRATUM_A009798
York Sun1dc61ca2016-12-28 08:43:41 -080072 select SYS_FSL_ERRATUM_A009801
73 select SYS_FSL_ERRATUM_A009803
74 select SYS_FSL_ERRATUM_A009942
75 select SYS_FSL_ERRATUM_A010165
Hou Zhiqiangc06b30a2016-09-29 12:42:44 +080076 select SYS_FSL_ERRATUM_A010539
York Sund297d392016-12-28 08:43:40 -080077 select SYS_FSL_HAS_DDR4
York Sun6b62ef02016-10-04 18:01:34 -070078 select SYS_FSL_SRDS_2
Simon Glass62adede2017-01-23 13:31:19 -070079 select ARCH_EARLY_INIT_R
Simon Glass7a99a872017-01-23 13:31:20 -070080 select BOARD_EARLY_INIT_F
Sriram Dash7122a0c2018-02-06 11:26:30 +053081 select SYS_I2C_MXC
82 select SYS_I2C_MXC_I2C1
83 select SYS_I2C_MXC_I2C2
84 select SYS_I2C_MXC_I2C3
85 select SYS_I2C_MXC_I2C4
Simon Glass0e5faf02017-06-14 21:28:21 -060086 imply SCSI
Tuomas Tynkkynenedf9f622017-12-08 15:36:19 +020087 imply SCSI_AHCI
York Sunb3d71642016-09-26 08:09:26 -070088
Ashish Kumarb25faa22017-08-31 16:12:53 +053089config ARCH_LS1088A
90 bool
91 select ARMV8_SET_SMPEN
Alison Wangc1293872017-12-28 13:00:55 +080092 select ARM_ERRATA_855873
Ashish Kumarb25faa22017-08-31 16:12:53 +053093 select FSL_LSCH3
Sriram Dash4a943332018-01-30 15:58:44 +053094 select SYS_FSL_SRDS_1
95 select SYS_HAS_SERDES
Ashish Kumarb25faa22017-08-31 16:12:53 +053096 select SYS_FSL_DDR
97 select SYS_FSL_DDR_LE
98 select SYS_FSL_DDR_VER_50
Ashish Kumarec455e22017-08-31 16:37:31 +053099 select SYS_FSL_EC1
100 select SYS_FSL_EC2
Ashish Kumarb25faa22017-08-31 16:12:53 +0530101 select SYS_FSL_ERRATUM_A009803
102 select SYS_FSL_ERRATUM_A009942
103 select SYS_FSL_ERRATUM_A010165
104 select SYS_FSL_ERRATUM_A008511
105 select SYS_FSL_ERRATUM_A008850
Ran Wangef277072017-09-22 15:21:34 +0800106 select SYS_FSL_ERRATUM_A009007
Ashish Kumarb25faa22017-08-31 16:12:53 +0530107 select SYS_FSL_HAS_CCI400
108 select SYS_FSL_HAS_DDR4
Ashish Kumarec455e22017-08-31 16:37:31 +0530109 select SYS_FSL_HAS_RGMII
Ashish Kumarb25faa22017-08-31 16:12:53 +0530110 select SYS_FSL_HAS_SEC
111 select SYS_FSL_SEC_COMPAT_5
112 select SYS_FSL_SEC_LE
113 select SYS_FSL_SRDS_1
114 select SYS_FSL_SRDS_2
115 select FSL_TZASC_1
116 select ARCH_EARLY_INIT_R
117 select BOARD_EARLY_INIT_F
Sriram Dash7122a0c2018-02-06 11:26:30 +0530118 select SYS_I2C_MXC
119 select SYS_I2C_MXC_I2C1
120 select SYS_I2C_MXC_I2C2
121 select SYS_I2C_MXC_I2C3
122 select SYS_I2C_MXC_I2C4
Ashish Kumara179e562017-11-02 09:50:47 +0530123 imply SCSI
Masahiro Yamadaacede7a2017-12-04 12:37:00 +0900124 imply PANIC_HANG
Ashish Kumarb25faa22017-08-31 16:12:53 +0530125
York Sunfcd0e742016-10-04 14:31:47 -0700126config ARCH_LS2080A
127 bool
Hou Zhiqiang4d1525a2017-01-06 17:41:11 +0800128 select ARMV8_SET_SMPEN
Tom Rinibacb52c2017-03-07 07:13:42 -0500129 select ARM_ERRATA_826974
130 select ARM_ERRATA_828024
131 select ARM_ERRATA_829520
132 select ARM_ERRATA_833471
York Sun4dd8c612016-10-04 14:31:48 -0700133 select FSL_LSCH3
Sriram Dash4a943332018-01-30 15:58:44 +0530134 select SYS_FSL_SRDS_1
135 select SYS_HAS_SERDES
York Sund297d392016-12-28 08:43:40 -0800136 select SYS_FSL_DDR
York Sunb6fffd82016-10-04 18:03:08 -0700137 select SYS_FSL_DDR_LE
138 select SYS_FSL_DDR_VER_50
Ashish Kumar97393d62017-08-18 10:54:36 +0530139 select SYS_FSL_HAS_CCN504
York Sun6b62ef02016-10-04 18:01:34 -0700140 select SYS_FSL_HAS_DP_DDR
York Sun92c36e22016-12-28 08:43:30 -0800141 select SYS_FSL_HAS_SEC
York Sund297d392016-12-28 08:43:40 -0800142 select SYS_FSL_HAS_DDR4
York Sun92c36e22016-12-28 08:43:30 -0800143 select SYS_FSL_SEC_COMPAT_5
York Sunfa4199422016-12-28 08:43:31 -0800144 select SYS_FSL_SEC_LE
York Sun6b62ef02016-10-04 18:01:34 -0700145 select SYS_FSL_SRDS_2
Ashish kumar76bd6ce2017-04-07 11:40:32 +0530146 select FSL_TZASC_1
147 select FSL_TZASC_2
York Sun1dc61ca2016-12-28 08:43:41 -0800148 select SYS_FSL_ERRATUM_A008336
149 select SYS_FSL_ERRATUM_A008511
150 select SYS_FSL_ERRATUM_A008514
151 select SYS_FSL_ERRATUM_A008585
Ran Wange64f7472017-09-04 18:46:50 +0800152 select SYS_FSL_ERRATUM_A008997
Ran Wang3ba69482017-09-04 18:46:51 +0800153 select SYS_FSL_ERRATUM_A009007
Ran Wangb358b7b2017-09-04 18:46:48 +0800154 select SYS_FSL_ERRATUM_A009008
York Sun1dc61ca2016-12-28 08:43:41 -0800155 select SYS_FSL_ERRATUM_A009635
156 select SYS_FSL_ERRATUM_A009663
Ran Wang9e8fabc2017-09-04 18:46:49 +0800157 select SYS_FSL_ERRATUM_A009798
York Sun1dc61ca2016-12-28 08:43:41 -0800158 select SYS_FSL_ERRATUM_A009801
159 select SYS_FSL_ERRATUM_A009803
160 select SYS_FSL_ERRATUM_A009942
161 select SYS_FSL_ERRATUM_A010165
Ashish kumar3b52a232017-02-23 16:03:57 +0530162 select SYS_FSL_ERRATUM_A009203
Simon Glass62adede2017-01-23 13:31:19 -0700163 select ARCH_EARLY_INIT_R
Simon Glass7a99a872017-01-23 13:31:20 -0700164 select BOARD_EARLY_INIT_F
Sriram Dash7122a0c2018-02-06 11:26:30 +0530165 select SYS_I2C_MXC
166 select SYS_I2C_MXC_I2C1
167 select SYS_I2C_MXC_I2C2
168 select SYS_I2C_MXC_I2C3
169 select SYS_I2C_MXC_I2C4
Masahiro Yamada9afc6c52018-04-25 18:47:52 +0900170 imply DISTRO_DEFAULTS
Masahiro Yamadaacede7a2017-12-04 12:37:00 +0900171 imply PANIC_HANG
York Sun4dd8c612016-10-04 14:31:48 -0700172
173config FSL_LSCH2
174 bool
Ashish Kumar11234062017-08-11 11:09:14 +0530175 select SYS_FSL_HAS_CCI400
York Sun92c36e22016-12-28 08:43:30 -0800176 select SYS_FSL_HAS_SEC
177 select SYS_FSL_SEC_COMPAT_5
York Sunfa4199422016-12-28 08:43:31 -0800178 select SYS_FSL_SEC_BE
York Sun4dd8c612016-10-04 14:31:48 -0700179
180config FSL_LSCH3
181 bool
182
York Sun6c089742017-03-06 09:02:25 -0800183config FSL_MC_ENET
184 bool "Management Complex network"
Ashish Kumarb25faa22017-08-31 16:12:53 +0530185 depends on ARCH_LS2080A || ARCH_LS1088A
York Sun6c089742017-03-06 09:02:25 -0800186 default y
187 select RESV_RAM
188 help
189 Enable Management Complex (MC) network
190
York Sun4dd8c612016-10-04 14:31:48 -0700191menu "Layerscape architecture"
192 depends on FSL_LSCH2 || FSL_LSCH3
York Sunfcd0e742016-10-04 14:31:47 -0700193
Hou Zhiqiangd553bf22016-12-13 14:54:24 +0800194config FSL_PCIE_COMPAT
195 string "PCIe compatible of Kernel DT"
196 depends on PCIE_LAYERSCAPE
197 default "fsl,ls1012a-pcie" if ARCH_LS1012A
198 default "fsl,ls1043a-pcie" if ARCH_LS1043A
199 default "fsl,ls1046a-pcie" if ARCH_LS1046A
200 default "fsl,ls2080a-pcie" if ARCH_LS2080A
Ashish Kumarb25faa22017-08-31 16:12:53 +0530201 default "fsl,ls1088a-pcie" if ARCH_LS1088A
Hou Zhiqiangd553bf22016-12-13 14:54:24 +0800202 help
203 This compatible is used to find pci controller node in Kernel DT
204 to complete fixup.
205
Wenbin Songa8f57a92017-01-17 18:31:15 +0800206config HAS_FEATURE_GIC64K_ALIGN
207 bool
208 default y if ARCH_LS1043A
209
Wenbin Songc6bc7c02017-01-17 18:31:16 +0800210config HAS_FEATURE_ENHANCED_MSI
211 bool
212 default y if ARCH_LS1043A
Wenbin Songa8f57a92017-01-17 18:31:15 +0800213
macro.wave.z@gmail.comec2d7ed2016-12-08 11:58:21 +0800214menu "Layerscape PPA"
215config FSL_LS_PPA
216 bool "FSL Layerscape PPA firmware support"
macro.wave.z@gmail.com01bd3342016-12-08 11:58:22 +0800217 depends on !ARMV8_PSCI
Hou Zhiqiangbff56d52017-01-16 17:31:49 +0800218 select ARMV8_SEC_FIRMWARE_SUPPORT
Hou Zhiqiang6be115d2017-01-16 17:31:48 +0800219 select SEC_FIRMWARE_ARMV8_PSCI
Hou Zhiqiangbff56d52017-01-16 17:31:49 +0800220 select ARMV8_SEC_FIRMWARE_ERET_ADDR_REVERT if FSL_LSCH2
macro.wave.z@gmail.comec2d7ed2016-12-08 11:58:21 +0800221 help
222 The FSL Primary Protected Application (PPA) is a software component
223 which is loaded during boot stage, and then remains resident in RAM
224 and runs in the TrustZone after boot.
225 Say y to enable it.
York Sunf2aaf842017-05-15 08:52:00 -0700226
227config SPL_FSL_LS_PPA
228 bool "FSL Layerscape PPA firmware support for SPL build"
229 depends on !ARMV8_PSCI
230 select SPL_ARMV8_SEC_FIRMWARE_SUPPORT
231 select SEC_FIRMWARE_ARMV8_PSCI
232 select ARMV8_SEC_FIRMWARE_ERET_ADDR_REVERT if FSL_LSCH2
233 help
234 The FSL Primary Protected Application (PPA) is a software component
235 which is loaded during boot stage, and then remains resident in RAM
236 and runs in the TrustZone after boot. This is to load PPA during SPL
237 stage instead of the RAM version of U-Boot. Once PPA is initialized,
238 the rest of U-Boot (including RAM version) runs at EL2.
Hou Zhiqiangbff56d52017-01-16 17:31:49 +0800239choice
240 prompt "FSL Layerscape PPA firmware loading-media select"
241 depends on FSL_LS_PPA
Hou Zhiqiangbd6e2cd2017-03-17 16:12:33 +0800242 default SYS_LS_PPA_FW_IN_MMC if SD_BOOT
243 default SYS_LS_PPA_FW_IN_NAND if NAND_BOOT
Hou Zhiqiangbff56d52017-01-16 17:31:49 +0800244 default SYS_LS_PPA_FW_IN_XIP
245
246config SYS_LS_PPA_FW_IN_XIP
247 bool "XIP"
248 help
249 Say Y here if the PPA firmware locate at XIP flash, such
250 as NOR or QSPI flash.
251
Hou Zhiqiangbd6e2cd2017-03-17 16:12:33 +0800252config SYS_LS_PPA_FW_IN_MMC
253 bool "eMMC or SD Card"
254 help
255 Say Y here if the PPA firmware locate at eMMC/SD card.
256
257config SYS_LS_PPA_FW_IN_NAND
258 bool "NAND"
259 help
260 Say Y here if the PPA firmware locate at NAND flash.
261
Hou Zhiqiangbff56d52017-01-16 17:31:49 +0800262endchoice
263
264config SYS_LS_PPA_FW_ADDR
265 hex "Address of PPA firmware loading from"
266 depends on FSL_LS_PPA
Priyanka Jain7d05b992017-04-28 10:41:35 +0530267 default 0x20400000 if SYS_LS_PPA_FW_IN_XIP && QSPI_BOOT && ARCH_LS2080A
Alison Wangb5b8bfa2017-05-16 10:45:58 +0800268 default 0x40400000 if SYS_LS_PPA_FW_IN_XIP && QSPI_BOOT
Santan Kumar0f0173d2017-04-28 12:47:24 +0530269 default 0x580400000 if SYS_LS_PPA_FW_IN_XIP && ARCH_LS2080A
Ashish Kumar227b4bc2017-08-31 16:12:54 +0530270 default 0x20400000 if SYS_LS_PPA_FW_IN_XIP && ARCH_LS1088A
Alison Wangb5b8bfa2017-05-16 10:45:58 +0800271 default 0x60400000 if SYS_LS_PPA_FW_IN_XIP
272 default 0x400000 if SYS_LS_PPA_FW_IN_MMC
273 default 0x400000 if SYS_LS_PPA_FW_IN_NAND
Hou Zhiqiangbd6e2cd2017-03-17 16:12:33 +0800274
Hou Zhiqiangbff56d52017-01-16 17:31:49 +0800275 help
276 If the PPA firmware locate at XIP flash, such as NOR or
277 QSPI flash, this address is a directly memory-mapped.
278 If it is in a serial accessed flash, such as NAND and SD
279 card, it is a byte offset.
Vinitha Pillai-B57223a4b3ded2017-03-23 13:48:14 +0530280
281config SYS_LS_PPA_ESBC_ADDR
282 hex "hdr address of PPA firmware loading from"
283 depends on FSL_LS_PPA && CHAIN_OF_TRUST
Sumit Garg666bbd02017-08-16 07:13:28 -0400284 default 0x60680000 if SYS_LS_PPA_FW_IN_XIP && ARCH_LS1043A
285 default 0x40680000 if SYS_LS_PPA_FW_IN_XIP && ARCH_LS1046A
286 default 0x40680000 if SYS_LS_PPA_FW_IN_XIP && ARCH_LS1012A
Udit Agarwalc83ea8a2017-08-16 07:13:29 -0400287 default 0x20680000 if SYS_LS_PPA_FW_IN_XIP && QSPI_BOOT && ARCH_LS2080A
288 default 0x580680000 if SYS_LS_PPA_FW_IN_XIP && ARCH_LS2080A
Udit Agarwal09fd5792017-11-22 09:01:26 +0530289 default 0x20680000 if SYS_LS_PPA_FW_IN_XIP && ARCH_LS1088A
Sumit Garg666bbd02017-08-16 07:13:28 -0400290 default 0x680000 if SYS_LS_PPA_FW_IN_MMC
291 default 0x680000 if SYS_LS_PPA_FW_IN_NAND
Vinitha Pillai-B57223a4b3ded2017-03-23 13:48:14 +0530292 help
293 If the PPA header firmware locate at XIP flash, such as NOR or
294 QSPI flash, this address is a directly memory-mapped.
295 If it is in a serial accessed flash, such as NAND and SD
296 card, it is a byte offset.
297
Sumit Garg8fddf752017-04-20 05:09:11 +0530298config LS_PPA_ESBC_HDR_SIZE
299 hex "Length of PPA ESBC header"
300 depends on FSL_LS_PPA && CHAIN_OF_TRUST && !SYS_LS_PPA_FW_IN_XIP
301 default 0x2000
302 help
303 Length (in bytes) of PPA ESBC header to be copied from MMC/SD or
304 NAND to memory to validate PPA image.
305
macro.wave.z@gmail.comec2d7ed2016-12-08 11:58:21 +0800306endmenu
307
Ran Wange64f7472017-09-04 18:46:50 +0800308config SYS_FSL_ERRATUM_A008997
309 bool "Workaround for USB PHY erratum A008997"
310
Ran Wang3ba69482017-09-04 18:46:51 +0800311config SYS_FSL_ERRATUM_A009007
312 bool
313 help
314 Workaround for USB PHY erratum A009007
315
Ran Wangb358b7b2017-09-04 18:46:48 +0800316config SYS_FSL_ERRATUM_A009008
317 bool "Workaround for USB PHY erratum A009008"
318
Ran Wang9e8fabc2017-09-04 18:46:49 +0800319config SYS_FSL_ERRATUM_A009798
320 bool "Workaround for USB PHY erratum A009798"
321
York Sun149eb332016-09-26 08:09:27 -0700322config SYS_FSL_ERRATUM_A010315
323 bool "Workaround for PCIe erratum A010315"
Hou Zhiqiangc06b30a2016-09-29 12:42:44 +0800324
325config SYS_FSL_ERRATUM_A010539
326 bool "Workaround for PIN MUX erratum A010539"
York Sun4dd8c612016-10-04 14:31:48 -0700327
York Sunf188d222016-10-04 14:45:01 -0700328config MAX_CPUS
329 int "Maximum number of CPUs permitted for Layerscape"
330 default 4 if ARCH_LS1043A
331 default 4 if ARCH_LS1046A
332 default 16 if ARCH_LS2080A
Ashish Kumarb25faa22017-08-31 16:12:53 +0530333 default 8 if ARCH_LS1088A
York Sunf188d222016-10-04 14:45:01 -0700334 default 1
335 help
336 Set this number to the maximum number of possible CPUs in the SoC.
337 SoCs may have multiple clusters with each cluster may have multiple
338 ports. If some ports are reserved but higher ports are used for
339 cores, count the reserved ports. This will allocate enough memory
340 in spin table to properly handle all cores.
341
York Sun728e7002016-12-02 09:32:35 -0800342config SECURE_BOOT
York Sun8a3d8ed2017-01-04 10:32:08 -0800343 bool "Secure Boot"
York Sun728e7002016-12-02 09:32:35 -0800344 help
345 Enable Freescale Secure Boot feature
346
Yuan Yao52ae4fd2016-12-01 10:13:52 +0800347config QSPI_AHB_INIT
348 bool "Init the QSPI AHB bus"
349 help
350 The default setting for QSPI AHB bus just support 3bytes addressing.
351 But some QSPI flash size up to 64MBytes, so initialize the QSPI AHB
352 bus for those flashes to support the full QSPI flash size.
353
Ashish Kumar11234062017-08-11 11:09:14 +0530354config SYS_CCI400_OFFSET
355 hex "Offset for CCI400 base"
356 depends on SYS_FSL_HAS_CCI400
357 default 0x3090000 if ARCH_LS1088A
358 default 0x180000 if FSL_LSCH2
359 help
360 Offset for CCI400 base
361 CCI400 base addr = CCSRBAR + CCI400_OFFSET
362
York Sune7310a32016-10-04 14:45:54 -0700363config SYS_FSL_IFC_BANK_COUNT
364 int "Maximum banks of Integrated flash controller"
Ashish Kumarb25faa22017-08-31 16:12:53 +0530365 depends on ARCH_LS1043A || ARCH_LS1046A || ARCH_LS2080A || ARCH_LS1088A
York Sune7310a32016-10-04 14:45:54 -0700366 default 4 if ARCH_LS1043A
367 default 4 if ARCH_LS1046A
Ashish Kumarb25faa22017-08-31 16:12:53 +0530368 default 8 if ARCH_LS2080A || ARCH_LS1088A
York Sune7310a32016-10-04 14:45:54 -0700369
Ashish Kumar11234062017-08-11 11:09:14 +0530370config SYS_FSL_HAS_CCI400
371 bool
372
Ashish Kumar97393d62017-08-18 10:54:36 +0530373config SYS_FSL_HAS_CCN504
374 bool
375
York Sun0dc9abb2016-10-04 14:46:50 -0700376config SYS_FSL_HAS_DP_DDR
377 bool
378
York Sun6b62ef02016-10-04 18:01:34 -0700379config SYS_FSL_SRDS_1
380 bool
381
382config SYS_FSL_SRDS_2
383 bool
384
385config SYS_HAS_SERDES
386 bool
387
Ashish kumar76bd6ce2017-04-07 11:40:32 +0530388config FSL_TZASC_1
389 bool
390
391config FSL_TZASC_2
392 bool
393
York Sun4dd8c612016-10-04 14:31:48 -0700394endmenu
York Sun1dc61ca2016-12-28 08:43:41 -0800395
Hou Zhiqiang3f91cda2017-01-10 16:44:15 +0800396menu "Layerscape clock tree configuration"
397 depends on FSL_LSCH2 || FSL_LSCH3
398
399config SYS_FSL_CLK
400 bool "Enable clock tree initialization"
401 default y
402
403config CLUSTER_CLK_FREQ
404 int "Reference clock of core cluster"
405 depends on ARCH_LS1012A
406 default 100000000
407 help
408 This number is the reference clock frequency of core PLL.
409 For most platforms, the core PLL and Platform PLL have the same
410 reference clock, but for some platforms, LS1012A for instance,
411 they are provided sepatately.
412
413config SYS_FSL_PCLK_DIV
414 int "Platform clock divider"
415 default 1 if ARCH_LS1043A
416 default 1 if ARCH_LS1046A
Ashish Kumarb25faa22017-08-31 16:12:53 +0530417 default 1 if ARCH_LS1088A
Hou Zhiqiang3f91cda2017-01-10 16:44:15 +0800418 default 2
419 help
420 This is the divider that is used to derive Platform clock from
421 Platform PLL, in another word:
422 Platform_clk = Platform_PLL_freq / this_divider
423
424config SYS_FSL_DSPI_CLK_DIV
425 int "DSPI clock divider"
426 default 1 if ARCH_LS1043A
427 default 2
428 help
429 This is the divider that is used to derive DSPI clock from Platform
Hou Zhiqiang0c8fcb62017-07-03 18:37:11 +0800430 clock, in another word DSPI_clk = Platform_clk / this_divider.
Hou Zhiqiang3f91cda2017-01-10 16:44:15 +0800431
432config SYS_FSL_DUART_CLK_DIV
433 int "DUART clock divider"
434 default 1 if ARCH_LS1043A
435 default 2
436 help
437 This is the divider that is used to derive DUART clock from Platform
438 clock, in another word DUART_clk = Platform_clk / this_divider.
439
440config SYS_FSL_I2C_CLK_DIV
441 int "I2C clock divider"
442 default 1 if ARCH_LS1043A
443 default 2
444 help
445 This is the divider that is used to derive I2C clock from Platform
446 clock, in another word I2C_clk = Platform_clk / this_divider.
447
448config SYS_FSL_IFC_CLK_DIV
449 int "IFC clock divider"
450 default 1 if ARCH_LS1043A
451 default 2
452 help
453 This is the divider that is used to derive IFC clock from Platform
454 clock, in another word IFC_clk = Platform_clk / this_divider.
455
456config SYS_FSL_LPUART_CLK_DIV
457 int "LPUART clock divider"
458 default 1 if ARCH_LS1043A
459 default 2
460 help
461 This is the divider that is used to derive LPUART clock from Platform
462 clock, in another word LPUART_clk = Platform_clk / this_divider.
463
464config SYS_FSL_SDHC_CLK_DIV
465 int "SDHC clock divider"
466 default 1 if ARCH_LS1043A
467 default 1 if ARCH_LS1012A
468 default 2
469 help
470 This is the divider that is used to derive SDHC clock from Platform
471 clock, in another word SDHC_clk = Platform_clk / this_divider.
Hou Zhiqiangfef32c62018-04-25 16:28:44 +0800472
473config SYS_FSL_QMAN_CLK_DIV
474 int "QMAN clock divider"
475 default 1 if ARCH_LS1043A
476 default 2
477 help
478 This is the divider that is used to derive QMAN clock from Platform
479 clock, in another word QMAN_clk = Platform_clk / this_divider.
Hou Zhiqiang3f91cda2017-01-10 16:44:15 +0800480endmenu
481
York Sund6964b32017-03-06 09:02:24 -0800482config RESV_RAM
483 bool
484 help
485 Reserve memory from the top, tracked by gd->arch.resv_ram. This
486 reserved RAM can be used by special driver that resides in memory
487 after U-Boot exits. It's up to implementation to allocate and allow
488 access to this reserved memory. For example, the reserved RAM can
489 be at the high end of physical memory. The reserve RAM may be
490 excluded from memory bank(s) passed to OS, or marked as reserved.
491
Ashish Kumarec455e22017-08-31 16:37:31 +0530492config SYS_FSL_EC1
493 bool
494 help
495 Ethernet controller 1, this is connected to MAC3.
496 Provides DPAA2 capabilities
497
498config SYS_FSL_EC2
499 bool
500 help
501 Ethernet controller 2, this is connected to MAC4.
502 Provides DPAA2 capabilities
503
York Sun1dc61ca2016-12-28 08:43:41 -0800504config SYS_FSL_ERRATUM_A008336
505 bool
506
507config SYS_FSL_ERRATUM_A008514
508 bool
509
510config SYS_FSL_ERRATUM_A008585
511 bool
512
513config SYS_FSL_ERRATUM_A008850
514 bool
515
Ashish kumar3b52a232017-02-23 16:03:57 +0530516config SYS_FSL_ERRATUM_A009203
517 bool
518
York Sun1dc61ca2016-12-28 08:43:41 -0800519config SYS_FSL_ERRATUM_A009635
520 bool
521
522config SYS_FSL_ERRATUM_A009660
523 bool
524
525config SYS_FSL_ERRATUM_A009929
526 bool
York Sun1a770752017-03-06 09:02:26 -0800527
Ashish Kumarec455e22017-08-31 16:37:31 +0530528
529config SYS_FSL_HAS_RGMII
530 bool
531 depends on SYS_FSL_EC1 || SYS_FSL_EC2
532
533
York Sun1a770752017-03-06 09:02:26 -0800534config SYS_MC_RSV_MEM_ALIGN
535 hex "Management Complex reserved memory alignment"
536 depends on RESV_RAM
Ashish Kumarb0392702017-12-08 11:10:40 +0530537 default 0x20000000 if ARCH_LS2080A || ARCH_LS1088A
York Sun1a770752017-03-06 09:02:26 -0800538 help
539 Reserved memory needs to be aligned for MC to use. Default value
540 is 512MB.
Philipp Tomsich2d6a0cc2017-08-03 23:23:55 +0200541
542config SPL_LDSCRIPT
543 default "arch/arm/cpu/armv8/u-boot-spl.lds" if ARCH_LS1043A || ARCH_LS1046A || ARCH_LS2080A
Ran Wang5959f842017-10-23 10:09:21 +0800544
545config HAS_FSL_XHCI_USB
546 bool
547 default y if ARCH_LS1043A || ARCH_LS1046A
548 help
549 For some SoC(such as LS1043A and LS1046A), USB and QE-HDLC multiplex use
550 pins, select it when the pins are assigned to USB.