xref: /openbmc/u-boot/arch/arm/cpu/armv8/fsl-layerscape/Kconfig (revision 2d16a1a6c9eeb30fa6828f048df06ee9807792d3)
19533acf3SYork Sunconfig ARCH_LS1012A
24a444176SYork Sun	bool
3fb2bf8c2SYork Sun	select FSL_LSCH2
424aaa094SYork Sun	select SYS_FSL_DDR_BE
59533acf3SYork Sun	select SYS_FSL_MMDC
60a37cf8fSYork Sun	select SYS_FSL_ERRATUM_A010315
70a37cf8fSYork Sun
80a37cf8fSYork Sunconfig ARCH_LS1043A
94a444176SYork Sun	bool
10fb2bf8c2SYork Sun	select FSL_LSCH2
1124aaa094SYork Sun	select SYS_FSL_DDR_BE
1224aaa094SYork Sun	select SYS_FSL_DDR_VER_50
130a37cf8fSYork Sun	select SYS_FSL_ERRATUM_A010315
140ea3671dSHou Zhiqiang	select SYS_FSL_ERRATUM_A010539
159533acf3SYork Sun
16da28e58aSYork Sunconfig ARCH_LS1046A
174a444176SYork Sun	bool
18fb2bf8c2SYork Sun	select FSL_LSCH2
1924aaa094SYork Sun	select SYS_FSL_DDR_BE
2024aaa094SYork Sun	select SYS_FSL_DDR4
2124aaa094SYork Sun	select SYS_FSL_DDR_VER_50
220ea3671dSHou Zhiqiang	select SYS_FSL_ERRATUM_A010539
23f534b8f5SYork Sun	select SYS_FSL_SRDS_2
249533acf3SYork Sun
254a444176SYork Sunconfig ARCH_LS2080A
264a444176SYork Sun	bool
27fb2bf8c2SYork Sun	select FSL_LSCH3
2824aaa094SYork Sun	select SYS_FSL_DDR4
2924aaa094SYork Sun	select SYS_FSL_DDR_LE
3024aaa094SYork Sun	select SYS_FSL_DDR_VER_50
31f534b8f5SYork Sun	select SYS_FSL_HAS_DP_DDR
32f534b8f5SYork Sun	select SYS_FSL_SRDS_2
33fb2bf8c2SYork Sun
34fb2bf8c2SYork Sunconfig FSL_LSCH2
35fb2bf8c2SYork Sun	bool
36f534b8f5SYork Sun	select SYS_FSL_SRDS_1
37f534b8f5SYork Sun	select SYS_HAS_SERDES
38fb2bf8c2SYork Sun
39fb2bf8c2SYork Sunconfig FSL_LSCH3
40fb2bf8c2SYork Sun	bool
41f534b8f5SYork Sun	select SYS_FSL_SRDS_1
42f534b8f5SYork Sun	select SYS_HAS_SERDES
43fb2bf8c2SYork Sun
44fb2bf8c2SYork Sunmenu "Layerscape architecture"
45fb2bf8c2SYork Sun	depends on FSL_LSCH2 || FSL_LSCH3
464a444176SYork Sun
47*2d16a1a6Smacro.wave.z@gmail.commenu "Layerscape PPA"
48*2d16a1a6Smacro.wave.z@gmail.comconfig FSL_LS_PPA
49*2d16a1a6Smacro.wave.z@gmail.com	bool "FSL Layerscape PPA firmware support"
50*2d16a1a6Smacro.wave.z@gmail.com	depends on ARCH_LS1043A || ARCH_LS1046A
51*2d16a1a6Smacro.wave.z@gmail.com	select FSL_PPA_ARMV8_PSCI
52*2d16a1a6Smacro.wave.z@gmail.com	help
53*2d16a1a6Smacro.wave.z@gmail.com	  The FSL Primary Protected Application (PPA) is a software component
54*2d16a1a6Smacro.wave.z@gmail.com	  which is loaded during boot stage, and then remains resident in RAM
55*2d16a1a6Smacro.wave.z@gmail.com	  and runs in the TrustZone after boot.
56*2d16a1a6Smacro.wave.z@gmail.com	  Say y to enable it.
57*2d16a1a6Smacro.wave.z@gmail.com
58*2d16a1a6Smacro.wave.z@gmail.comconfig FSL_PPA_ARMV8_PSCI
59*2d16a1a6Smacro.wave.z@gmail.com	bool "PSCI implementation in PPA firmware"
60*2d16a1a6Smacro.wave.z@gmail.com	depends on FSL_LS_PPA
61*2d16a1a6Smacro.wave.z@gmail.com	help
62*2d16a1a6Smacro.wave.z@gmail.com	  This config enables the ARMv8 PSCI implementation in PPA firmware.
63*2d16a1a6Smacro.wave.z@gmail.com	  This is a private PSCI implementation and different from those
64*2d16a1a6Smacro.wave.z@gmail.com	  implemented under the common ARMv8 PSCI framework.
65*2d16a1a6Smacro.wave.z@gmail.comendmenu
66*2d16a1a6Smacro.wave.z@gmail.com
679533acf3SYork Sunconfig SYS_FSL_MMDC
684a444176SYork Sun	bool
690a37cf8fSYork Sun
700a37cf8fSYork Sunconfig SYS_FSL_ERRATUM_A010315
710a37cf8fSYork Sun	bool "Workaround for PCIe erratum A010315"
720ea3671dSHou Zhiqiang
730ea3671dSHou Zhiqiangconfig SYS_FSL_ERRATUM_A010539
740ea3671dSHou Zhiqiang	bool "Workaround for PIN MUX erratum A010539"
75fb2bf8c2SYork Sun
76b4b60d06SYork Sunconfig MAX_CPUS
77b4b60d06SYork Sun	int "Maximum number of CPUs permitted for Layerscape"
78b4b60d06SYork Sun	default 4 if ARCH_LS1043A
79b4b60d06SYork Sun	default 4 if ARCH_LS1046A
80b4b60d06SYork Sun	default 16 if ARCH_LS2080A
81b4b60d06SYork Sun	default 1
82b4b60d06SYork Sun	help
83b4b60d06SYork Sun	  Set this number to the maximum number of possible CPUs in the SoC.
84b4b60d06SYork Sun	  SoCs may have multiple clusters with each cluster may have multiple
85b4b60d06SYork Sun	  ports. If some ports are reserved but higher ports are used for
86b4b60d06SYork Sun	  cores, count the reserved ports. This will allocate enough memory
87b4b60d06SYork Sun	  in spin table to properly handle all cores.
88b4b60d06SYork Sun
89fd638102SYork Sunconfig NUM_DDR_CONTROLLERS
90fd638102SYork Sun	int "Maximum DDR controllers"
91fd638102SYork Sun	default 3 if ARCH_LS2080A
92fd638102SYork Sun	default 1
93fd638102SYork Sun
9401f65d97SYork Sunconfig SECURE_BOOT
9501f65d97SYork Sun	bool
9601f65d97SYork Sun	help
9701f65d97SYork Sun		Enable Freescale Secure Boot feature
9801f65d97SYork Sun
99dd2ad2f1SYuan Yaoconfig QSPI_AHB_INIT
100dd2ad2f1SYuan Yao	bool "Init the QSPI AHB bus"
101dd2ad2f1SYuan Yao	help
102dd2ad2f1SYuan Yao	  The default setting for QSPI AHB bus just support 3bytes addressing.
103dd2ad2f1SYuan Yao	  But some QSPI flash size up to 64MBytes, so initialize the QSPI AHB
104dd2ad2f1SYuan Yao	  bus for those flashes to support the full QSPI flash size.
105dd2ad2f1SYuan Yao
10625af7dc1SYork Sunconfig SYS_FSL_IFC_BANK_COUNT
10725af7dc1SYork Sun	int "Maximum banks of Integrated flash controller"
10825af7dc1SYork Sun	depends on ARCH_LS1043A || ARCH_LS1046A || ARCH_LS2080A
10925af7dc1SYork Sun	default 4 if ARCH_LS1043A
11025af7dc1SYork Sun	default 4 if ARCH_LS1046A
11125af7dc1SYork Sun	default 8 if ARCH_LS2080A
11225af7dc1SYork Sun
113fd638102SYork Sunconfig SYS_FSL_HAS_DP_DDR
114fd638102SYork Sun	bool
115fd638102SYork Sun
116f534b8f5SYork Sunconfig SYS_FSL_SRDS_1
117f534b8f5SYork Sun	bool
118f534b8f5SYork Sun
119f534b8f5SYork Sunconfig SYS_FSL_SRDS_2
120f534b8f5SYork Sun	bool
121f534b8f5SYork Sun
122f534b8f5SYork Sunconfig SYS_HAS_SERDES
123f534b8f5SYork Sun	bool
124f534b8f5SYork Sun
12524aaa094SYork Sunconfig SYS_FSL_DDR
12624aaa094SYork Sun	bool "Freescale DDR driver"
12724aaa094SYork Sun	help
12824aaa094SYork Sun	  Select Freescale General DDR driver, shared between most Freescale
12924aaa094SYork Sun	  PowerPC- based SoCs (such as mpc83xx, mpc85xx, mpc86xx) and ARM-
13024aaa094SYork Sun	  based Layerscape SoCs (such as ls2080a).
13124aaa094SYork Sun
13224aaa094SYork Sunconfig SYS_FSL_DDR_BE
13324aaa094SYork Sun	bool
13424aaa094SYork Sun	help
13524aaa094SYork Sun	  Access DDR registers in big-endian.
13624aaa094SYork Sun
13724aaa094SYork Sunconfig SYS_FSL_DDR_LE
13824aaa094SYork Sun	bool
13924aaa094SYork Sun	help
14024aaa094SYork Sun	  Access DDR registers in little-endian.
14124aaa094SYork Sun
14224aaa094SYork Sunconfig SYS_FSL_DDR_VER
14324aaa094SYork Sun	int
14424aaa094SYork Sun	default 50 if SYS_FSL_DDR_VER_50
14524aaa094SYork Sun
14624aaa094SYork Sunconfig SYS_FSL_DDR_VER_50
14724aaa094SYork Sun	bool
14824aaa094SYork Sun
14924aaa094SYork Sunconfig SYS_FSL_DDRC_ARM_GEN3
15024aaa094SYork Sun	bool
15124aaa094SYork Sun
15224aaa094SYork Sunconfig SYS_FSL_DDRC_GEN4
15324aaa094SYork Sun	bool
15424aaa094SYork Sun
15524aaa094SYork Sunconfig SYS_FSL_DDR3
15624aaa094SYork Sun	bool "Freescale DDR3 controller"
15724aaa094SYork Sun	depends on !SYS_FSL_DDR4
15824aaa094SYork Sun	select SYS_FSL_DDR
15924aaa094SYork Sun	select SYS_FSL_DDRC_ARM_GEN3
16024aaa094SYork Sun	help
16124aaa094SYork Sun	  Enable Freescale DDR3 controller on ARM-based SoCs.
16224aaa094SYork Sun
16324aaa094SYork Sunconfig SYS_FSL_DDR4
16424aaa094SYork Sun	bool "Freescale DDR4 controller"
16524aaa094SYork Sun	select SYS_FSL_DDR
16624aaa094SYork Sun	select SYS_FSL_DDRC_GEN4
16724aaa094SYork Sun	help
16824aaa094SYork Sun	  Enable Freescale DDR4 controller.
16924aaa094SYork Sun
170fb2bf8c2SYork Sunendmenu
171