1*e2ad626fSUlf Hansson // SPDX-License-Identifier: GPL-2.0 2*e2ad626fSUlf Hansson /* 3*e2ad626fSUlf Hansson * Renesas RZ/G2N System Controller 4*e2ad626fSUlf Hansson * Copyright (C) 2019 Renesas Electronics Corp. 5*e2ad626fSUlf Hansson * 6*e2ad626fSUlf Hansson * Based on Renesas R-Car M3-W System Controller 7*e2ad626fSUlf Hansson * Copyright (C) 2016 Glider bvba 8*e2ad626fSUlf Hansson */ 9*e2ad626fSUlf Hansson 10*e2ad626fSUlf Hansson #include <linux/bits.h> 11*e2ad626fSUlf Hansson #include <linux/kernel.h> 12*e2ad626fSUlf Hansson 13*e2ad626fSUlf Hansson #include <dt-bindings/power/r8a774b1-sysc.h> 14*e2ad626fSUlf Hansson 15*e2ad626fSUlf Hansson #include "rcar-sysc.h" 16*e2ad626fSUlf Hansson 17*e2ad626fSUlf Hansson static const struct rcar_sysc_area r8a774b1_areas[] __initconst = { 18*e2ad626fSUlf Hansson { "always-on", 0, 0, R8A774B1_PD_ALWAYS_ON, -1, PD_ALWAYS_ON }, 19*e2ad626fSUlf Hansson { "ca57-scu", 0x1c0, 0, R8A774B1_PD_CA57_SCU, R8A774B1_PD_ALWAYS_ON, 20*e2ad626fSUlf Hansson PD_SCU }, 21*e2ad626fSUlf Hansson { "ca57-cpu0", 0x80, 0, R8A774B1_PD_CA57_CPU0, R8A774B1_PD_CA57_SCU, 22*e2ad626fSUlf Hansson PD_CPU_NOCR }, 23*e2ad626fSUlf Hansson { "ca57-cpu1", 0x80, 1, R8A774B1_PD_CA57_CPU1, R8A774B1_PD_CA57_SCU, 24*e2ad626fSUlf Hansson PD_CPU_NOCR }, 25*e2ad626fSUlf Hansson { "a3vc", 0x380, 0, R8A774B1_PD_A3VC, R8A774B1_PD_ALWAYS_ON }, 26*e2ad626fSUlf Hansson { "a3vp", 0x340, 0, R8A774B1_PD_A3VP, R8A774B1_PD_ALWAYS_ON }, 27*e2ad626fSUlf Hansson { "a2vc1", 0x3c0, 1, R8A774B1_PD_A2VC1, R8A774B1_PD_A3VC }, 28*e2ad626fSUlf Hansson { "3dg-a", 0x100, 0, R8A774B1_PD_3DG_A, R8A774B1_PD_ALWAYS_ON }, 29*e2ad626fSUlf Hansson { "3dg-b", 0x100, 1, R8A774B1_PD_3DG_B, R8A774B1_PD_3DG_A }, 30*e2ad626fSUlf Hansson }; 31*e2ad626fSUlf Hansson 32*e2ad626fSUlf Hansson const struct rcar_sysc_info r8a774b1_sysc_info __initconst = { 33*e2ad626fSUlf Hansson .areas = r8a774b1_areas, 34*e2ad626fSUlf Hansson .num_areas = ARRAY_SIZE(r8a774b1_areas), 35*e2ad626fSUlf Hansson .extmask_offs = 0x2f8, 36*e2ad626fSUlf Hansson .extmask_val = BIT(0), 37*e2ad626fSUlf Hansson }; 38