aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/soc/renesas/r8a77990-sysc.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/soc/renesas/r8a77990-sysc.c')
-rw-r--r--drivers/soc/renesas/r8a77990-sysc.c33
1 files changed, 33 insertions, 0 deletions
diff --git a/drivers/soc/renesas/r8a77990-sysc.c b/drivers/soc/renesas/r8a77990-sysc.c
new file mode 100644
index 000000000000..a8c6417fcd2b
--- /dev/null
+++ b/drivers/soc/renesas/r8a77990-sysc.c
@@ -0,0 +1,33 @@
1// SPDX-License-Identifier: GPL-2.0
2/*
3 * Renesas R-Car E3 System Controller
4 *
5 * Copyright (C) 2018 Renesas Electronics Corp.
6 */
7
8#include <linux/bug.h>
9#include <linux/kernel.h>
10
11#include <dt-bindings/power/r8a77990-sysc.h>
12
13#include "rcar-sysc.h"
14
15static const struct rcar_sysc_area r8a77990_areas[] __initconst = {
16 { "always-on", 0, 0, R8A77990_PD_ALWAYS_ON, -1, PD_ALWAYS_ON },
17 { "ca53-scu", 0x140, 0, R8A77990_PD_CA53_SCU, R8A77990_PD_ALWAYS_ON,
18 PD_SCU },
19 { "ca53-cpu0", 0x200, 0, R8A77990_PD_CA53_CPU0, R8A77990_PD_CA53_SCU,
20 PD_CPU_NOCR },
21 { "ca53-cpu1", 0x200, 1, R8A77990_PD_CA53_CPU1, R8A77990_PD_CA53_SCU,
22 PD_CPU_NOCR },
23 { "cr7", 0x240, 0, R8A77990_PD_CR7, R8A77990_PD_ALWAYS_ON },
24 { "a3vc", 0x380, 0, R8A77990_PD_A3VC, R8A77990_PD_ALWAYS_ON },
25 { "a2vc1", 0x3c0, 1, R8A77990_PD_A2VC1, R8A77990_PD_A3VC },
26 { "3dg-a", 0x100, 0, R8A77990_PD_3DG_A, R8A77990_PD_ALWAYS_ON },
27 { "3dg-b", 0x100, 1, R8A77990_PD_3DG_B, R8A77990_PD_3DG_A },
28};
29
30const struct rcar_sysc_info r8a77990_sysc_info __initconst = {
31 .areas = r8a77990_areas,
32 .num_areas = ARRAY_SIZE(r8a77990_areas),
33};