xref: /linux/arch/mips/ralink/Kconfig (revision 0a94608f0f7de9b1135ffea3546afe68eafef57f)
1# SPDX-License-Identifier: GPL-2.0
2if RALINK
3
4config CLKEVT_RT3352
5	bool
6	depends on SOC_RT305X || SOC_MT7620
7	default y
8	select TIMER_OF
9	select CLKSRC_MMIO
10
11config RALINK_ILL_ACC
12	bool
13	depends on SOC_RT305X
14	default y
15
16config IRQ_INTC
17	bool
18	default y
19	depends on !SOC_MT7621
20
21choice
22	prompt "Ralink SoC selection"
23	default SOC_RT305X
24	help
25	  Select Ralink MIPS SoC type.
26
27	config SOC_RT288X
28		bool "RT288x"
29		select MIPS_AUTO_PFN_OFFSET
30		select MIPS_L1_CACHE_SHIFT_4
31		select HAVE_PCI
32
33	config SOC_RT305X
34		bool "RT305x"
35
36	config SOC_RT3883
37		bool "RT3883"
38		select HAVE_PCI
39
40	config SOC_MT7620
41		bool "MT7620/8"
42		select CPU_MIPSR2_IRQ_VI
43		select HAVE_PCI
44
45	config SOC_MT7621
46		bool "MT7621"
47		select MIPS_CPU_SCACHE
48		select SYS_SUPPORTS_MULTITHREADING
49		select SYS_SUPPORTS_SMP
50		select SYS_SUPPORTS_MIPS_CPS
51		select SYS_SUPPORTS_HIGHMEM
52		select MIPS_GIC
53		select CLKSRC_MIPS_GIC
54		select HAVE_PCI
55		select PCI_DRIVERS_GENERIC
56		select SOC_BUS
57
58		help
59		  The MT7621 system-on-a-chip includes an 880 MHz MIPS1004Kc dual-core CPU,
60		  a 5-port 10/100/1000 switch/PHY and one RGMII.
61endchoice
62
63choice
64	prompt "Devicetree selection"
65	depends on !SOC_MT7621
66	default DTB_RT_NONE
67	help
68	  Select the devicetree.
69
70	config DTB_RT_NONE
71		bool "None"
72
73	config DTB_RT2880_EVAL
74		bool "RT2880 eval kit"
75		depends on SOC_RT288X
76		select BUILTIN_DTB
77
78	config DTB_RT305X_EVAL
79		bool "RT305x eval kit"
80		depends on SOC_RT305X
81		select BUILTIN_DTB
82
83	config DTB_RT3883_EVAL
84		bool "RT3883 eval kit"
85		depends on SOC_RT3883
86		select BUILTIN_DTB
87
88	config DTB_MT7620A_EVAL
89		bool "MT7620A eval kit"
90		depends on SOC_MT7620
91		select BUILTIN_DTB
92
93	config DTB_OMEGA2P
94		bool "Onion Omega2+"
95		depends on SOC_MT7620
96		select BUILTIN_DTB
97
98	config DTB_VOCORE2
99		bool "VoCore2"
100		depends on SOC_MT7620
101		select BUILTIN_DTB
102
103endchoice
104
105endif
106