Lines Matching defs:cluster
18 void mcucfg_disable_gic_wakeup(uint32_t cluster, uint32_t cpu)
23 void mcucfg_enable_gic_wakeup(uint32_t cluster, uint32_t cpu)
28 void mcucfg_set_bootaddr(uint32_t cluster, uint32_t cpu, uintptr_t bootaddr)
30 assert(cluster == 0U);
32 mmio_write_32(per_cpu(cluster, cpu, MCUCFG_BOOTADDR), bootaddr);
35 uintptr_t mcucfg_get_bootaddr(uint32_t cluster, uint32_t cpu)
37 assert(cluster == 0U);
39 return (uintptr_t)mmio_read_32(per_cpu(cluster, cpu, MCUCFG_BOOTADDR));
42 void mcucfg_init_archstate(uint32_t cluster, uint32_t cpu, bool arm64)
46 assert(cluster == 0U);
48 reg = per_cluster(cluster, MCUCFG_INITARCH);
71 bool spm_get_cluster_powerstate(uint32_t cluster)
73 assert(cluster == 0U);
78 bool spm_get_cpu_powerstate(uint32_t cluster, uint32_t cpu)
82 assert(cluster == 0U);
119 * Power on a core with specified cluster and core index
121 * @cluster: the cluster ID of the CPU which to be powered on
124 void spm_poweron_cpu(uint32_t cluster, uint32_t cpu)
132 mmio_setbits_32(per_cpu(cluster, cpu, SPM_CPU_PWR), PWR_ON);
134 while (!spm_get_cpu_powerstate(cluster, cpu)) {
146 * Power off a core with specified cluster and core index
148 * @cluster: the cluster ID of the CPU which to be powered off
151 void spm_poweroff_cpu(uint32_t cluster, uint32_t cpu)
154 mmio_clrbits_32(per_cpu(cluster, cpu, SPM_CPU_PWR), PWR_ON);
158 * Power off a cluster with specified index
160 * @cluster: the cluster index which to be powered off
162 void spm_poweroff_cluster(uint32_t cluster)
164 /* No need to power on/off cluster on single cluster platform */
169 * Power on a cluster with specified index
171 * @cluster: the cluster index which to be powered on
173 void spm_poweron_cluster(uint32_t cluster)
175 /* No need to power on/off cluster on single cluster platform */