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