Skip to content

Commit fa43948

Browse files
geertuhorms
authored andcommitted
arm64: renesas: Move SoC Kconfig symbols to drivers/soc/renesas/
arch/arm64/Kconfig.platforms has SoC-specific Kconfig symbols for Renesas SoCs, while other vendors have only a single Kconfig symbol. Increase consistency with other vendors by moving the SoC-specific Kconfig symbols to drivers/soc/renesas/Kconfig. Increase consistency with R-Car Gen1 and Gen2 SoCs on arm32 by introducing a family-specific Kconfig symbol for R-Car Gen3 (ARCH_RCAR_GEN3), which enables family-specific hardware features. While so far only a single family (R-Car Gen3 and derivatives) of Renesas arm64 SoCs is supported by Linux, this will make it easier to add support for other SoC families later. Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
1 parent 79aac4b commit fa43948

File tree

2 files changed

+77
-72
lines changed

2 files changed

+77
-72
lines changed

arch/arm64/Kconfig.platforms

Lines changed: 0 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -159,69 +159,10 @@ config ARCH_RENESAS
159159
bool "Renesas SoC Platforms"
160160
select GPIOLIB
161161
select PINCTRL
162-
select PM
163-
select PM_GENERIC_DOMAINS
164-
select RENESAS_IRQC
165162
select SOC_BUS
166-
select SYS_SUPPORTS_SH_CMT
167-
select SYS_SUPPORTS_SH_TMU
168163
help
169164
This enables support for the ARMv8 based Renesas SoCs.
170165

171-
config ARCH_R8A774A1
172-
bool "Renesas RZ/G2M SoC Platform"
173-
depends on ARCH_RENESAS
174-
help
175-
This enables support for the Renesas RZ/G2M SoC.
176-
177-
config ARCH_R8A774C0
178-
bool "Renesas RZ/G2E SoC Platform"
179-
depends on ARCH_RENESAS
180-
help
181-
This enables support for the Renesas RZ/G2E SoC.
182-
183-
config ARCH_R8A7795
184-
bool "Renesas R-Car H3 SoC Platform"
185-
depends on ARCH_RENESAS
186-
help
187-
This enables support for the Renesas R-Car H3 SoC.
188-
189-
config ARCH_R8A7796
190-
bool "Renesas R-Car M3-W SoC Platform"
191-
depends on ARCH_RENESAS
192-
help
193-
This enables support for the Renesas R-Car M3-W SoC.
194-
195-
config ARCH_R8A77965
196-
bool "Renesas R-Car M3-N SoC Platform"
197-
depends on ARCH_RENESAS
198-
help
199-
This enables support for the Renesas R-Car M3-N SoC.
200-
201-
config ARCH_R8A77970
202-
bool "Renesas R-Car V3M SoC Platform"
203-
depends on ARCH_RENESAS
204-
help
205-
This enables support for the Renesas R-Car V3M SoC.
206-
207-
config ARCH_R8A77980
208-
bool "Renesas R-Car V3H SoC Platform"
209-
depends on ARCH_RENESAS
210-
help
211-
This enables support for the Renesas R-Car V3H SoC.
212-
213-
config ARCH_R8A77990
214-
bool "Renesas R-Car E3 SoC Platform"
215-
depends on ARCH_RENESAS
216-
help
217-
This enables support for the Renesas R-Car E3 SoC.
218-
219-
config ARCH_R8A77995
220-
bool "Renesas R-Car D3 SoC Platform"
221-
depends on ARCH_RENESAS
222-
help
223-
This enables support for the Renesas R-Car D3 SoC.
224-
225166
config ARCH_ROCKCHIP
226167
bool "Rockchip Platforms"
227168
select ARCH_HAS_RESET_CONTROLLER

drivers/soc/renesas/Kconfig

Lines changed: 77 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,30 +3,94 @@ config SOC_RENESAS
33
bool "Renesas SoC driver support" if COMPILE_TEST && !ARCH_RENESAS
44
default y if ARCH_RENESAS
55
select SOC_BUS
6-
select RST_RCAR if ARCH_RCAR_GEN1 || ARCH_RCAR_GEN2 || \
7-
ARCH_R8A774A1 || ARCH_R8A774C0 || ARCH_R8A7795 || \
8-
ARCH_R8A7796 || ARCH_R8A77965 || ARCH_R8A77970 || \
9-
ARCH_R8A77980 || ARCH_R8A77990 || ARCH_R8A77995
6+
select RST_RCAR if ARCH_RCAR_GEN1 || ARCH_RCAR_GEN2
107
select SYSC_R8A7743 if ARCH_R8A7743 || ARCH_R8A7744
118
select SYSC_R8A7745 if ARCH_R8A7745
129
select SYSC_R8A77470 if ARCH_R8A77470
13-
select SYSC_R8A774A1 if ARCH_R8A774A1
14-
select SYSC_R8A774C0 if ARCH_R8A774C0
1510
select SYSC_R8A7779 if ARCH_R8A7779
1611
select SYSC_R8A7790 if ARCH_R8A7790
1712
select SYSC_R8A7791 if ARCH_R8A7791 || ARCH_R8A7793
1813
select SYSC_R8A7792 if ARCH_R8A7792
1914
select SYSC_R8A7794 if ARCH_R8A7794
20-
select SYSC_R8A7795 if ARCH_R8A7795
21-
select SYSC_R8A7796 if ARCH_R8A7796
22-
select SYSC_R8A77965 if ARCH_R8A77965
23-
select SYSC_R8A77970 if ARCH_R8A77970
24-
select SYSC_R8A77980 if ARCH_R8A77980
25-
select SYSC_R8A77990 if ARCH_R8A77990
26-
select SYSC_R8A77995 if ARCH_R8A77995
2715

2816
if SOC_RENESAS
2917

18+
config ARCH_RCAR_GEN3
19+
bool
20+
select PM
21+
select PM_GENERIC_DOMAINS
22+
select RENESAS_IRQC
23+
select RST_RCAR
24+
select SYS_SUPPORTS_SH_CMT
25+
select SYS_SUPPORTS_SH_TMU
26+
27+
if ARM64
28+
29+
config ARCH_R8A774A1
30+
bool "Renesas RZ/G2M SoC Platform"
31+
select ARCH_RCAR_GEN3
32+
select SYSC_R8A774A1
33+
help
34+
This enables support for the Renesas RZ/G2M SoC.
35+
36+
config ARCH_R8A774C0
37+
bool "Renesas RZ/G2E SoC Platform"
38+
select ARCH_RCAR_GEN3
39+
select SYSC_R8A774C0
40+
help
41+
This enables support for the Renesas RZ/G2E SoC.
42+
43+
config ARCH_R8A7795
44+
bool "Renesas R-Car H3 SoC Platform"
45+
select ARCH_RCAR_GEN3
46+
select SYSC_R8A7795
47+
help
48+
This enables support for the Renesas R-Car H3 SoC.
49+
50+
config ARCH_R8A7796
51+
bool "Renesas R-Car M3-W SoC Platform"
52+
select ARCH_RCAR_GEN3
53+
select SYSC_R8A7796
54+
help
55+
This enables support for the Renesas R-Car M3-W SoC.
56+
57+
config ARCH_R8A77965
58+
bool "Renesas R-Car M3-N SoC Platform"
59+
select ARCH_RCAR_GEN3
60+
select SYSC_R8A77965
61+
help
62+
This enables support for the Renesas R-Car M3-N SoC.
63+
64+
config ARCH_R8A77970
65+
bool "Renesas R-Car V3M SoC Platform"
66+
select ARCH_RCAR_GEN3
67+
select SYSC_R8A77970
68+
help
69+
This enables support for the Renesas R-Car V3M SoC.
70+
71+
config ARCH_R8A77980
72+
bool "Renesas R-Car V3H SoC Platform"
73+
select ARCH_RCAR_GEN3
74+
select SYSC_R8A77980
75+
help
76+
This enables support for the Renesas R-Car V3H SoC.
77+
78+
config ARCH_R8A77990
79+
bool "Renesas R-Car E3 SoC Platform"
80+
select ARCH_RCAR_GEN3
81+
select SYSC_R8A77990
82+
help
83+
This enables support for the Renesas R-Car E3 SoC.
84+
85+
config ARCH_R8A77995
86+
bool "Renesas R-Car D3 SoC Platform"
87+
select ARCH_RCAR_GEN3
88+
select SYSC_R8A77995
89+
help
90+
This enables support for the Renesas R-Car D3 SoC.
91+
92+
endif # ARM64
93+
3094
# SoC
3195
config SYSC_R8A7743
3296
bool "RZ/G1M System Controller support" if COMPILE_TEST

0 commit comments

Comments
 (0)