18c2ecf20Sopenharmony_ci// SPDX-License-Identifier: GPL-2.0
28c2ecf20Sopenharmony_ci/*
38c2ecf20Sopenharmony_ci * Renesas R-Car H1 System Controller
48c2ecf20Sopenharmony_ci *
58c2ecf20Sopenharmony_ci * Copyright (C) 2016 Glider bvba
68c2ecf20Sopenharmony_ci */
78c2ecf20Sopenharmony_ci
88c2ecf20Sopenharmony_ci#include <linux/kernel.h>
98c2ecf20Sopenharmony_ci
108c2ecf20Sopenharmony_ci#include <dt-bindings/power/r8a7779-sysc.h>
118c2ecf20Sopenharmony_ci
128c2ecf20Sopenharmony_ci#include "rcar-sysc.h"
138c2ecf20Sopenharmony_ci
148c2ecf20Sopenharmony_cistatic const struct rcar_sysc_area r8a7779_areas[] __initconst = {
158c2ecf20Sopenharmony_ci	{ "always-on",	    0, 0, R8A7779_PD_ALWAYS_ON,	-1, PD_ALWAYS_ON },
168c2ecf20Sopenharmony_ci	{ "arm1",	 0x40, 1, R8A7779_PD_ARM1,	R8A7779_PD_ALWAYS_ON,
178c2ecf20Sopenharmony_ci	  PD_CPU_CR },
188c2ecf20Sopenharmony_ci	{ "arm2",	 0x40, 2, R8A7779_PD_ARM2,	R8A7779_PD_ALWAYS_ON,
198c2ecf20Sopenharmony_ci	  PD_CPU_CR },
208c2ecf20Sopenharmony_ci	{ "arm3",	 0x40, 3, R8A7779_PD_ARM3,	R8A7779_PD_ALWAYS_ON,
218c2ecf20Sopenharmony_ci	  PD_CPU_CR },
228c2ecf20Sopenharmony_ci	{ "sgx",	 0xc0, 0, R8A7779_PD_SGX,	R8A7779_PD_ALWAYS_ON },
238c2ecf20Sopenharmony_ci	{ "vdp",	0x100, 0, R8A7779_PD_VDP,	R8A7779_PD_ALWAYS_ON },
248c2ecf20Sopenharmony_ci	{ "imp",	0x140, 0, R8A7779_PD_IMP,	R8A7779_PD_ALWAYS_ON },
258c2ecf20Sopenharmony_ci};
268c2ecf20Sopenharmony_ci
278c2ecf20Sopenharmony_ciconst struct rcar_sysc_info r8a7779_sysc_info __initconst = {
288c2ecf20Sopenharmony_ci	.areas = r8a7779_areas,
298c2ecf20Sopenharmony_ci	.num_areas = ARRAY_SIZE(r8a7779_areas),
308c2ecf20Sopenharmony_ci};
31