blob: d93a61d00f7ca9d93b8b5d8b06fa627021d7f036 [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
Simon Glass62adede2017-01-23 13:31:19 -07008 select ARCH_EARLY_INIT_R
York Sun149eb332016-09-26 08:09:27 -07009
10config ARCH_LS1043A
York Sunfcd0e742016-10-04 14:31:47 -070011 bool
Hou Zhiqiang4d1525a2017-01-06 17:41:11 +080012 select ARMV8_SET_SMPEN
York Sun4dd8c612016-10-04 14:31:48 -070013 select FSL_LSCH2
York Sund297d392016-12-28 08:43:40 -080014 select SYS_FSL_DDR
York Sunb6fffd82016-10-04 18:03:08 -070015 select SYS_FSL_DDR_BE
16 select SYS_FSL_DDR_VER_50
York Sun1dc61ca2016-12-28 08:43:41 -080017 select SYS_FSL_ERRATUM_A008850
18 select SYS_FSL_ERRATUM_A009660
19 select SYS_FSL_ERRATUM_A009663
20 select SYS_FSL_ERRATUM_A009929
21 select SYS_FSL_ERRATUM_A009942
York Sun149eb332016-09-26 08:09:27 -070022 select SYS_FSL_ERRATUM_A010315
Hou Zhiqiangc06b30a2016-09-29 12:42:44 +080023 select SYS_FSL_ERRATUM_A010539
York Sund297d392016-12-28 08:43:40 -080024 select SYS_FSL_HAS_DDR3
25 select SYS_FSL_HAS_DDR4
Simon Glass62adede2017-01-23 13:31:19 -070026 select ARCH_EARLY_INIT_R
York Sunb3d71642016-09-26 08:09:26 -070027
York Sunbad49842016-09-26 08:09:24 -070028config ARCH_LS1046A
York Sunfcd0e742016-10-04 14:31:47 -070029 bool
Hou Zhiqiang4d1525a2017-01-06 17:41:11 +080030 select ARMV8_SET_SMPEN
York Sun4dd8c612016-10-04 14:31:48 -070031 select FSL_LSCH2
York Sund297d392016-12-28 08:43:40 -080032 select SYS_FSL_DDR
York Sunb6fffd82016-10-04 18:03:08 -070033 select SYS_FSL_DDR_BE
York Sunb6fffd82016-10-04 18:03:08 -070034 select SYS_FSL_DDR_VER_50
York Sun1dc61ca2016-12-28 08:43:41 -080035 select SYS_FSL_ERRATUM_A008511
36 select SYS_FSL_ERRATUM_A009801
37 select SYS_FSL_ERRATUM_A009803
38 select SYS_FSL_ERRATUM_A009942
39 select SYS_FSL_ERRATUM_A010165
Hou Zhiqiangc06b30a2016-09-29 12:42:44 +080040 select SYS_FSL_ERRATUM_A010539
York Sund297d392016-12-28 08:43:40 -080041 select SYS_FSL_HAS_DDR4
York Sun6b62ef02016-10-04 18:01:34 -070042 select SYS_FSL_SRDS_2
Simon Glass62adede2017-01-23 13:31:19 -070043 select ARCH_EARLY_INIT_R
York Sunb3d71642016-09-26 08:09:26 -070044
York Sunfcd0e742016-10-04 14:31:47 -070045config ARCH_LS2080A
46 bool
Hou Zhiqiang4d1525a2017-01-06 17:41:11 +080047 select ARMV8_SET_SMPEN
York Sun4dd8c612016-10-04 14:31:48 -070048 select FSL_LSCH3
York Sund297d392016-12-28 08:43:40 -080049 select SYS_FSL_DDR
York Sunb6fffd82016-10-04 18:03:08 -070050 select SYS_FSL_DDR_LE
51 select SYS_FSL_DDR_VER_50
York Sun6b62ef02016-10-04 18:01:34 -070052 select SYS_FSL_HAS_DP_DDR
York Sun92c36e22016-12-28 08:43:30 -080053 select SYS_FSL_HAS_SEC
York Sund297d392016-12-28 08:43:40 -080054 select SYS_FSL_HAS_DDR4
York Sun92c36e22016-12-28 08:43:30 -080055 select SYS_FSL_SEC_COMPAT_5
York Sunfa4199422016-12-28 08:43:31 -080056 select SYS_FSL_SEC_LE
York Sun6b62ef02016-10-04 18:01:34 -070057 select SYS_FSL_SRDS_2
York Sun1dc61ca2016-12-28 08:43:41 -080058 select SYS_FSL_ERRATUM_A008336
59 select SYS_FSL_ERRATUM_A008511
60 select SYS_FSL_ERRATUM_A008514
61 select SYS_FSL_ERRATUM_A008585
62 select SYS_FSL_ERRATUM_A009635
63 select SYS_FSL_ERRATUM_A009663
64 select SYS_FSL_ERRATUM_A009801
65 select SYS_FSL_ERRATUM_A009803
66 select SYS_FSL_ERRATUM_A009942
67 select SYS_FSL_ERRATUM_A010165
Simon Glass62adede2017-01-23 13:31:19 -070068 select ARCH_EARLY_INIT_R
York Sun4dd8c612016-10-04 14:31:48 -070069
70config FSL_LSCH2
71 bool
York Sun92c36e22016-12-28 08:43:30 -080072 select SYS_FSL_HAS_SEC
73 select SYS_FSL_SEC_COMPAT_5
York Sunfa4199422016-12-28 08:43:31 -080074 select SYS_FSL_SEC_BE
York Sun6b62ef02016-10-04 18:01:34 -070075 select SYS_FSL_SRDS_1
76 select SYS_HAS_SERDES
York Sun4dd8c612016-10-04 14:31:48 -070077
78config FSL_LSCH3
79 bool
York Sun6b62ef02016-10-04 18:01:34 -070080 select SYS_FSL_SRDS_1
81 select SYS_HAS_SERDES
York Sun4dd8c612016-10-04 14:31:48 -070082
83menu "Layerscape architecture"
84 depends on FSL_LSCH2 || FSL_LSCH3
York Sunfcd0e742016-10-04 14:31:47 -070085
Hou Zhiqiangd553bf22016-12-13 14:54:24 +080086config FSL_PCIE_COMPAT
87 string "PCIe compatible of Kernel DT"
88 depends on PCIE_LAYERSCAPE
89 default "fsl,ls1012a-pcie" if ARCH_LS1012A
90 default "fsl,ls1043a-pcie" if ARCH_LS1043A
91 default "fsl,ls1046a-pcie" if ARCH_LS1046A
92 default "fsl,ls2080a-pcie" if ARCH_LS2080A
93 help
94 This compatible is used to find pci controller node in Kernel DT
95 to complete fixup.
96
Wenbin Songa8f57a92017-01-17 18:31:15 +080097config HAS_FEATURE_GIC64K_ALIGN
98 bool
99 default y if ARCH_LS1043A
100
Wenbin Songc6bc7c02017-01-17 18:31:16 +0800101config HAS_FEATURE_ENHANCED_MSI
102 bool
103 default y if ARCH_LS1043A
Wenbin Songa8f57a92017-01-17 18:31:15 +0800104
macro.wave.z@gmail.comec2d7ed2016-12-08 11:58:21 +0800105menu "Layerscape PPA"
106config FSL_LS_PPA
107 bool "FSL Layerscape PPA firmware support"
macro.wave.z@gmail.com01bd3342016-12-08 11:58:22 +0800108 depends on !ARMV8_PSCI
Hou Zhiqiangbff56d52017-01-16 17:31:49 +0800109 select ARMV8_SEC_FIRMWARE_SUPPORT
Hou Zhiqiang6be115d2017-01-16 17:31:48 +0800110 select SEC_FIRMWARE_ARMV8_PSCI
Hou Zhiqiangbff56d52017-01-16 17:31:49 +0800111 select ARMV8_SEC_FIRMWARE_ERET_ADDR_REVERT if FSL_LSCH2
macro.wave.z@gmail.comec2d7ed2016-12-08 11:58:21 +0800112 help
113 The FSL Primary Protected Application (PPA) is a software component
114 which is loaded during boot stage, and then remains resident in RAM
115 and runs in the TrustZone after boot.
116 Say y to enable it.
Hou Zhiqiangbff56d52017-01-16 17:31:49 +0800117choice
118 prompt "FSL Layerscape PPA firmware loading-media select"
119 depends on FSL_LS_PPA
120 default SYS_LS_PPA_FW_IN_XIP
121
122config SYS_LS_PPA_FW_IN_XIP
123 bool "XIP"
124 help
125 Say Y here if the PPA firmware locate at XIP flash, such
126 as NOR or QSPI flash.
127
128endchoice
129
130config SYS_LS_PPA_FW_ADDR
131 hex "Address of PPA firmware loading from"
132 depends on FSL_LS_PPA
133 default 0x40500000 if SYS_LS_PPA_FW_IN_XIP && QSPI_BOOT
134 default 0x60500000 if SYS_LS_PPA_FW_IN_XIP
135 help
136 If the PPA firmware locate at XIP flash, such as NOR or
137 QSPI flash, this address is a directly memory-mapped.
138 If it is in a serial accessed flash, such as NAND and SD
139 card, it is a byte offset.
macro.wave.z@gmail.comec2d7ed2016-12-08 11:58:21 +0800140endmenu
141
York Sun149eb332016-09-26 08:09:27 -0700142config SYS_FSL_ERRATUM_A010315
143 bool "Workaround for PCIe erratum A010315"
Hou Zhiqiangc06b30a2016-09-29 12:42:44 +0800144
145config SYS_FSL_ERRATUM_A010539
146 bool "Workaround for PIN MUX erratum A010539"
York Sun4dd8c612016-10-04 14:31:48 -0700147
York Sunf188d222016-10-04 14:45:01 -0700148config MAX_CPUS
149 int "Maximum number of CPUs permitted for Layerscape"
150 default 4 if ARCH_LS1043A
151 default 4 if ARCH_LS1046A
152 default 16 if ARCH_LS2080A
153 default 1
154 help
155 Set this number to the maximum number of possible CPUs in the SoC.
156 SoCs may have multiple clusters with each cluster may have multiple
157 ports. If some ports are reserved but higher ports are used for
158 cores, count the reserved ports. This will allocate enough memory
159 in spin table to properly handle all cores.
160
York Sun728e7002016-12-02 09:32:35 -0800161config SECURE_BOOT
York Sun8a3d8ed2017-01-04 10:32:08 -0800162 bool "Secure Boot"
York Sun728e7002016-12-02 09:32:35 -0800163 help
164 Enable Freescale Secure Boot feature
165
Yuan Yao52ae4fd2016-12-01 10:13:52 +0800166config QSPI_AHB_INIT
167 bool "Init the QSPI AHB bus"
168 help
169 The default setting for QSPI AHB bus just support 3bytes addressing.
170 But some QSPI flash size up to 64MBytes, so initialize the QSPI AHB
171 bus for those flashes to support the full QSPI flash size.
172
York Sune7310a32016-10-04 14:45:54 -0700173config SYS_FSL_IFC_BANK_COUNT
174 int "Maximum banks of Integrated flash controller"
175 depends on ARCH_LS1043A || ARCH_LS1046A || ARCH_LS2080A
176 default 4 if ARCH_LS1043A
177 default 4 if ARCH_LS1046A
178 default 8 if ARCH_LS2080A
179
York Sun0dc9abb2016-10-04 14:46:50 -0700180config SYS_FSL_HAS_DP_DDR
181 bool
182
York Sun6b62ef02016-10-04 18:01:34 -0700183config SYS_FSL_SRDS_1
184 bool
185
186config SYS_FSL_SRDS_2
187 bool
188
189config SYS_HAS_SERDES
190 bool
191
York Sun4dd8c612016-10-04 14:31:48 -0700192endmenu
York Sun1dc61ca2016-12-28 08:43:41 -0800193
Hou Zhiqiang3f91cda2017-01-10 16:44:15 +0800194menu "Layerscape clock tree configuration"
195 depends on FSL_LSCH2 || FSL_LSCH3
196
197config SYS_FSL_CLK
198 bool "Enable clock tree initialization"
199 default y
200
201config CLUSTER_CLK_FREQ
202 int "Reference clock of core cluster"
203 depends on ARCH_LS1012A
204 default 100000000
205 help
206 This number is the reference clock frequency of core PLL.
207 For most platforms, the core PLL and Platform PLL have the same
208 reference clock, but for some platforms, LS1012A for instance,
209 they are provided sepatately.
210
211config SYS_FSL_PCLK_DIV
212 int "Platform clock divider"
213 default 1 if ARCH_LS1043A
214 default 1 if ARCH_LS1046A
215 default 2
216 help
217 This is the divider that is used to derive Platform clock from
218 Platform PLL, in another word:
219 Platform_clk = Platform_PLL_freq / this_divider
220
221config SYS_FSL_DSPI_CLK_DIV
222 int "DSPI clock divider"
223 default 1 if ARCH_LS1043A
224 default 2
225 help
226 This is the divider that is used to derive DSPI clock from Platform
227 PLL, in another word DSPI_clk = Platform_PLL_freq / this_divider.
228
229config SYS_FSL_DUART_CLK_DIV
230 int "DUART clock divider"
231 default 1 if ARCH_LS1043A
232 default 2
233 help
234 This is the divider that is used to derive DUART clock from Platform
235 clock, in another word DUART_clk = Platform_clk / this_divider.
236
237config SYS_FSL_I2C_CLK_DIV
238 int "I2C clock divider"
239 default 1 if ARCH_LS1043A
240 default 2
241 help
242 This is the divider that is used to derive I2C clock from Platform
243 clock, in another word I2C_clk = Platform_clk / this_divider.
244
245config SYS_FSL_IFC_CLK_DIV
246 int "IFC clock divider"
247 default 1 if ARCH_LS1043A
248 default 2
249 help
250 This is the divider that is used to derive IFC clock from Platform
251 clock, in another word IFC_clk = Platform_clk / this_divider.
252
253config SYS_FSL_LPUART_CLK_DIV
254 int "LPUART clock divider"
255 default 1 if ARCH_LS1043A
256 default 2
257 help
258 This is the divider that is used to derive LPUART clock from Platform
259 clock, in another word LPUART_clk = Platform_clk / this_divider.
260
261config SYS_FSL_SDHC_CLK_DIV
262 int "SDHC clock divider"
263 default 1 if ARCH_LS1043A
264 default 1 if ARCH_LS1012A
265 default 2
266 help
267 This is the divider that is used to derive SDHC clock from Platform
268 clock, in another word SDHC_clk = Platform_clk / this_divider.
269endmenu
270
York Sun1dc61ca2016-12-28 08:43:41 -0800271config SYS_FSL_ERRATUM_A008336
272 bool
273
274config SYS_FSL_ERRATUM_A008514
275 bool
276
277config SYS_FSL_ERRATUM_A008585
278 bool
279
280config SYS_FSL_ERRATUM_A008850
281 bool
282
283config SYS_FSL_ERRATUM_A009635
284 bool
285
286config SYS_FSL_ERRATUM_A009660
287 bool
288
289config SYS_FSL_ERRATUM_A009929
290 bool