Lines Matching refs:cluster

28 static void sunxi_cpu_disable_power(unsigned int cluster, unsigned int core)  in sunxi_cpu_disable_power()  argument
30 if (mmio_read_32(SUNXI_CPU_POWER_CLAMP_REG(cluster, core)) == 0xff) in sunxi_cpu_disable_power()
33 VERBOSE("PSCI: Disabling power to cluster %d core %d\n", cluster, core); in sunxi_cpu_disable_power()
35 mmio_write_32(SUNXI_CPU_POWER_CLAMP_REG(cluster, core), 0xff); in sunxi_cpu_disable_power()
38 static void sunxi_cpu_enable_power(unsigned int cluster, unsigned int core) in sunxi_cpu_enable_power() argument
40 if (mmio_read_32(SUNXI_CPU_POWER_CLAMP_REG(cluster, core)) == 0) in sunxi_cpu_enable_power()
43 VERBOSE("PSCI: Enabling power to cluster %d core %d\n", cluster, core); in sunxi_cpu_enable_power()
46 mmio_write_32(SUNXI_CPU_POWER_CLAMP_REG(cluster, core), 0xfe); in sunxi_cpu_enable_power()
47 mmio_write_32(SUNXI_CPU_POWER_CLAMP_REG(cluster, core), 0xf8); in sunxi_cpu_enable_power()
48 mmio_write_32(SUNXI_CPU_POWER_CLAMP_REG(cluster, core), 0xe0); in sunxi_cpu_enable_power()
49 mmio_write_32(SUNXI_CPU_POWER_CLAMP_REG(cluster, core), 0x80); in sunxi_cpu_enable_power()
50 mmio_write_32(SUNXI_CPU_POWER_CLAMP_REG(cluster, core), 0x00); in sunxi_cpu_enable_power()
57 unsigned int cluster = MPIDR_AFFLVL1_VAL(mpidr); in sunxi_cpu_off() local
60 VERBOSE("PSCI: Powering off cluster %d core %d\n", cluster, core); in sunxi_cpu_off()
67 mmio_setbits_32(SUNXI_POWEROFF_GATING_REG(cluster), in sunxi_cpu_off()
71 mmio_clrbits_32(SUNXI_POWERON_RST_REG(cluster), BIT(core)); in sunxi_cpu_off()
73 sunxi_cpu_disable_power(cluster, core); in sunxi_cpu_off()
84 sunxi_cpu_disable_power(cluster, core); in sunxi_cpu_off()
90 unsigned int cluster = MPIDR_AFFLVL1_VAL(mpidr); in sunxi_cpu_on() local
93 VERBOSE("PSCI: Powering on cluster %d core %d\n", cluster, core); in sunxi_cpu_on()
97 mmio_clrbits_32(SUNXI_CPUCFG_RST_CTRL_REG(cluster), BIT(core)); in sunxi_cpu_on()
99 mmio_clrbits_32(SUNXI_POWERON_RST_REG(cluster), BIT(core)); in sunxi_cpu_on()
101 mmio_setbits_32(SUNXI_AA64nAA32_REG(cluster), in sunxi_cpu_on()
104 sunxi_cpu_enable_power(cluster, core); in sunxi_cpu_on()
106 mmio_clrbits_32(SUNXI_POWEROFF_GATING_REG(cluster), BIT(core)); in sunxi_cpu_on()
108 mmio_setbits_32(SUNXI_POWERON_RST_REG(cluster), BIT(core)); in sunxi_cpu_on()
110 mmio_setbits_32(SUNXI_CPUCFG_RST_CTRL_REG(cluster), BIT(core)); in sunxi_cpu_on()
123 sunxi_cpu_enable_power(cluster, core); in sunxi_cpu_on()
139 unsigned int cluster; in sunxi_cpu_power_off_others() local
142 for (cluster = 0; cluster < PLATFORM_CLUSTER_COUNT; ++cluster) { in sunxi_cpu_power_off_others()
144 u_register_t mpidr = (cluster << MPIDR_AFF1_SHIFT) | in sunxi_cpu_power_off_others()