Lines Matching defs:scu_base
29 unsigned int __init scu_get_core_count(void __iomem *scu_base)
31 unsigned int ncores = readl_relaxed(scu_base + SCU_CONFIG);
38 void scu_enable(void __iomem *scu_base)
45 scu_ctrl = readl_relaxed(scu_base + 0x30);
47 writel_relaxed(scu_ctrl | 0x1, scu_base + 0x30);
51 scu_ctrl = readl_relaxed(scu_base + SCU_CTRL);
63 writel_relaxed(scu_ctrl, scu_base + SCU_CTRL);
73 static int scu_set_power_mode_internal(void __iomem *scu_base,
83 val = readb_relaxed(scu_base + SCU_CPU_STATUS + cpu);
86 writeb_relaxed(val, scu_base + SCU_CPU_STATUS + cpu);
99 int scu_power_mode(void __iomem *scu_base, unsigned int mode)
101 return scu_set_power_mode_internal(scu_base, smp_processor_id(), mode);
107 int scu_cpu_power_enable(void __iomem *scu_base, unsigned int cpu)
109 return scu_set_power_mode_internal(scu_base, cpu, SCU_PM_NORMAL);
112 int scu_get_cpu_power_mode(void __iomem *scu_base, unsigned int logical_cpu)
120 val = readb_relaxed(scu_base + SCU_CPU_STATUS + cpu);