xref: /openbmc/linux/arch/mips/ralink/Kconfig (revision 7f1005dd)
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		select SOC_BUS
33
34	config SOC_RT305X
35		bool "RT305x"
36		select SOC_BUS
37
38	config SOC_RT3883
39		bool "RT3883"
40		select HAVE_PCI
41		select SOC_BUS
42
43	config SOC_MT7620
44		bool "MT7620/8"
45		select CPU_MIPSR2_IRQ_VI
46		select HAVE_PCI
47		select SOC_BUS
48
49	config SOC_MT7621
50		bool "MT7621"
51		select MIPS_CPU_SCACHE
52		select SYS_SUPPORTS_MULTITHREADING
53		select SYS_SUPPORTS_SMP
54		select SYS_SUPPORTS_MIPS_CPS
55		select SYS_SUPPORTS_HIGHMEM
56		select MIPS_GIC
57		select CLKSRC_MIPS_GIC
58		select HAVE_PCI
59		select PCI_DRIVERS_GENERIC
60		select SOC_BUS
61		select PINCTRL
62
63		help
64		  The MT7621 system-on-a-chip includes an 880 MHz MIPS1004Kc
65		  dual-core CPU, a 5-port 10/100/1000 switch/PHY and one RGMII.
66endchoice
67
68choice
69	prompt "Devicetree selection"
70	depends on !SOC_MT7621
71	default DTB_RT_NONE
72	help
73	  Select the devicetree.
74
75	config DTB_RT_NONE
76		bool "None"
77
78	config DTB_RT2880_EVAL
79		bool "RT2880 eval kit"
80		depends on SOC_RT288X
81		select BUILTIN_DTB
82
83	config DTB_RT305X_EVAL
84		bool "RT305x eval kit"
85		depends on SOC_RT305X
86		select BUILTIN_DTB
87
88	config DTB_RT3883_EVAL
89		bool "RT3883 eval kit"
90		depends on SOC_RT3883
91		select BUILTIN_DTB
92
93	config DTB_MT7620A_EVAL
94		bool "MT7620A eval kit"
95		depends on SOC_MT7620
96		select BUILTIN_DTB
97
98	config DTB_OMEGA2P
99		bool "Onion Omega2+"
100		depends on SOC_MT7620
101		select BUILTIN_DTB
102
103	config DTB_VOCORE2
104		bool "VoCore2"
105		depends on SOC_MT7620
106		select BUILTIN_DTB
107
108endchoice
109
110endif
111