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