1menu "mpc83xx CPU"
2	depends on MPC83xx
3
4config SYS_CPU
5	default "mpc83xx"
6
7choice
8	prompt "Target select"
9	optional
10
11config TARGET_MPC8308_P1M
12	bool "Support mpc8308_p1m"
13	select ARCH_MPC8308
14
15config TARGET_SBC8349
16	bool "Support sbc8349"
17	select ARCH_MPC8349
18
19config TARGET_VE8313
20	bool "Support ve8313"
21	select ARCH_MPC8313
22
23config TARGET_VME8349
24	bool "Support vme8349"
25	select ARCH_MPC8349
26
27config TARGET_CADDY2
28	bool "Support caddy2"
29	select ARCH_MPC8349
30
31config TARGET_MPC8308RDB
32	bool "Support MPC8308RDB"
33	select ARCH_MPC8308
34	select SYS_FSL_ERRATUM_ESDHC111
35
36config TARGET_MPC8313ERDB_NOR
37	bool "Support MPC8313ERDB_NOR"
38	select ARCH_MPC8313
39	select BOARD_EARLY_INIT_F
40	select SUPPORT_SPL
41
42config TARGET_MPC8313ERDB_NAND
43	bool "Support MPC8313ERDB_NAND"
44	select ARCH_MPC8313
45	select BOARD_EARLY_INIT_F
46	select SUPPORT_SPL
47
48config TARGET_MPC8315ERDB
49	bool "Support MPC8315ERDB"
50	select ARCH_MPC8315
51	select BOARD_EARLY_INIT_F
52
53config TARGET_MPC8323ERDB
54	bool "Support MPC8323ERDB"
55	select ARCH_MPC832X
56
57config TARGET_MPC832XEMDS
58	bool "Support MPC832XEMDS"
59	select ARCH_MPC832X
60	select BOARD_EARLY_INIT_F
61
62config TARGET_MPC8349EMDS
63	bool "Support MPC8349EMDS"
64	select ARCH_MPC8349
65	select BOARD_EARLY_INIT_F
66	select SYS_FSL_DDR
67	select SYS_FSL_DDR_BE
68	select SYS_FSL_HAS_DDR2
69
70config TARGET_MPC8349EMDS_SDRAM
71	bool "Support MPC8349EMDS_SDRAM"
72	select ARCH_MPC8349
73	select BOARD_EARLY_INIT_F
74	select SYS_FSL_DDR
75	select SYS_FSL_DDR_BE
76	select SYS_FSL_HAS_DDR2
77
78config TARGET_MPC8349ITX
79	bool "Support MPC8349ITX"
80	select ARCH_MPC8349
81	imply CMD_IRQ
82
83config TARGET_MPC837XEMDS
84	bool "Support MPC837XEMDS"
85	select ARCH_MPC837X
86	select BOARD_EARLY_INIT_F
87	imply CMD_SATA
88	imply FSL_SATA
89
90config TARGET_MPC837XERDB
91	bool "Support MPC837XERDB"
92	select ARCH_MPC837X
93	select BOARD_EARLY_INIT_F
94
95config TARGET_IDS8313
96	bool "Support ids8313"
97	select ARCH_MPC8313
98	select DM
99	imply CMD_DM
100
101config TARGET_KMETER1
102	bool "Support kmeter1"
103	select VENDOR_KM
104	select KM_ENABLE_FULL_DM_DTS_SUPPORT
105
106config TARGET_KMCOGE5NE
107	bool "Support kmcoge5ne"
108	select VENDOR_KM
109	select KM_ENABLE_FULL_DM_DTS_SUPPORT
110
111config TARGET_KMTEGR1
112	bool "Support kmtegr1"
113	select VENDOR_KM
114	select KM_ENABLE_FULL_DM_DTS_SUPPORT
115
116config TARGET_TUXX1
117	bool "Support tuxx1"
118	select VENDOR_KM
119	select KM_ENABLE_FULL_DM_DTS_SUPPORT
120
121config TARGET_KMSUPX5
122	bool "Support kmsupx5"
123	select VENDOR_KM
124	select KM_ENABLE_FULL_DM_DTS_SUPPORT
125
126config TARGET_TUGE1
127	bool "Support tuge1"
128	select VENDOR_KM
129	select KM_ENABLE_FULL_DM_DTS_SUPPORT
130
131config TARGET_KMOPTI2
132	bool "Support kmopti2"
133	select VENDOR_KM
134	select KM_ENABLE_FULL_DM_DTS_SUPPORT
135
136config TARGET_KMTEPR2
137	bool "Support kmtepr2"
138	select VENDOR_KM
139	select KM_ENABLE_FULL_DM_DTS_SUPPORT
140
141config TARGET_TQM834X
142	bool "Support TQM834x"
143	select ARCH_MPC8349
144
145config TARGET_HRCON
146	bool "Support hrcon"
147	select ARCH_MPC8308
148	select SYS_FSL_ERRATUM_ESDHC111
149
150config TARGET_STRIDER
151	bool "Support strider"
152	select ARCH_MPC8308
153	select SYS_FSL_ERRATUM_ESDHC111
154	imply CMD_PCA953X
155
156config TARGET_GAZERBEAM
157	bool "Support gazerbeam"
158	select ARCH_MPC8308
159	select SYS_FSL_ERRATUM_ESDHC111
160	imply ENV_IS_IN_FLASH
161	help
162	  The "Gazerbeam" is a modular system by Guntermann & Drunck GmbH
163	  Systementwicklung based on the NXP MPC8308 SoC for usage in KVM
164	  appliances.
165
166	  Features include:
167	  * Two gigabit ethernet ports
168	  * Multiple USB ports (depending on variant)
169	  * Several gigabit ethernet or optical fiber ports (depending on
170	    variant)
171	  * Several display port inputs and outputs, and supporting redrivers
172	    (depending on variant)
173	  * Several FPGAs with custom logic (depending on variant)
174
175endchoice
176
177config MPC83XX_QUICC_ENGINE
178	bool
179
180# TODO: Imply MPC83xx PCI driver
181config MPC83XX_PCI_SUPPORT
182	bool
183
184# TODO: Imply TSEC driver
185config MPC83XX_TSEC1_SUPPORT
186	bool
187
188config MPC83XX_TSEC2_SUPPORT
189	bool
190
191config MPC83XX_PCIE1_SUPPORT
192	bool
193
194config MPC83XX_PCIE2_SUPPORT
195	bool
196
197config MPC83XX_SDHC_SUPPORT
198	bool
199
200config MPC83XX_SATA_SUPPORT
201	bool
202
203config MPC83XX_SECOND_I2C_SUPPORT
204	bool
205
206config MPC83XX_LDP_PIN
207	bool
208
209config ARCH_MPC830X
210	bool
211	select MPC83XX_SDHC_SUPPORT
212
213config ARCH_MPC8308
214	bool
215	select ARCH_MPC830X
216	select MPC83XX_TSEC1_SUPPORT
217	select MPC83XX_TSEC2_SUPPORT
218	select MPC83XX_PCIE1_SUPPORT
219	select MPC83XX_SECOND_I2C_SUPPORT
220
221config ARCH_MPC8309
222	bool
223	select ARCH_MPC830X
224	select MPC83XX_QUICC_ENGINE
225	select MPC83XX_PCI_SUPPORT
226	select MPC83XX_SECOND_I2C_SUPPORT
227	select SYS_FSL_ERRATUM_ESDHC111
228	select FSL_ELBC
229
230config ARCH_MPC831X
231	bool
232	select MPC83XX_PCI_SUPPORT
233	select MPC83XX_TSEC1_SUPPORT
234	select MPC83XX_TSEC2_SUPPORT
235
236config ARCH_MPC8313
237	bool
238	select ARCH_MPC831X
239	select MPC83XX_SECOND_I2C_SUPPORT
240	select FSL_ELBC
241
242config ARCH_MPC8315
243	bool
244	select ARCH_MPC831X
245	select MPC83XX_PCIE1_SUPPORT
246	select MPC83XX_PCIE2_SUPPORT
247	select MPC83XX_SATA_SUPPORT
248	select FSL_ELBC
249
250config ARCH_MPC832X
251	bool
252	select MPC83XX_QUICC_ENGINE
253	select MPC83XX_PCI_SUPPORT
254
255config ARCH_MPC834X
256	bool
257
258config ARCH_MPC8349
259	bool
260	select ARCH_MPC834X
261	select MPC83XX_PCI_SUPPORT
262	select MPC83XX_TSEC1_SUPPORT
263	select MPC83XX_TSEC2_SUPPORT
264	select MPC83XX_LDP_PIN
265	select MPC83XX_SECOND_I2C_SUPPORT
266
267config ARCH_MPC8360
268	bool
269	select MPC83XX_QUICC_ENGINE
270	select MPC83XX_PCI_SUPPORT
271	select MPC83XX_LDP_PIN
272	select MPC83XX_SECOND_I2C_SUPPORT
273
274config ARCH_MPC837X
275	bool
276	select MPC83XX_PCI_SUPPORT
277	select MPC83XX_TSEC1_SUPPORT
278	select MPC83XX_TSEC2_SUPPORT
279	select MPC83XX_PCIE1_SUPPORT
280	select MPC83XX_PCIE2_SUPPORT
281	select MPC83XX_SDHC_SUPPORT
282	select MPC83XX_SATA_SUPPORT
283	select MPC83XX_LDP_PIN
284	select MPC83XX_SECOND_I2C_SUPPORT
285	select FSL_ELBC
286
287config SYS_IMMR
288	hex "Value for IMMR"
289	default 0xE0000000
290	help
291	  Address for the Internal Memory-Mapped Registers (IMMR) window used
292	  to configure the features of the SoC.
293
294source "arch/powerpc/cpu/mpc83xx/hrcw/Kconfig"
295source "arch/powerpc/cpu/mpc83xx/bats/Kconfig"
296source "arch/powerpc/cpu/mpc83xx/lblaw/Kconfig"
297source "arch/powerpc/cpu/mpc83xx/elbc/Kconfig"
298source "arch/powerpc/cpu/mpc83xx/hid/Kconfig"
299source "arch/powerpc/cpu/mpc83xx/sysio/Kconfig"
300source "arch/powerpc/cpu/mpc83xx/arbiter/Kconfig"
301source "arch/powerpc/cpu/mpc83xx/initreg/Kconfig"
302
303menu "Legacy options"
304
305if ARCH_MPC8349
306
307#TODO(mario.six@gdsys.cc): Remove when mpc83xx PCI has been converted to DM/DT
308choice
309	prompt "PMC slot configuration"
310
311config PCI_ALL_PCI1
312	bool "All PMC slots on PCI1"
313
314config PCI_ONE_PCI1
315	bool "First PMC1 on PCI1"
316
317config PCI_TWO_PCI1
318	bool "First two PMC1 on PCI1"
319
320endchoice
321
322config PCI_64BIT
323	bool "PMC2 is 64bit"
324
325endif
326
327endmenu
328
329config FSL_ELBC
330	bool
331
332source "board/esd/vme8349/Kconfig"
333source "board/freescale/mpc8308rdb/Kconfig"
334source "board/freescale/mpc8313erdb/Kconfig"
335source "board/freescale/mpc8315erdb/Kconfig"
336source "board/freescale/mpc8323erdb/Kconfig"
337source "board/freescale/mpc832xemds/Kconfig"
338source "board/freescale/mpc8349emds/Kconfig"
339source "board/freescale/mpc8349itx/Kconfig"
340source "board/freescale/mpc837xemds/Kconfig"
341source "board/freescale/mpc837xerdb/Kconfig"
342source "board/ids/ids8313/Kconfig"
343source "board/keymile/Kconfig"
344source "board/mpc8308_p1m/Kconfig"
345source "board/sbc8349/Kconfig"
346source "board/tqc/tqm834x/Kconfig"
347source "board/ve8313/Kconfig"
348source "board/gdsys/mpc8308/Kconfig"
349
350endmenu
351