18c2ecf20Sopenharmony_ci// SPDX-License-Identifier: GPL-2.0 28c2ecf20Sopenharmony_ci/* 38c2ecf20Sopenharmony_ci * Renesas R-Car M3-N System Controller 48c2ecf20Sopenharmony_ci * Copyright (C) 2018 Jacopo Mondi <jacopo+renesas@jmondi.org> 58c2ecf20Sopenharmony_ci * 68c2ecf20Sopenharmony_ci * Based on Renesas R-Car M3-W System Controller 78c2ecf20Sopenharmony_ci * Copyright (C) 2016 Glider bvba 88c2ecf20Sopenharmony_ci */ 98c2ecf20Sopenharmony_ci 108c2ecf20Sopenharmony_ci#include <linux/bits.h> 118c2ecf20Sopenharmony_ci#include <linux/kernel.h> 128c2ecf20Sopenharmony_ci 138c2ecf20Sopenharmony_ci#include <dt-bindings/power/r8a77965-sysc.h> 148c2ecf20Sopenharmony_ci 158c2ecf20Sopenharmony_ci#include "rcar-sysc.h" 168c2ecf20Sopenharmony_ci 178c2ecf20Sopenharmony_cistatic const struct rcar_sysc_area r8a77965_areas[] __initconst = { 188c2ecf20Sopenharmony_ci { "always-on", 0, 0, R8A77965_PD_ALWAYS_ON, -1, PD_ALWAYS_ON }, 198c2ecf20Sopenharmony_ci { "ca57-scu", 0x1c0, 0, R8A77965_PD_CA57_SCU, R8A77965_PD_ALWAYS_ON, 208c2ecf20Sopenharmony_ci PD_SCU }, 218c2ecf20Sopenharmony_ci { "ca57-cpu0", 0x80, 0, R8A77965_PD_CA57_CPU0, R8A77965_PD_CA57_SCU, 228c2ecf20Sopenharmony_ci PD_CPU_NOCR }, 238c2ecf20Sopenharmony_ci { "ca57-cpu1", 0x80, 1, R8A77965_PD_CA57_CPU1, R8A77965_PD_CA57_SCU, 248c2ecf20Sopenharmony_ci PD_CPU_NOCR }, 258c2ecf20Sopenharmony_ci { "cr7", 0x240, 0, R8A77965_PD_CR7, R8A77965_PD_ALWAYS_ON }, 268c2ecf20Sopenharmony_ci { "a3vc", 0x380, 0, R8A77965_PD_A3VC, R8A77965_PD_ALWAYS_ON }, 278c2ecf20Sopenharmony_ci { "a3vp", 0x340, 0, R8A77965_PD_A3VP, R8A77965_PD_ALWAYS_ON }, 288c2ecf20Sopenharmony_ci { "a2vc1", 0x3c0, 1, R8A77965_PD_A2VC1, R8A77965_PD_A3VC }, 298c2ecf20Sopenharmony_ci { "3dg-a", 0x100, 0, R8A77965_PD_3DG_A, R8A77965_PD_ALWAYS_ON }, 308c2ecf20Sopenharmony_ci { "3dg-b", 0x100, 1, R8A77965_PD_3DG_B, R8A77965_PD_3DG_A }, 318c2ecf20Sopenharmony_ci}; 328c2ecf20Sopenharmony_ci 338c2ecf20Sopenharmony_ciconst struct rcar_sysc_info r8a77965_sysc_info __initconst = { 348c2ecf20Sopenharmony_ci .areas = r8a77965_areas, 358c2ecf20Sopenharmony_ci .num_areas = ARRAY_SIZE(r8a77965_areas), 368c2ecf20Sopenharmony_ci .extmask_offs = 0x2f8, 378c2ecf20Sopenharmony_ci .extmask_val = BIT(0), 388c2ecf20Sopenharmony_ci}; 39