Lines Matching refs:ctrl_base
73 static void __iomem *ctrl_base; variable
84 ctrl_base + SCPERPWREN); in set_cpu_hi3620()
88 writel_relaxed(0x01 << cpu, ctrl_base + SCCPUCOREEN); in set_cpu_hi3620()
93 writel_relaxed(val << cpu, ctrl_base + SCCPURSTDIS); in set_cpu_hi3620()
96 writel_relaxed(val << cpu, ctrl_base + SCCPURSTEN); in set_cpu_hi3620()
101 ctrl_base + SCISODIS); in set_cpu_hi3620()
105 val = readl_relaxed(ctrl_base + SCPERCTRL0); in set_cpu_hi3620()
107 writel_relaxed(val, ctrl_base + SCPERCTRL0); in set_cpu_hi3620()
112 writel_relaxed(val << cpu, ctrl_base + SCCPURSTDIS); in set_cpu_hi3620()
115 val = readl_relaxed(ctrl_base + SCPERCTRL0); in set_cpu_hi3620()
117 writel_relaxed(val, ctrl_base + SCPERCTRL0); in set_cpu_hi3620()
120 writel_relaxed(0x01 << cpu, ctrl_base + SCCPUCOREDIS); in set_cpu_hi3620()
125 ctrl_base + SCISOEN); in set_cpu_hi3620()
132 writel_relaxed(val << cpu, ctrl_base + SCCPURSTEN); in set_cpu_hi3620()
137 ctrl_base + SCPERPWRDIS); in set_cpu_hi3620()
153 ctrl_base = of_iomap(node, 0); in hi3xxx_hotplug_init()
155 if (!ctrl_base) { in hi3xxx_hotplug_init()
166 if (!ctrl_base) { in hi3xxx_set_cpu()
183 ctrl_base = of_iomap(np, 0); in hix5hd2_hotplug_init()
185 if (!ctrl_base) in hix5hd2_hotplug_init()
195 if (!ctrl_base) in hix5hd2_set_cpu()
201 val = readl_relaxed(ctrl_base + HIX5HD2_PERI_PMC0); in hix5hd2_set_cpu()
204 writel_relaxed(val, ctrl_base + HIX5HD2_PERI_PMC0); in hix5hd2_set_cpu()
206 val = readl_relaxed(ctrl_base + HIX5HD2_PERI_CRG20); in hix5hd2_set_cpu()
208 writel_relaxed(val, ctrl_base + HIX5HD2_PERI_CRG20); in hix5hd2_set_cpu()
211 val = readl_relaxed(ctrl_base + HIX5HD2_PERI_PMC0); in hix5hd2_set_cpu()
214 writel_relaxed(val, ctrl_base + HIX5HD2_PERI_PMC0); in hix5hd2_set_cpu()
217 val = readl_relaxed(ctrl_base + HIX5HD2_PERI_CRG20); in hix5hd2_set_cpu()
219 writel_relaxed(val, ctrl_base + HIX5HD2_PERI_CRG20); in hix5hd2_set_cpu()
228 if (!ctrl_base) { in hip01_set_cpu()
231 ctrl_base = of_iomap(np, 0); in hip01_set_cpu()
233 BUG_ON(!ctrl_base); in hip01_set_cpu()
238 temp = readl_relaxed(ctrl_base + HIP01_PERI9); in hip01_set_cpu()
240 writel_relaxed(temp, ctrl_base + HIP01_PERI9); in hip01_set_cpu()
245 temp = readl_relaxed(ctrl_base + HIP01_PERI9); in hip01_set_cpu()
247 writel_relaxed(temp, ctrl_base + HIP01_PERI9); in hip01_set_cpu()