xref: /openbmc/u-boot/arch/arm/cpu/armv8/fsl-layerscape/Kconfig (revision ee2a51022135a01fa2258b7788702313d0f54dac)
19533acf3SYork Sunconfig ARCH_LS1012A
24a444176SYork Sun	bool
3*ee2a5102SHou Zhiqiang	select ARMV8_SET_SMPEN
4fb2bf8c2SYork Sun	select FSL_LSCH2
524aaa094SYork Sun	select SYS_FSL_DDR_BE
69533acf3SYork Sun	select SYS_FSL_MMDC
70a37cf8fSYork Sun	select SYS_FSL_ERRATUM_A010315
80a37cf8fSYork Sun
90a37cf8fSYork Sunconfig ARCH_LS1043A
104a444176SYork Sun	bool
11*ee2a5102SHou Zhiqiang	select ARMV8_SET_SMPEN
12fb2bf8c2SYork Sun	select FSL_LSCH2
13d26e34c4SYork Sun	select SYS_FSL_DDR
1424aaa094SYork Sun	select SYS_FSL_DDR_BE
1524aaa094SYork Sun	select SYS_FSL_DDR_VER_50
16ba1b6fb5SYork Sun	select SYS_FSL_ERRATUM_A008850
17ba1b6fb5SYork Sun	select SYS_FSL_ERRATUM_A009660
18ba1b6fb5SYork Sun	select SYS_FSL_ERRATUM_A009663
19ba1b6fb5SYork Sun	select SYS_FSL_ERRATUM_A009929
20ba1b6fb5SYork Sun	select SYS_FSL_ERRATUM_A009942
210a37cf8fSYork Sun	select SYS_FSL_ERRATUM_A010315
220ea3671dSHou Zhiqiang	select SYS_FSL_ERRATUM_A010539
23d26e34c4SYork Sun	select SYS_FSL_HAS_DDR3
24d26e34c4SYork Sun	select SYS_FSL_HAS_DDR4
259533acf3SYork Sun
26da28e58aSYork Sunconfig ARCH_LS1046A
274a444176SYork Sun	bool
28*ee2a5102SHou Zhiqiang	select ARMV8_SET_SMPEN
29fb2bf8c2SYork Sun	select FSL_LSCH2
30d26e34c4SYork Sun	select SYS_FSL_DDR
3124aaa094SYork Sun	select SYS_FSL_DDR_BE
3224aaa094SYork Sun	select SYS_FSL_DDR_VER_50
33ba1b6fb5SYork Sun	select SYS_FSL_ERRATUM_A008511
34ba1b6fb5SYork Sun	select SYS_FSL_ERRATUM_A009801
35ba1b6fb5SYork Sun	select SYS_FSL_ERRATUM_A009803
36ba1b6fb5SYork Sun	select SYS_FSL_ERRATUM_A009942
37ba1b6fb5SYork Sun	select SYS_FSL_ERRATUM_A010165
380ea3671dSHou Zhiqiang	select SYS_FSL_ERRATUM_A010539
39d26e34c4SYork Sun	select SYS_FSL_HAS_DDR4
40f534b8f5SYork Sun	select SYS_FSL_SRDS_2
419533acf3SYork Sun
424a444176SYork Sunconfig ARCH_LS2080A
434a444176SYork Sun	bool
44*ee2a5102SHou Zhiqiang	select ARMV8_SET_SMPEN
45fb2bf8c2SYork Sun	select FSL_LSCH3
46d26e34c4SYork Sun	select SYS_FSL_DDR
4724aaa094SYork Sun	select SYS_FSL_DDR_LE
4824aaa094SYork Sun	select SYS_FSL_DDR_VER_50
49f534b8f5SYork Sun	select SYS_FSL_HAS_DP_DDR
502c2e2c9eSYork Sun	select SYS_FSL_HAS_SEC
51d26e34c4SYork Sun	select SYS_FSL_HAS_DDR4
522c2e2c9eSYork Sun	select SYS_FSL_SEC_COMPAT_5
5390b80386SYork Sun	select SYS_FSL_SEC_LE
54f534b8f5SYork Sun	select SYS_FSL_SRDS_2
55ba1b6fb5SYork Sun	select SYS_FSL_ERRATUM_A008336
56ba1b6fb5SYork Sun	select SYS_FSL_ERRATUM_A008511
57ba1b6fb5SYork Sun	select SYS_FSL_ERRATUM_A008514
58ba1b6fb5SYork Sun	select SYS_FSL_ERRATUM_A008585
59ba1b6fb5SYork Sun	select SYS_FSL_ERRATUM_A009635
60ba1b6fb5SYork Sun	select SYS_FSL_ERRATUM_A009663
61ba1b6fb5SYork Sun	select SYS_FSL_ERRATUM_A009801
62ba1b6fb5SYork Sun	select SYS_FSL_ERRATUM_A009803
63ba1b6fb5SYork Sun	select SYS_FSL_ERRATUM_A009942
64ba1b6fb5SYork Sun	select SYS_FSL_ERRATUM_A010165
65fb2bf8c2SYork Sun
66fb2bf8c2SYork Sunconfig FSL_LSCH2
67fb2bf8c2SYork Sun	bool
682c2e2c9eSYork Sun	select SYS_FSL_HAS_SEC
692c2e2c9eSYork Sun	select SYS_FSL_SEC_COMPAT_5
7090b80386SYork Sun	select SYS_FSL_SEC_BE
71f534b8f5SYork Sun	select SYS_FSL_SRDS_1
72f534b8f5SYork Sun	select SYS_HAS_SERDES
73fb2bf8c2SYork Sun
74fb2bf8c2SYork Sunconfig FSL_LSCH3
75fb2bf8c2SYork Sun	bool
76f534b8f5SYork Sun	select SYS_FSL_SRDS_1
77f534b8f5SYork Sun	select SYS_HAS_SERDES
78fb2bf8c2SYork Sun
79fb2bf8c2SYork Sunmenu "Layerscape architecture"
80fb2bf8c2SYork Sun	depends on FSL_LSCH2 || FSL_LSCH3
814a444176SYork Sun
8219538f30SHou Zhiqiangconfig FSL_PCIE_COMPAT
8319538f30SHou Zhiqiang	string "PCIe compatible of Kernel DT"
8419538f30SHou Zhiqiang	depends on PCIE_LAYERSCAPE
8519538f30SHou Zhiqiang	default "fsl,ls1012a-pcie" if ARCH_LS1012A
8619538f30SHou Zhiqiang	default "fsl,ls1043a-pcie" if ARCH_LS1043A
8719538f30SHou Zhiqiang	default "fsl,ls1046a-pcie" if ARCH_LS1046A
8819538f30SHou Zhiqiang	default "fsl,ls2080a-pcie" if ARCH_LS2080A
8919538f30SHou Zhiqiang	help
9019538f30SHou Zhiqiang	  This compatible is used to find pci controller node in Kernel DT
9119538f30SHou Zhiqiang	  to complete fixup.
9219538f30SHou Zhiqiang
932d16a1a6Smacro.wave.z@gmail.commenu "Layerscape PPA"
942d16a1a6Smacro.wave.z@gmail.comconfig FSL_LS_PPA
952d16a1a6Smacro.wave.z@gmail.com	bool "FSL Layerscape PPA firmware support"
96df88cb3bSmacro.wave.z@gmail.com	depends on !ARMV8_PSCI
972d16a1a6Smacro.wave.z@gmail.com	depends on ARCH_LS1043A || ARCH_LS1046A
982d16a1a6Smacro.wave.z@gmail.com	select FSL_PPA_ARMV8_PSCI
992d16a1a6Smacro.wave.z@gmail.com	help
1002d16a1a6Smacro.wave.z@gmail.com	  The FSL Primary Protected Application (PPA) is a software component
1012d16a1a6Smacro.wave.z@gmail.com	  which is loaded during boot stage, and then remains resident in RAM
1022d16a1a6Smacro.wave.z@gmail.com	  and runs in the TrustZone after boot.
1032d16a1a6Smacro.wave.z@gmail.com	  Say y to enable it.
1042d16a1a6Smacro.wave.z@gmail.com
1052d16a1a6Smacro.wave.z@gmail.comconfig FSL_PPA_ARMV8_PSCI
1062d16a1a6Smacro.wave.z@gmail.com	bool "PSCI implementation in PPA firmware"
1072d16a1a6Smacro.wave.z@gmail.com	depends on FSL_LS_PPA
1082d16a1a6Smacro.wave.z@gmail.com	help
1092d16a1a6Smacro.wave.z@gmail.com	  This config enables the ARMv8 PSCI implementation in PPA firmware.
1102d16a1a6Smacro.wave.z@gmail.com	  This is a private PSCI implementation and different from those
1112d16a1a6Smacro.wave.z@gmail.com	  implemented under the common ARMv8 PSCI framework.
1122d16a1a6Smacro.wave.z@gmail.comendmenu
1132d16a1a6Smacro.wave.z@gmail.com
1140a37cf8fSYork Sunconfig SYS_FSL_ERRATUM_A010315
1150a37cf8fSYork Sun	bool "Workaround for PCIe erratum A010315"
1160ea3671dSHou Zhiqiang
1170ea3671dSHou Zhiqiangconfig SYS_FSL_ERRATUM_A010539
1180ea3671dSHou Zhiqiang	bool "Workaround for PIN MUX erratum A010539"
119fb2bf8c2SYork Sun
120b4b60d06SYork Sunconfig MAX_CPUS
121b4b60d06SYork Sun	int "Maximum number of CPUs permitted for Layerscape"
122b4b60d06SYork Sun	default 4 if ARCH_LS1043A
123b4b60d06SYork Sun	default 4 if ARCH_LS1046A
124b4b60d06SYork Sun	default 16 if ARCH_LS2080A
125b4b60d06SYork Sun	default 1
126b4b60d06SYork Sun	help
127b4b60d06SYork Sun	  Set this number to the maximum number of possible CPUs in the SoC.
128b4b60d06SYork Sun	  SoCs may have multiple clusters with each cluster may have multiple
129b4b60d06SYork Sun	  ports. If some ports are reserved but higher ports are used for
130b4b60d06SYork Sun	  cores, count the reserved ports. This will allocate enough memory
131b4b60d06SYork Sun	  in spin table to properly handle all cores.
132b4b60d06SYork Sun
13301f65d97SYork Sunconfig SECURE_BOOT
13401f65d97SYork Sun	bool
13501f65d97SYork Sun	help
13601f65d97SYork Sun		Enable Freescale Secure Boot feature
13701f65d97SYork Sun
138dd2ad2f1SYuan Yaoconfig QSPI_AHB_INIT
139dd2ad2f1SYuan Yao	bool "Init the QSPI AHB bus"
140dd2ad2f1SYuan Yao	help
141dd2ad2f1SYuan Yao	  The default setting for QSPI AHB bus just support 3bytes addressing.
142dd2ad2f1SYuan Yao	  But some QSPI flash size up to 64MBytes, so initialize the QSPI AHB
143dd2ad2f1SYuan Yao	  bus for those flashes to support the full QSPI flash size.
144dd2ad2f1SYuan Yao
14525af7dc1SYork Sunconfig SYS_FSL_IFC_BANK_COUNT
14625af7dc1SYork Sun	int "Maximum banks of Integrated flash controller"
14725af7dc1SYork Sun	depends on ARCH_LS1043A || ARCH_LS1046A || ARCH_LS2080A
14825af7dc1SYork Sun	default 4 if ARCH_LS1043A
14925af7dc1SYork Sun	default 4 if ARCH_LS1046A
15025af7dc1SYork Sun	default 8 if ARCH_LS2080A
15125af7dc1SYork Sun
152fd638102SYork Sunconfig SYS_FSL_HAS_DP_DDR
153fd638102SYork Sun	bool
154fd638102SYork Sun
155f534b8f5SYork Sunconfig SYS_FSL_SRDS_1
156f534b8f5SYork Sun	bool
157f534b8f5SYork Sun
158f534b8f5SYork Sunconfig SYS_FSL_SRDS_2
159f534b8f5SYork Sun	bool
160f534b8f5SYork Sun
161f534b8f5SYork Sunconfig SYS_HAS_SERDES
162f534b8f5SYork Sun	bool
163f534b8f5SYork Sun
164fb2bf8c2SYork Sunendmenu
165ba1b6fb5SYork Sun
166ba1b6fb5SYork Sunconfig SYS_FSL_ERRATUM_A008336
167ba1b6fb5SYork Sun	bool
168ba1b6fb5SYork Sun
169ba1b6fb5SYork Sunconfig SYS_FSL_ERRATUM_A008514
170ba1b6fb5SYork Sun	bool
171ba1b6fb5SYork Sun
172ba1b6fb5SYork Sunconfig SYS_FSL_ERRATUM_A008585
173ba1b6fb5SYork Sun	bool
174ba1b6fb5SYork Sun
175ba1b6fb5SYork Sunconfig SYS_FSL_ERRATUM_A008850
176ba1b6fb5SYork Sun	bool
177ba1b6fb5SYork Sun
178ba1b6fb5SYork Sunconfig SYS_FSL_ERRATUM_A009635
179ba1b6fb5SYork Sun	bool
180ba1b6fb5SYork Sun
181ba1b6fb5SYork Sunconfig SYS_FSL_ERRATUM_A009660
182ba1b6fb5SYork Sun	bool
183ba1b6fb5SYork Sun
184ba1b6fb5SYork Sunconfig SYS_FSL_ERRATUM_A009929
185ba1b6fb5SYork Sun	bool
186