blob: ba411e2af85296bd3e54fc7c479bd2fd9936d6c5 [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
York Sun4dd8c612016-10-04 14:31:48 -07004 select FSL_LSCH2
York Sunb6fffd82016-10-04 18:03:08 -07005 select SYS_FSL_DDR_BE
York Sunb3d71642016-09-26 08:09:26 -07006 select SYS_FSL_MMDC
York Sun149eb332016-09-26 08:09:27 -07007 select SYS_FSL_ERRATUM_A010315
8
9config ARCH_LS1043A
York Sunfcd0e742016-10-04 14:31:47 -070010 bool
Hou Zhiqiang4d1525a2017-01-06 17:41:11 +080011 select ARMV8_SET_SMPEN
York Sun4dd8c612016-10-04 14:31:48 -070012 select FSL_LSCH2
York Sund297d392016-12-28 08:43:40 -080013 select SYS_FSL_DDR
York Sunb6fffd82016-10-04 18:03:08 -070014 select SYS_FSL_DDR_BE
15 select SYS_FSL_DDR_VER_50
York Sun1dc61ca2016-12-28 08:43:41 -080016 select SYS_FSL_ERRATUM_A008850
17 select SYS_FSL_ERRATUM_A009660
18 select SYS_FSL_ERRATUM_A009663
19 select SYS_FSL_ERRATUM_A009929
20 select SYS_FSL_ERRATUM_A009942
York Sun149eb332016-09-26 08:09:27 -070021 select SYS_FSL_ERRATUM_A010315
Hou Zhiqiangc06b30a2016-09-29 12:42:44 +080022 select SYS_FSL_ERRATUM_A010539
York Sund297d392016-12-28 08:43:40 -080023 select SYS_FSL_HAS_DDR3
24 select SYS_FSL_HAS_DDR4
York Sunb3d71642016-09-26 08:09:26 -070025
York Sunbad49842016-09-26 08:09:24 -070026config ARCH_LS1046A
York Sunfcd0e742016-10-04 14:31:47 -070027 bool
Hou Zhiqiang4d1525a2017-01-06 17:41:11 +080028 select ARMV8_SET_SMPEN
York Sun4dd8c612016-10-04 14:31:48 -070029 select FSL_LSCH2
York Sund297d392016-12-28 08:43:40 -080030 select SYS_FSL_DDR
York Sunb6fffd82016-10-04 18:03:08 -070031 select SYS_FSL_DDR_BE
York Sunb6fffd82016-10-04 18:03:08 -070032 select SYS_FSL_DDR_VER_50
York Sun1dc61ca2016-12-28 08:43:41 -080033 select SYS_FSL_ERRATUM_A008511
34 select SYS_FSL_ERRATUM_A009801
35 select SYS_FSL_ERRATUM_A009803
36 select SYS_FSL_ERRATUM_A009942
37 select SYS_FSL_ERRATUM_A010165
Hou Zhiqiangc06b30a2016-09-29 12:42:44 +080038 select SYS_FSL_ERRATUM_A010539
York Sund297d392016-12-28 08:43:40 -080039 select SYS_FSL_HAS_DDR4
York Sun6b62ef02016-10-04 18:01:34 -070040 select SYS_FSL_SRDS_2
York Sunb3d71642016-09-26 08:09:26 -070041
York Sunfcd0e742016-10-04 14:31:47 -070042config ARCH_LS2080A
43 bool
Hou Zhiqiang4d1525a2017-01-06 17:41:11 +080044 select ARMV8_SET_SMPEN
York Sun4dd8c612016-10-04 14:31:48 -070045 select FSL_LSCH3
York Sund297d392016-12-28 08:43:40 -080046 select SYS_FSL_DDR
York Sunb6fffd82016-10-04 18:03:08 -070047 select SYS_FSL_DDR_LE
48 select SYS_FSL_DDR_VER_50
York Sun6b62ef02016-10-04 18:01:34 -070049 select SYS_FSL_HAS_DP_DDR
York Sun92c36e22016-12-28 08:43:30 -080050 select SYS_FSL_HAS_SEC
York Sund297d392016-12-28 08:43:40 -080051 select SYS_FSL_HAS_DDR4
York Sun92c36e22016-12-28 08:43:30 -080052 select SYS_FSL_SEC_COMPAT_5
York Sunfa4199422016-12-28 08:43:31 -080053 select SYS_FSL_SEC_LE
York Sun6b62ef02016-10-04 18:01:34 -070054 select SYS_FSL_SRDS_2
York Sun1dc61ca2016-12-28 08:43:41 -080055 select SYS_FSL_ERRATUM_A008336
56 select SYS_FSL_ERRATUM_A008511
57 select SYS_FSL_ERRATUM_A008514
58 select SYS_FSL_ERRATUM_A008585
59 select SYS_FSL_ERRATUM_A009635
60 select SYS_FSL_ERRATUM_A009663
61 select SYS_FSL_ERRATUM_A009801
62 select SYS_FSL_ERRATUM_A009803
63 select SYS_FSL_ERRATUM_A009942
64 select SYS_FSL_ERRATUM_A010165
York Sun4dd8c612016-10-04 14:31:48 -070065
66config FSL_LSCH2
67 bool
York Sun92c36e22016-12-28 08:43:30 -080068 select SYS_FSL_HAS_SEC
69 select SYS_FSL_SEC_COMPAT_5
York Sunfa4199422016-12-28 08:43:31 -080070 select SYS_FSL_SEC_BE
York Sun6b62ef02016-10-04 18:01:34 -070071 select SYS_FSL_SRDS_1
72 select SYS_HAS_SERDES
York Sun4dd8c612016-10-04 14:31:48 -070073
74config FSL_LSCH3
75 bool
York Sun6b62ef02016-10-04 18:01:34 -070076 select SYS_FSL_SRDS_1
77 select SYS_HAS_SERDES
York Sun4dd8c612016-10-04 14:31:48 -070078
79menu "Layerscape architecture"
80 depends on FSL_LSCH2 || FSL_LSCH3
York Sunfcd0e742016-10-04 14:31:47 -070081
Hou Zhiqiangd553bf22016-12-13 14:54:24 +080082config FSL_PCIE_COMPAT
83 string "PCIe compatible of Kernel DT"
84 depends on PCIE_LAYERSCAPE
85 default "fsl,ls1012a-pcie" if ARCH_LS1012A
86 default "fsl,ls1043a-pcie" if ARCH_LS1043A
87 default "fsl,ls1046a-pcie" if ARCH_LS1046A
88 default "fsl,ls2080a-pcie" if ARCH_LS2080A
89 help
90 This compatible is used to find pci controller node in Kernel DT
91 to complete fixup.
92
Wenbin Songa8f57a92017-01-17 18:31:15 +080093config HAS_FEATURE_GIC64K_ALIGN
94 bool
95 default y if ARCH_LS1043A
96
Wenbin Songc6bc7c02017-01-17 18:31:16 +080097config HAS_FEATURE_ENHANCED_MSI
98 bool
99 default y if ARCH_LS1043A
Wenbin Songa8f57a92017-01-17 18:31:15 +0800100
macro.wave.z@gmail.comec2d7ed2016-12-08 11:58:21 +0800101menu "Layerscape PPA"
102config FSL_LS_PPA
103 bool "FSL Layerscape PPA firmware support"
macro.wave.z@gmail.com01bd3342016-12-08 11:58:22 +0800104 depends on !ARMV8_PSCI
Hou Zhiqiangbff56d52017-01-16 17:31:49 +0800105 select ARMV8_SEC_FIRMWARE_SUPPORT
Hou Zhiqiang6be115d2017-01-16 17:31:48 +0800106 select SEC_FIRMWARE_ARMV8_PSCI
Hou Zhiqiangbff56d52017-01-16 17:31:49 +0800107 select ARMV8_SEC_FIRMWARE_ERET_ADDR_REVERT if FSL_LSCH2
macro.wave.z@gmail.comec2d7ed2016-12-08 11:58:21 +0800108 help
109 The FSL Primary Protected Application (PPA) is a software component
110 which is loaded during boot stage, and then remains resident in RAM
111 and runs in the TrustZone after boot.
112 Say y to enable it.
Hou Zhiqiangbff56d52017-01-16 17:31:49 +0800113choice
114 prompt "FSL Layerscape PPA firmware loading-media select"
115 depends on FSL_LS_PPA
116 default SYS_LS_PPA_FW_IN_XIP
117
118config SYS_LS_PPA_FW_IN_XIP
119 bool "XIP"
120 help
121 Say Y here if the PPA firmware locate at XIP flash, such
122 as NOR or QSPI flash.
123
124endchoice
125
126config SYS_LS_PPA_FW_ADDR
127 hex "Address of PPA firmware loading from"
128 depends on FSL_LS_PPA
129 default 0x40500000 if SYS_LS_PPA_FW_IN_XIP && QSPI_BOOT
130 default 0x60500000 if SYS_LS_PPA_FW_IN_XIP
131 help
132 If the PPA firmware locate at XIP flash, such as NOR or
133 QSPI flash, this address is a directly memory-mapped.
134 If it is in a serial accessed flash, such as NAND and SD
135 card, it is a byte offset.
macro.wave.z@gmail.comec2d7ed2016-12-08 11:58:21 +0800136endmenu
137
York Sun149eb332016-09-26 08:09:27 -0700138config SYS_FSL_ERRATUM_A010315
139 bool "Workaround for PCIe erratum A010315"
Hou Zhiqiangc06b30a2016-09-29 12:42:44 +0800140
141config SYS_FSL_ERRATUM_A010539
142 bool "Workaround for PIN MUX erratum A010539"
York Sun4dd8c612016-10-04 14:31:48 -0700143
York Sunf188d222016-10-04 14:45:01 -0700144config MAX_CPUS
145 int "Maximum number of CPUs permitted for Layerscape"
146 default 4 if ARCH_LS1043A
147 default 4 if ARCH_LS1046A
148 default 16 if ARCH_LS2080A
149 default 1
150 help
151 Set this number to the maximum number of possible CPUs in the SoC.
152 SoCs may have multiple clusters with each cluster may have multiple
153 ports. If some ports are reserved but higher ports are used for
154 cores, count the reserved ports. This will allocate enough memory
155 in spin table to properly handle all cores.
156
York Sun728e7002016-12-02 09:32:35 -0800157config SECURE_BOOT
York Sun8a3d8ed2017-01-04 10:32:08 -0800158 bool "Secure Boot"
York Sun728e7002016-12-02 09:32:35 -0800159 help
160 Enable Freescale Secure Boot feature
161
Yuan Yao52ae4fd2016-12-01 10:13:52 +0800162config QSPI_AHB_INIT
163 bool "Init the QSPI AHB bus"
164 help
165 The default setting for QSPI AHB bus just support 3bytes addressing.
166 But some QSPI flash size up to 64MBytes, so initialize the QSPI AHB
167 bus for those flashes to support the full QSPI flash size.
168
York Sune7310a32016-10-04 14:45:54 -0700169config SYS_FSL_IFC_BANK_COUNT
170 int "Maximum banks of Integrated flash controller"
171 depends on ARCH_LS1043A || ARCH_LS1046A || ARCH_LS2080A
172 default 4 if ARCH_LS1043A
173 default 4 if ARCH_LS1046A
174 default 8 if ARCH_LS2080A
175
York Sun0dc9abb2016-10-04 14:46:50 -0700176config SYS_FSL_HAS_DP_DDR
177 bool
178
York Sun6b62ef02016-10-04 18:01:34 -0700179config SYS_FSL_SRDS_1
180 bool
181
182config SYS_FSL_SRDS_2
183 bool
184
185config SYS_HAS_SERDES
186 bool
187
York Sun4dd8c612016-10-04 14:31:48 -0700188endmenu
York Sun1dc61ca2016-12-28 08:43:41 -0800189
Hou Zhiqiang3f91cda2017-01-10 16:44:15 +0800190menu "Layerscape clock tree configuration"
191 depends on FSL_LSCH2 || FSL_LSCH3
192
193config SYS_FSL_CLK
194 bool "Enable clock tree initialization"
195 default y
196
197config CLUSTER_CLK_FREQ
198 int "Reference clock of core cluster"
199 depends on ARCH_LS1012A
200 default 100000000
201 help
202 This number is the reference clock frequency of core PLL.
203 For most platforms, the core PLL and Platform PLL have the same
204 reference clock, but for some platforms, LS1012A for instance,
205 they are provided sepatately.
206
207config SYS_FSL_PCLK_DIV
208 int "Platform clock divider"
209 default 1 if ARCH_LS1043A
210 default 1 if ARCH_LS1046A
211 default 2
212 help
213 This is the divider that is used to derive Platform clock from
214 Platform PLL, in another word:
215 Platform_clk = Platform_PLL_freq / this_divider
216
217config SYS_FSL_DSPI_CLK_DIV
218 int "DSPI clock divider"
219 default 1 if ARCH_LS1043A
220 default 2
221 help
222 This is the divider that is used to derive DSPI clock from Platform
223 PLL, in another word DSPI_clk = Platform_PLL_freq / this_divider.
224
225config SYS_FSL_DUART_CLK_DIV
226 int "DUART clock divider"
227 default 1 if ARCH_LS1043A
228 default 2
229 help
230 This is the divider that is used to derive DUART clock from Platform
231 clock, in another word DUART_clk = Platform_clk / this_divider.
232
233config SYS_FSL_I2C_CLK_DIV
234 int "I2C clock divider"
235 default 1 if ARCH_LS1043A
236 default 2
237 help
238 This is the divider that is used to derive I2C clock from Platform
239 clock, in another word I2C_clk = Platform_clk / this_divider.
240
241config SYS_FSL_IFC_CLK_DIV
242 int "IFC clock divider"
243 default 1 if ARCH_LS1043A
244 default 2
245 help
246 This is the divider that is used to derive IFC clock from Platform
247 clock, in another word IFC_clk = Platform_clk / this_divider.
248
249config SYS_FSL_LPUART_CLK_DIV
250 int "LPUART clock divider"
251 default 1 if ARCH_LS1043A
252 default 2
253 help
254 This is the divider that is used to derive LPUART clock from Platform
255 clock, in another word LPUART_clk = Platform_clk / this_divider.
256
257config SYS_FSL_SDHC_CLK_DIV
258 int "SDHC clock divider"
259 default 1 if ARCH_LS1043A
260 default 1 if ARCH_LS1012A
261 default 2
262 help
263 This is the divider that is used to derive SDHC clock from Platform
264 clock, in another word SDHC_clk = Platform_clk / this_divider.
265endmenu
266
York Sun1dc61ca2016-12-28 08:43:41 -0800267config SYS_FSL_ERRATUM_A008336
268 bool
269
270config SYS_FSL_ERRATUM_A008514
271 bool
272
273config SYS_FSL_ERRATUM_A008585
274 bool
275
276config SYS_FSL_ERRATUM_A008850
277 bool
278
279config SYS_FSL_ERRATUM_A009635
280 bool
281
282config SYS_FSL_ERRATUM_A009660
283 bool
284
285config SYS_FSL_ERRATUM_A009929
286 bool