• Home
  • Raw
  • Download

Lines Matching refs:cluster

23 static void sunxi_cpu_disable_power(unsigned int cluster, unsigned int core)  in sunxi_cpu_disable_power()  argument
25 if (mmio_read_32(SUNXI_CPU_POWER_CLAMP_REG(cluster, core)) == 0xff) in sunxi_cpu_disable_power()
28 VERBOSE("PSCI: Disabling power to cluster %d core %d\n", cluster, core); in sunxi_cpu_disable_power()
30 mmio_write_32(SUNXI_CPU_POWER_CLAMP_REG(cluster, core), 0xff); in sunxi_cpu_disable_power()
33 static void sunxi_cpu_enable_power(unsigned int cluster, unsigned int core) in sunxi_cpu_enable_power() argument
35 if (mmio_read_32(SUNXI_CPU_POWER_CLAMP_REG(cluster, core)) == 0) in sunxi_cpu_enable_power()
38 VERBOSE("PSCI: Enabling power to cluster %d core %d\n", cluster, core); in sunxi_cpu_enable_power()
41 mmio_write_32(SUNXI_CPU_POWER_CLAMP_REG(cluster, core), 0xfe); in sunxi_cpu_enable_power()
42 mmio_write_32(SUNXI_CPU_POWER_CLAMP_REG(cluster, core), 0xf8); in sunxi_cpu_enable_power()
43 mmio_write_32(SUNXI_CPU_POWER_CLAMP_REG(cluster, core), 0xe0); in sunxi_cpu_enable_power()
44 mmio_write_32(SUNXI_CPU_POWER_CLAMP_REG(cluster, core), 0x80); in sunxi_cpu_enable_power()
45 mmio_write_32(SUNXI_CPU_POWER_CLAMP_REG(cluster, core), 0x00); in sunxi_cpu_enable_power()
50 unsigned int cluster = MPIDR_AFFLVL1_VAL(mpidr); in sunxi_cpu_off() local
53 VERBOSE("PSCI: Powering off cluster %d core %d\n", cluster, core); in sunxi_cpu_off()
62 mmio_setbits_32(SUNXI_POWEROFF_GATING_REG(cluster), in sunxi_cpu_off()
65 mmio_clrbits_32(SUNXI_POWERON_RST_REG(cluster), BIT(core)); in sunxi_cpu_off()
67 sunxi_cpu_disable_power(cluster, core); in sunxi_cpu_off()
73 assert(cluster == 0); in sunxi_cpu_off()
86 unsigned int cluster = MPIDR_AFFLVL1_VAL(mpidr); in sunxi_cpu_on() local
89 VERBOSE("PSCI: Powering on cluster %d core %d\n", cluster, core); in sunxi_cpu_on()
92 mmio_clrbits_32(SUNXI_CPUCFG_RST_CTRL_REG(cluster), BIT(core)); in sunxi_cpu_on()
94 mmio_clrbits_32(SUNXI_POWERON_RST_REG(cluster), BIT(core)); in sunxi_cpu_on()
96 mmio_setbits_32(SUNXI_CPUCFG_CLS_CTRL_REG0(cluster), BIT(24 + core)); in sunxi_cpu_on()
98 sunxi_cpu_enable_power(cluster, core); in sunxi_cpu_on()
100 mmio_clrbits_32(SUNXI_POWEROFF_GATING_REG(cluster), BIT(core)); in sunxi_cpu_on()
102 mmio_setbits_32(SUNXI_POWERON_RST_REG(cluster), BIT(core)); in sunxi_cpu_on()
104 mmio_setbits_32(SUNXI_CPUCFG_RST_CTRL_REG(cluster), BIT(core)); in sunxi_cpu_on()
111 unsigned int cluster; in sunxi_disable_secondary_cpus() local
114 for (cluster = 0; cluster < PLATFORM_CLUSTER_COUNT; ++cluster) { in sunxi_disable_secondary_cpus()
116 u_register_t mpidr = (cluster << MPIDR_AFF1_SHIFT) | in sunxi_disable_secondary_cpus()