Lines Matching defs:cpu
18 void mcucfg_disable_gic_wakeup(unsigned int cluster, unsigned int cpu)
20 mmio_setbits_32(MCUCFG_CPC_FLOW_CTRL_CFG, GIC_WAKEUP_IGNORE(cpu));
23 void mcucfg_enable_gic_wakeup(unsigned int cluster, unsigned int cpu)
25 mmio_clrbits_32(MCUCFG_CPC_FLOW_CTRL_CFG, GIC_WAKEUP_IGNORE(cpu));
26 /* Clear cpu's cpc sw hint */
27 mmio_write_32(CPC_MCUSYS_CPU_ON_SW_HINT_CLR, BIT(cpu));
30 void mcucfg_set_bootaddr(unsigned int cluster, unsigned int cpu, uintptr_t bootaddr)
34 mmio_write_32(per_cpu(cluster, cpu, MCUCFG_BOOTADDR), bootaddr);
37 uintptr_t mcucfg_get_bootaddr(unsigned int cluster, unsigned int cpu)
41 return (uintptr_t)mmio_read_32(per_cpu(cluster, cpu, MCUCFG_BOOTADDR));
44 void mcucfg_init_archstate(unsigned int cluster, unsigned int cpu, bool arm64)
53 mmio_setbits_32(reg, MCUCFG_INITARCH_CPU_BIT(cpu));
55 mmio_clrbits_32(reg, MCUCFG_INITARCH_CPU_BIT(cpu));
80 bool spm_get_cpu_powerstate(unsigned int cluster, unsigned int cpu)
82 uint32_t mask = BIT(cpu);
91 unsigned int cpu = plat_my_core_pos();
112 /* Clear bootup cpu's cpc sw hint */
113 mmio_write_32(CPC_MCUSYS_CPU_ON_SW_HINT_CLR, BIT(cpu));
122 * @cpu: the CPU ID of the CPU which to be powered on
124 void spm_poweron_cpu(unsigned int cluster, unsigned int cpu)
130 mmio_setbits_32(per_cpu(cluster, cpu, SPM_CPU_PWR), PWR_ON);
133 while (!spm_get_cpu_powerstate(cluster, cpu))
144 * @cpu: the CPU ID of the CPU which to be powered off
146 void spm_poweroff_cpu(unsigned int cluster, unsigned int cpu)
149 mmio_clrbits_32(per_cpu(cluster, cpu, SPM_CPU_PWR), PWR_ON);