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