xref: /openbmc/linux/arch/mips/ralink/Kconfig (revision c0dbbdad)
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_L1_CACHE_SHIFT_4
30		select HAVE_LEGACY_CLK
31		select HAVE_PCI
32
33	config SOC_RT305X
34		bool "RT305x"
35		select HAVE_LEGACY_CLK
36
37	config SOC_RT3883
38		bool "RT3883"
39		select HAVE_LEGACY_CLK
40		select HAVE_PCI
41
42	config SOC_MT7620
43		bool "MT7620/8"
44		select CPU_MIPSR2_IRQ_VI
45		select HAVE_LEGACY_CLK
46		select HAVE_PCI
47
48	config SOC_MT7621
49		bool "MT7621"
50		select MIPS_CPU_SCACHE
51		select SYS_SUPPORTS_MULTITHREADING
52		select SYS_SUPPORTS_SMP
53		select SYS_SUPPORTS_MIPS_CPS
54		select SYS_SUPPORTS_HIGHMEM
55		select MIPS_GIC
56		select COMMON_CLK
57		select CLKSRC_MIPS_GIC
58		select HAVE_PCI if PCI_MT7621
59		select SOC_BUS
60endchoice
61
62choice
63	prompt "Devicetree selection"
64	default DTB_RT_NONE
65	help
66	  Select the devicetree.
67
68	config DTB_RT_NONE
69		bool "None"
70
71	config DTB_RT2880_EVAL
72		bool "RT2880 eval kit"
73		depends on SOC_RT288X
74		select BUILTIN_DTB
75
76	config DTB_RT305X_EVAL
77		bool "RT305x eval kit"
78		depends on SOC_RT305X
79		select BUILTIN_DTB
80
81	config DTB_RT3883_EVAL
82		bool "RT3883 eval kit"
83		depends on SOC_RT3883
84		select BUILTIN_DTB
85
86	config DTB_MT7620A_EVAL
87		bool "MT7620A eval kit"
88		depends on SOC_MT7620
89		select BUILTIN_DTB
90
91	config DTB_OMEGA2P
92		bool "Onion Omega2+"
93		depends on SOC_MT7620
94		select BUILTIN_DTB
95
96	config DTB_VOCORE2
97		bool "VoCore2"
98		depends on SOC_MT7620
99		select BUILTIN_DTB
100
101endchoice
102
103endif
104