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