]> git.sur5r.net Git - u-boot/blob - arch/arm/cpu/armv8/fsl-layerscape/Kconfig
armv8: ls1088a: Add NXP LS1088A SoC support
[u-boot] / arch / arm / cpu / armv8 / fsl-layerscape / Kconfig
1 config ARCH_LS1012A
2         bool
3         select ARMV8_SET_SMPEN
4         select FSL_LSCH2
5         select SYS_FSL_DDR_BE
6         select SYS_FSL_MMDC
7         select SYS_FSL_ERRATUM_A010315
8         select ARCH_EARLY_INIT_R
9         select BOARD_EARLY_INIT_F
10
11 config ARCH_LS1043A
12         bool
13         select ARMV8_SET_SMPEN
14         select FSL_LSCH2
15         select SYS_FSL_DDR
16         select SYS_FSL_DDR_BE
17         select SYS_FSL_DDR_VER_50
18         select SYS_FSL_ERRATUM_A008850
19         select SYS_FSL_ERRATUM_A009660
20         select SYS_FSL_ERRATUM_A009663
21         select SYS_FSL_ERRATUM_A009929
22         select SYS_FSL_ERRATUM_A009942
23         select SYS_FSL_ERRATUM_A010315
24         select SYS_FSL_ERRATUM_A010539
25         select SYS_FSL_HAS_DDR3
26         select SYS_FSL_HAS_DDR4
27         select ARCH_EARLY_INIT_R
28         select BOARD_EARLY_INIT_F
29         imply SCSI
30         imply CMD_PCI
31
32 config ARCH_LS1046A
33         bool
34         select ARMV8_SET_SMPEN
35         select FSL_LSCH2
36         select SYS_FSL_DDR
37         select SYS_FSL_DDR_BE
38         select SYS_FSL_DDR_VER_50
39         select SYS_FSL_ERRATUM_A008336
40         select SYS_FSL_ERRATUM_A008511
41         select SYS_FSL_ERRATUM_A008850
42         select SYS_FSL_ERRATUM_A009801
43         select SYS_FSL_ERRATUM_A009803
44         select SYS_FSL_ERRATUM_A009942
45         select SYS_FSL_ERRATUM_A010165
46         select SYS_FSL_ERRATUM_A010539
47         select SYS_FSL_HAS_DDR4
48         select SYS_FSL_SRDS_2
49         select ARCH_EARLY_INIT_R
50         select BOARD_EARLY_INIT_F
51         imply SCSI
52
53 config ARCH_LS1088A
54         bool
55         select ARMV8_SET_SMPEN
56         select FSL_LSCH3
57         select SYS_FSL_DDR
58         select SYS_FSL_DDR_LE
59         select SYS_FSL_DDR_VER_50
60         select SYS_FSL_ERRATUM_A009803
61         select SYS_FSL_ERRATUM_A009942
62         select SYS_FSL_ERRATUM_A010165
63         select SYS_FSL_ERRATUM_A008511
64         select SYS_FSL_ERRATUM_A008850
65         select SYS_FSL_HAS_CCI400
66         select SYS_FSL_HAS_DDR4
67         select SYS_FSL_HAS_SEC
68         select SYS_FSL_SEC_COMPAT_5
69         select SYS_FSL_SEC_LE
70         select SYS_FSL_SRDS_1
71         select SYS_FSL_SRDS_2
72         select FSL_TZASC_1
73         select ARCH_EARLY_INIT_R
74         select BOARD_EARLY_INIT_F
75
76 config ARCH_LS2080A
77         bool
78         select ARMV8_SET_SMPEN
79         select ARM_ERRATA_826974
80         select ARM_ERRATA_828024
81         select ARM_ERRATA_829520
82         select ARM_ERRATA_833471
83         select FSL_LSCH3
84         select SYS_FSL_DDR
85         select SYS_FSL_DDR_LE
86         select SYS_FSL_DDR_VER_50
87         select SYS_FSL_HAS_CCN504
88         select SYS_FSL_HAS_DP_DDR
89         select SYS_FSL_HAS_SEC
90         select SYS_FSL_HAS_DDR4
91         select SYS_FSL_SEC_COMPAT_5
92         select SYS_FSL_SEC_LE
93         select SYS_FSL_SRDS_2
94         select FSL_TZASC_1
95         select FSL_TZASC_2
96         select SYS_FSL_ERRATUM_A008336
97         select SYS_FSL_ERRATUM_A008511
98         select SYS_FSL_ERRATUM_A008514
99         select SYS_FSL_ERRATUM_A008585
100         select SYS_FSL_ERRATUM_A009635
101         select SYS_FSL_ERRATUM_A009663
102         select SYS_FSL_ERRATUM_A009801
103         select SYS_FSL_ERRATUM_A009803
104         select SYS_FSL_ERRATUM_A009942
105         select SYS_FSL_ERRATUM_A010165
106         select SYS_FSL_ERRATUM_A009203
107         select ARCH_EARLY_INIT_R
108         select BOARD_EARLY_INIT_F
109
110 config FSL_LSCH2
111         bool
112         select SYS_FSL_HAS_CCI400
113         select SYS_FSL_HAS_SEC
114         select SYS_FSL_SEC_COMPAT_5
115         select SYS_FSL_SEC_BE
116         select SYS_FSL_SRDS_1
117         select SYS_HAS_SERDES
118
119 config FSL_LSCH3
120         bool
121         select SYS_FSL_SRDS_1
122         select SYS_HAS_SERDES
123
124 config FSL_MC_ENET
125         bool "Management Complex network"
126         depends on ARCH_LS2080A || ARCH_LS1088A
127         default y
128         select RESV_RAM
129         help
130           Enable Management Complex (MC) network
131
132 menu "Layerscape architecture"
133         depends on FSL_LSCH2 || FSL_LSCH3
134
135 config FSL_PCIE_COMPAT
136         string "PCIe compatible of Kernel DT"
137         depends on PCIE_LAYERSCAPE
138         default "fsl,ls1012a-pcie" if ARCH_LS1012A
139         default "fsl,ls1043a-pcie" if ARCH_LS1043A
140         default "fsl,ls1046a-pcie" if ARCH_LS1046A
141         default "fsl,ls2080a-pcie" if ARCH_LS2080A
142         default "fsl,ls1088a-pcie" if ARCH_LS1088A
143         help
144           This compatible is used to find pci controller node in Kernel DT
145           to complete fixup.
146
147 config HAS_FEATURE_GIC64K_ALIGN
148         bool
149         default y if ARCH_LS1043A
150
151 config HAS_FEATURE_ENHANCED_MSI
152         bool
153         default y if ARCH_LS1043A
154
155 menu "Layerscape PPA"
156 config FSL_LS_PPA
157         bool "FSL Layerscape PPA firmware support"
158         depends on !ARMV8_PSCI
159         select ARMV8_SEC_FIRMWARE_SUPPORT
160         select SEC_FIRMWARE_ARMV8_PSCI
161         select ARMV8_SEC_FIRMWARE_ERET_ADDR_REVERT if FSL_LSCH2
162         help
163           The FSL Primary Protected Application (PPA) is a software component
164           which is loaded during boot stage, and then remains resident in RAM
165           and runs in the TrustZone after boot.
166           Say y to enable it.
167
168 config SPL_FSL_LS_PPA
169         bool "FSL Layerscape PPA firmware support for SPL build"
170         depends on !ARMV8_PSCI
171         select SPL_ARMV8_SEC_FIRMWARE_SUPPORT
172         select SEC_FIRMWARE_ARMV8_PSCI
173         select ARMV8_SEC_FIRMWARE_ERET_ADDR_REVERT if FSL_LSCH2
174         help
175           The FSL Primary Protected Application (PPA) is a software component
176           which is loaded during boot stage, and then remains resident in RAM
177           and runs in the TrustZone after boot. This is to load PPA during SPL
178           stage instead of the RAM version of U-Boot. Once PPA is initialized,
179           the rest of U-Boot (including RAM version) runs at EL2.
180 choice
181         prompt "FSL Layerscape PPA firmware loading-media select"
182         depends on FSL_LS_PPA
183         default SYS_LS_PPA_FW_IN_MMC if SD_BOOT
184         default SYS_LS_PPA_FW_IN_NAND if NAND_BOOT
185         default SYS_LS_PPA_FW_IN_XIP
186
187 config SYS_LS_PPA_FW_IN_XIP
188         bool "XIP"
189         help
190           Say Y here if the PPA firmware locate at XIP flash, such
191           as NOR or QSPI flash.
192
193 config SYS_LS_PPA_FW_IN_MMC
194         bool "eMMC or SD Card"
195         help
196           Say Y here if the PPA firmware locate at eMMC/SD card.
197
198 config SYS_LS_PPA_FW_IN_NAND
199         bool "NAND"
200         help
201           Say Y here if the PPA firmware locate at NAND flash.
202
203 endchoice
204
205 config SYS_LS_PPA_FW_ADDR
206         hex "Address of PPA firmware loading from"
207         depends on FSL_LS_PPA
208         default 0x20400000 if SYS_LS_PPA_FW_IN_XIP && QSPI_BOOT && ARCH_LS2080A
209         default 0x40400000 if SYS_LS_PPA_FW_IN_XIP && QSPI_BOOT
210         default 0x580400000 if SYS_LS_PPA_FW_IN_XIP && ARCH_LS2080A
211         default 0x60400000 if SYS_LS_PPA_FW_IN_XIP
212         default 0x400000 if SYS_LS_PPA_FW_IN_MMC
213         default 0x400000 if SYS_LS_PPA_FW_IN_NAND
214
215         help
216           If the PPA firmware locate at XIP flash, such as NOR or
217           QSPI flash, this address is a directly memory-mapped.
218           If it is in a serial accessed flash, such as NAND and SD
219           card, it is a byte offset.
220
221 config SYS_LS_PPA_ESBC_ADDR
222         hex "hdr address of PPA firmware loading from"
223         depends on FSL_LS_PPA && CHAIN_OF_TRUST
224         default 0x60680000 if SYS_LS_PPA_FW_IN_XIP && ARCH_LS1043A
225         default 0x40680000 if SYS_LS_PPA_FW_IN_XIP && ARCH_LS1046A
226         default 0x40680000 if SYS_LS_PPA_FW_IN_XIP && ARCH_LS1012A
227         default 0x20680000 if SYS_LS_PPA_FW_IN_XIP && QSPI_BOOT && ARCH_LS2080A
228         default 0x580680000 if SYS_LS_PPA_FW_IN_XIP && ARCH_LS2080A
229         default 0x680000 if SYS_LS_PPA_FW_IN_MMC
230         default 0x680000 if SYS_LS_PPA_FW_IN_NAND
231         help
232           If the PPA header firmware locate at XIP flash, such as NOR or
233           QSPI flash, this address is a directly memory-mapped.
234           If it is in a serial accessed flash, such as NAND and SD
235           card, it is a byte offset.
236
237 config LS_PPA_ESBC_HDR_SIZE
238         hex "Length of PPA ESBC header"
239         depends on FSL_LS_PPA && CHAIN_OF_TRUST && !SYS_LS_PPA_FW_IN_XIP
240         default 0x2000
241         help
242           Length (in bytes) of PPA ESBC header to be copied from MMC/SD or
243           NAND to memory to validate PPA image.
244
245 endmenu
246
247 config SYS_FSL_ERRATUM_A010315
248         bool "Workaround for PCIe erratum A010315"
249
250 config SYS_FSL_ERRATUM_A010539
251         bool "Workaround for PIN MUX erratum A010539"
252
253 config MAX_CPUS
254         int "Maximum number of CPUs permitted for Layerscape"
255         default 4 if ARCH_LS1043A
256         default 4 if ARCH_LS1046A
257         default 16 if ARCH_LS2080A
258         default 8 if ARCH_LS1088A
259         default 1
260         help
261           Set this number to the maximum number of possible CPUs in the SoC.
262           SoCs may have multiple clusters with each cluster may have multiple
263           ports. If some ports are reserved but higher ports are used for
264           cores, count the reserved ports. This will allocate enough memory
265           in spin table to properly handle all cores.
266
267 config SECURE_BOOT
268         bool "Secure Boot"
269         help
270                 Enable Freescale Secure Boot feature
271
272 config QSPI_AHB_INIT
273         bool "Init the QSPI AHB bus"
274         help
275           The default setting for QSPI AHB bus just support 3bytes addressing.
276           But some QSPI flash size up to 64MBytes, so initialize the QSPI AHB
277           bus for those flashes to support the full QSPI flash size.
278
279 config SYS_CCI400_OFFSET
280         hex "Offset for CCI400 base"
281         depends on SYS_FSL_HAS_CCI400
282         default 0x3090000 if ARCH_LS1088A
283         default 0x180000 if FSL_LSCH2
284         help
285           Offset for CCI400 base
286           CCI400 base addr = CCSRBAR + CCI400_OFFSET
287
288 config SYS_FSL_IFC_BANK_COUNT
289         int "Maximum banks of Integrated flash controller"
290         depends on ARCH_LS1043A || ARCH_LS1046A || ARCH_LS2080A || ARCH_LS1088A
291         default 4 if ARCH_LS1043A
292         default 4 if ARCH_LS1046A
293         default 8 if ARCH_LS2080A || ARCH_LS1088A
294
295 config SYS_FSL_HAS_CCI400
296         bool
297
298 config SYS_FSL_HAS_CCN504
299         bool
300
301 config SYS_FSL_HAS_DP_DDR
302         bool
303
304 config SYS_FSL_SRDS_1
305         bool
306
307 config SYS_FSL_SRDS_2
308         bool
309
310 config SYS_HAS_SERDES
311         bool
312
313 config FSL_TZASC_1
314         bool
315
316 config FSL_TZASC_2
317         bool
318
319 endmenu
320
321 menu "Layerscape clock tree configuration"
322         depends on FSL_LSCH2 || FSL_LSCH3
323
324 config SYS_FSL_CLK
325         bool "Enable clock tree initialization"
326         default y
327
328 config CLUSTER_CLK_FREQ
329         int "Reference clock of core cluster"
330         depends on ARCH_LS1012A
331         default 100000000
332         help
333           This number is the reference clock frequency of core PLL.
334           For most platforms, the core PLL and Platform PLL have the same
335           reference clock, but for some platforms, LS1012A for instance,
336           they are provided sepatately.
337
338 config SYS_FSL_PCLK_DIV
339         int "Platform clock divider"
340         default 1 if ARCH_LS1043A
341         default 1 if ARCH_LS1046A
342         default 1 if ARCH_LS1088A
343         default 2
344         help
345           This is the divider that is used to derive Platform clock from
346           Platform PLL, in another word:
347                 Platform_clk = Platform_PLL_freq / this_divider
348
349 config SYS_FSL_DSPI_CLK_DIV
350         int "DSPI clock divider"
351         default 1 if ARCH_LS1043A
352         default 2
353         help
354           This is the divider that is used to derive DSPI clock from Platform
355           clock, in another word DSPI_clk = Platform_clk / this_divider.
356
357 config SYS_FSL_DUART_CLK_DIV
358         int "DUART clock divider"
359         default 1 if ARCH_LS1043A
360         default 2
361         help
362           This is the divider that is used to derive DUART clock from Platform
363           clock, in another word DUART_clk = Platform_clk / this_divider.
364
365 config SYS_FSL_I2C_CLK_DIV
366         int "I2C clock divider"
367         default 1 if ARCH_LS1043A
368         default 2
369         help
370           This is the divider that is used to derive I2C clock from Platform
371           clock, in another word I2C_clk = Platform_clk / this_divider.
372
373 config SYS_FSL_IFC_CLK_DIV
374         int "IFC clock divider"
375         default 1 if ARCH_LS1043A
376         default 2
377         help
378           This is the divider that is used to derive IFC clock from Platform
379           clock, in another word IFC_clk = Platform_clk / this_divider.
380
381 config SYS_FSL_LPUART_CLK_DIV
382         int "LPUART clock divider"
383         default 1 if ARCH_LS1043A
384         default 2
385         help
386           This is the divider that is used to derive LPUART clock from Platform
387           clock, in another word LPUART_clk = Platform_clk / this_divider.
388
389 config SYS_FSL_SDHC_CLK_DIV
390         int "SDHC clock divider"
391         default 1 if ARCH_LS1043A
392         default 1 if ARCH_LS1012A
393         default 2
394         help
395           This is the divider that is used to derive SDHC clock from Platform
396           clock, in another word SDHC_clk = Platform_clk / this_divider.
397 endmenu
398
399 config RESV_RAM
400         bool
401         help
402           Reserve memory from the top, tracked by gd->arch.resv_ram. This
403           reserved RAM can be used by special driver that resides in memory
404           after U-Boot exits. It's up to implementation to allocate and allow
405           access to this reserved memory. For example, the reserved RAM can
406           be at the high end of physical memory. The reserve RAM may be
407           excluded from memory bank(s) passed to OS, or marked as reserved.
408
409 config SYS_FSL_ERRATUM_A008336
410         bool
411
412 config SYS_FSL_ERRATUM_A008514
413         bool
414
415 config SYS_FSL_ERRATUM_A008585
416         bool
417
418 config SYS_FSL_ERRATUM_A008850
419         bool
420
421 config SYS_FSL_ERRATUM_A009203
422         bool
423
424 config SYS_FSL_ERRATUM_A009635
425         bool
426
427 config SYS_FSL_ERRATUM_A009660
428         bool
429
430 config SYS_FSL_ERRATUM_A009929
431         bool
432
433 config SYS_MC_RSV_MEM_ALIGN
434         hex "Management Complex reserved memory alignment"
435         depends on RESV_RAM
436         default 0x20000000 if ARCH_LS2080A
437         default 0x70000000 if ARCH_LS1088A
438         help
439           Reserved memory needs to be aligned for MC to use. Default value
440           is 512MB.
441
442 config SPL_LDSCRIPT
443         default "arch/arm/cpu/armv8/u-boot-spl.lds" if ARCH_LS1043A || ARCH_LS1046A || ARCH_LS2080A