Lines Matching defs:cluster

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