Lines Matching refs:cluster
22 static void sunxi_cpu_disable_power(unsigned int cluster, unsigned int core) in sunxi_cpu_disable_power() argument
24 if (mmio_read_32(SUNXI_CPU_POWER_CLAMP_REG(cluster, core)) == 0xff) in sunxi_cpu_disable_power()
27 VERBOSE("PSCI: Disabling power to cluster %d core %d\n", cluster, core); in sunxi_cpu_disable_power()
29 mmio_write_32(SUNXI_CPU_POWER_CLAMP_REG(cluster, core), 0xff); in sunxi_cpu_disable_power()
32 static void sunxi_cpu_enable_power(unsigned int cluster, unsigned int core) in sunxi_cpu_enable_power() argument
34 if (mmio_read_32(SUNXI_CPU_POWER_CLAMP_REG(cluster, core)) == 0) in sunxi_cpu_enable_power()
37 VERBOSE("PSCI: Enabling power to cluster %d core %d\n", cluster, core); in sunxi_cpu_enable_power()
40 mmio_write_32(SUNXI_CPU_POWER_CLAMP_REG(cluster, core), 0xfe); in sunxi_cpu_enable_power()
41 mmio_write_32(SUNXI_CPU_POWER_CLAMP_REG(cluster, core), 0xf8); in sunxi_cpu_enable_power()
42 mmio_write_32(SUNXI_CPU_POWER_CLAMP_REG(cluster, core), 0xe0); in sunxi_cpu_enable_power()
43 mmio_write_32(SUNXI_CPU_POWER_CLAMP_REG(cluster, core), 0x80); in sunxi_cpu_enable_power()
44 mmio_write_32(SUNXI_CPU_POWER_CLAMP_REG(cluster, core), 0x00); in sunxi_cpu_enable_power()
51 unsigned int cluster = MPIDR_AFFLVL1_VAL(mpidr); in sunxi_cpu_off() local
54 VERBOSE("PSCI: Powering off cluster %d core %d\n", cluster, core); in sunxi_cpu_off()
60 mmio_setbits_32(SUNXI_POWEROFF_GATING_REG(cluster), BIT(core)); in sunxi_cpu_off()
62 mmio_clrbits_32(SUNXI_POWERON_RST_REG(cluster), BIT(core)); in sunxi_cpu_off()
64 sunxi_cpu_disable_power(cluster, core); in sunxi_cpu_off()
69 unsigned int cluster = MPIDR_AFFLVL1_VAL(mpidr); in sunxi_cpu_on() local
72 VERBOSE("PSCI: Powering on cluster %d core %d\n", cluster, core); in sunxi_cpu_on()
75 mmio_clrbits_32(SUNXI_CPUCFG_RST_CTRL_REG(cluster), BIT(core)); in sunxi_cpu_on()
77 mmio_clrbits_32(SUNXI_POWERON_RST_REG(cluster), BIT(core)); in sunxi_cpu_on()
79 mmio_setbits_32(SUNXI_AA64nAA32_REG(cluster), in sunxi_cpu_on()
82 sunxi_cpu_enable_power(cluster, core); in sunxi_cpu_on()
84 mmio_clrbits_32(SUNXI_POWEROFF_GATING_REG(cluster), BIT(core)); in sunxi_cpu_on()
86 mmio_setbits_32(SUNXI_POWERON_RST_REG(cluster), BIT(core)); in sunxi_cpu_on()
88 mmio_setbits_32(SUNXI_CPUCFG_RST_CTRL_REG(cluster), BIT(core)); in sunxi_cpu_on()
96 unsigned int cluster; in sunxi_cpu_power_off_others() local
99 for (cluster = 0; cluster < PLATFORM_CLUSTER_COUNT; ++cluster) { in sunxi_cpu_power_off_others()
101 u_register_t mpidr = (cluster << MPIDR_AFF1_SHIFT) | in sunxi_cpu_power_off_others()