18c2ecf20Sopenharmony_ci// SPDX-License-Identifier: GPL-2.0
28c2ecf20Sopenharmony_ci/*
38c2ecf20Sopenharmony_ci * Renesas R-Car V3M System Controller
48c2ecf20Sopenharmony_ci *
58c2ecf20Sopenharmony_ci * Copyright (C) 2017 Cogent Embedded Inc.
68c2ecf20Sopenharmony_ci */
78c2ecf20Sopenharmony_ci
88c2ecf20Sopenharmony_ci#include <linux/bits.h>
98c2ecf20Sopenharmony_ci#include <linux/kernel.h>
108c2ecf20Sopenharmony_ci
118c2ecf20Sopenharmony_ci#include <dt-bindings/power/r8a77970-sysc.h>
128c2ecf20Sopenharmony_ci
138c2ecf20Sopenharmony_ci#include "rcar-sysc.h"
148c2ecf20Sopenharmony_ci
158c2ecf20Sopenharmony_cistatic const struct rcar_sysc_area r8a77970_areas[] __initconst = {
168c2ecf20Sopenharmony_ci	{ "always-on",	    0, 0, R8A77970_PD_ALWAYS_ON, -1, PD_ALWAYS_ON },
178c2ecf20Sopenharmony_ci	{ "ca53-scu",	0x140, 0, R8A77970_PD_CA53_SCU,	R8A77970_PD_ALWAYS_ON,
188c2ecf20Sopenharmony_ci	  PD_SCU },
198c2ecf20Sopenharmony_ci	{ "ca53-cpu0",	0x200, 0, R8A77970_PD_CA53_CPU0, R8A77970_PD_CA53_SCU,
208c2ecf20Sopenharmony_ci	  PD_CPU_NOCR },
218c2ecf20Sopenharmony_ci	{ "ca53-cpu1",	0x200, 1, R8A77970_PD_CA53_CPU1, R8A77970_PD_CA53_SCU,
228c2ecf20Sopenharmony_ci	  PD_CPU_NOCR },
238c2ecf20Sopenharmony_ci	{ "a3ir",	0x180, 0, R8A77970_PD_A3IR,	R8A77970_PD_ALWAYS_ON },
248c2ecf20Sopenharmony_ci	{ "a2ir0",	0x400, 0, R8A77970_PD_A2IR0,	R8A77970_PD_A3IR },
258c2ecf20Sopenharmony_ci	{ "a2ir1",	0x400, 1, R8A77970_PD_A2IR1,	R8A77970_PD_A3IR },
268c2ecf20Sopenharmony_ci	{ "a2dp",	0x400, 2, R8A77970_PD_A2DP,	R8A77970_PD_A3IR },
278c2ecf20Sopenharmony_ci	{ "a2cn",	0x400, 3, R8A77970_PD_A2CN,	R8A77970_PD_A3IR },
288c2ecf20Sopenharmony_ci	{ "a2sc0",	0x400, 4, R8A77970_PD_A2SC0,	R8A77970_PD_A3IR },
298c2ecf20Sopenharmony_ci	{ "a2sc1",	0x400, 5, R8A77970_PD_A2SC1,	R8A77970_PD_A3IR },
308c2ecf20Sopenharmony_ci};
318c2ecf20Sopenharmony_ci
328c2ecf20Sopenharmony_ciconst struct rcar_sysc_info r8a77970_sysc_info __initconst = {
338c2ecf20Sopenharmony_ci	.areas = r8a77970_areas,
348c2ecf20Sopenharmony_ci	.num_areas = ARRAY_SIZE(r8a77970_areas),
358c2ecf20Sopenharmony_ci	.extmask_offs = 0x1b0,
368c2ecf20Sopenharmony_ci	.extmask_val = BIT(0),
378c2ecf20Sopenharmony_ci};
38