Skip to content

Commit ce816e0

Browse files
Duy Nguyenstorulf
authored andcommitted
pmdomain: renesas: r8a779h0-sysc: Add r8a779h0 support
Add support for R-Car V4M (R8A779H0) SoC power areas to the R-Car SYSC driver. Signed-off-by: Duy Nguyen <duy.nguyen.rh@renesas.com> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Acked-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se> Link: https://lore.kernel.org/r/eed6faa02c628d32676ab8ea0eee636b4ffd6c47.1706194617.git.geert+renesas@glider.be Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
1 parent d9e4735 commit ce816e0

File tree

5 files changed

+63
-0
lines changed

5 files changed

+63
-0
lines changed

drivers/pmdomain/renesas/Kconfig

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,10 @@ config SYSC_R8A779G0
7171
bool "System Controller support for R-Car V4H" if COMPILE_TEST
7272
select SYSC_RCAR_GEN4
7373

74+
config SYSC_R8A779H0
75+
bool "System Controller support for R-Car V4M" if COMPILE_TEST
76+
select SYSC_RCAR_GEN4
77+
7478
config SYSC_RMOBILE
7579
bool "System Controller support for R-Mobile" if COMPILE_TEST
7680

drivers/pmdomain/renesas/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ obj-$(CONFIG_SYSC_R8A77995) += r8a77995-sysc.o
2424
obj-$(CONFIG_SYSC_R8A779A0) += r8a779a0-sysc.o
2525
obj-$(CONFIG_SYSC_R8A779F0) += r8a779f0-sysc.o
2626
obj-$(CONFIG_SYSC_R8A779G0) += r8a779g0-sysc.o
27+
obj-$(CONFIG_SYSC_R8A779H0) += r8a779h0-sysc.o
2728
# Family
2829
obj-$(CONFIG_SYSC_RCAR) += rcar-sysc.o
2930
obj-$(CONFIG_SYSC_RCAR_GEN4) += rcar-gen4-sysc.o
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
// SPDX-License-Identifier: GPL-2.0
2+
/*
3+
* Renesas R-Car V4M System Controller
4+
*
5+
* Copyright (C) 2023 Renesas Electronics Corp
6+
*/
7+
8+
#include <linux/kernel.h>
9+
10+
#include <dt-bindings/power/renesas,r8a779h0-sysc.h>
11+
12+
#include "rcar-gen4-sysc.h"
13+
14+
static struct rcar_gen4_sysc_area r8a779h0_areas[] __initdata = {
15+
{ "always-on", R8A779H0_PD_ALWAYS_ON, -1, PD_ALWAYS_ON },
16+
{ "c4", R8A779H0_PD_C4, R8A779H0_PD_ALWAYS_ON },
17+
{ "a2e0d0", R8A779H0_PD_A2E0D0, R8A779H0_PD_C4, PD_SCU },
18+
{ "a1e0d0c0", R8A779H0_PD_A1E0D0C0, R8A779H0_PD_A2E0D0, PD_CPU_NOCR },
19+
{ "a1e0d0c1", R8A779H0_PD_A1E0D0C1, R8A779H0_PD_A2E0D0, PD_CPU_NOCR },
20+
{ "a1e0d0c2", R8A779H0_PD_A1E0D0C2, R8A779H0_PD_A2E0D0, PD_CPU_NOCR },
21+
{ "a1e0d0c3", R8A779H0_PD_A1E0D0C3, R8A779H0_PD_A2E0D0, PD_CPU_NOCR },
22+
{ "a3cr0", R8A779H0_PD_A3CR0, R8A779H0_PD_ALWAYS_ON, PD_CPU_NOCR },
23+
{ "a3cr1", R8A779H0_PD_A3CR1, R8A779H0_PD_ALWAYS_ON, PD_CPU_NOCR },
24+
{ "a3cr2", R8A779H0_PD_A3CR2, R8A779H0_PD_ALWAYS_ON, PD_CPU_NOCR },
25+
{ "a33dga", R8A779H0_PD_A33DGA, R8A779H0_PD_C4 },
26+
{ "a23dgb", R8A779H0_PD_A23DGB, R8A779H0_PD_A33DGA },
27+
{ "a3vip0", R8A779H0_PD_A3VIP0, R8A779H0_PD_C4 },
28+
{ "a3vip2", R8A779H0_PD_A3VIP2, R8A779H0_PD_C4 },
29+
{ "a3dul", R8A779H0_PD_A3DUL, R8A779H0_PD_C4 },
30+
{ "a3isp0", R8A779H0_PD_A3ISP0, R8A779H0_PD_C4 },
31+
{ "a2cn0", R8A779H0_PD_A2CN0, R8A779H0_PD_C4 },
32+
{ "a1cn0", R8A779H0_PD_A1CN0, R8A779H0_PD_A2CN0 },
33+
{ "a1dsp0", R8A779H0_PD_A1DSP0, R8A779H0_PD_A2CN0 },
34+
{ "a1dsp1", R8A779H0_PD_A1DSP1, R8A779H0_PD_A2CN0 },
35+
{ "a2imp01", R8A779H0_PD_A2IMP01, R8A779H0_PD_C4 },
36+
{ "a2psc", R8A779H0_PD_A2PSC, R8A779H0_PD_C4 },
37+
{ "a2dma", R8A779H0_PD_A2DMA, R8A779H0_PD_C4 },
38+
{ "a2cv0", R8A779H0_PD_A2CV0, R8A779H0_PD_C4 },
39+
{ "a2cv1", R8A779H0_PD_A2CV1, R8A779H0_PD_C4 },
40+
{ "a2cv2", R8A779H0_PD_A2CV2, R8A779H0_PD_C4 },
41+
{ "a2cv3", R8A779H0_PD_A2CV3, R8A779H0_PD_C4 },
42+
{ "a3imr0", R8A779H0_PD_A3IMR0, R8A779H0_PD_C4 },
43+
{ "a3imr1", R8A779H0_PD_A3IMR1, R8A779H0_PD_C4 },
44+
{ "a3imr2", R8A779H0_PD_A3IMR2, R8A779H0_PD_C4 },
45+
{ "a3imr3", R8A779H0_PD_A3IMR3, R8A779H0_PD_C4 },
46+
{ "a3vc", R8A779H0_PD_A3VC, R8A779H0_PD_C4 },
47+
{ "a3pci", R8A779H0_PD_A3PCI, R8A779H0_PD_C4 },
48+
{ "a2pciphy", R8A779H0_PD_A2PCIPHY, R8A779H0_PD_A3PCI },
49+
};
50+
51+
const struct rcar_gen4_sysc_info r8a779h0_sysc_info __initconst = {
52+
.areas = r8a779h0_areas,
53+
.num_areas = ARRAY_SIZE(r8a779h0_areas),
54+
};

drivers/pmdomain/renesas/rcar-gen4-sysc.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -284,6 +284,9 @@ static const struct of_device_id rcar_gen4_sysc_matches[] __initconst = {
284284
#endif
285285
#ifdef CONFIG_SYSC_R8A779G0
286286
{ .compatible = "renesas,r8a779g0-sysc", .data = &r8a779g0_sysc_info },
287+
#endif
288+
#ifdef CONFIG_SYSC_R8A779H0
289+
{ .compatible = "renesas,r8a779h0-sysc", .data = &r8a779h0_sysc_info },
287290
#endif
288291
{ /* sentinel */ }
289292
};

drivers/pmdomain/renesas/rcar-gen4-sysc.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,5 +40,6 @@ struct rcar_gen4_sysc_info {
4040
extern const struct rcar_gen4_sysc_info r8a779a0_sysc_info;
4141
extern const struct rcar_gen4_sysc_info r8a779f0_sysc_info;
4242
extern const struct rcar_gen4_sysc_info r8a779g0_sysc_info;
43+
extern const struct rcar_gen4_sysc_info r8a779h0_sysc_info;
4344

4445
#endif /* __SOC_RENESAS_RCAR_GEN4_SYSC_H__ */

0 commit comments

Comments
 (0)