Lines Matching refs:cpu
18 void mcucfg_disable_gic_wakeup(unsigned int cluster, unsigned int cpu) in mcucfg_disable_gic_wakeup() argument
20 mmio_setbits_32(MCUCFG_CPC_FLOW_CTRL_CFG, GIC_WAKEUP_IGNORE(cpu)); in mcucfg_disable_gic_wakeup()
23 void mcucfg_enable_gic_wakeup(unsigned int cluster, unsigned int cpu) in mcucfg_enable_gic_wakeup() argument
25 mmio_clrbits_32(MCUCFG_CPC_FLOW_CTRL_CFG, GIC_WAKEUP_IGNORE(cpu)); in mcucfg_enable_gic_wakeup()
27 mmio_write_32(CPC_MCUSYS_CPU_ON_SW_HINT_CLR, BIT(cpu)); in mcucfg_enable_gic_wakeup()
30 void mcucfg_set_bootaddr(unsigned int cluster, unsigned int cpu, uintptr_t bootaddr) in mcucfg_set_bootaddr() argument
34 mmio_write_32(per_cpu(cluster, cpu, MCUCFG_BOOTADDR), bootaddr); in mcucfg_set_bootaddr()
37 uintptr_t mcucfg_get_bootaddr(unsigned int cluster, unsigned int cpu) in mcucfg_get_bootaddr() argument
41 return (uintptr_t)mmio_read_32(per_cpu(cluster, cpu, MCUCFG_BOOTADDR)); in mcucfg_get_bootaddr()
44 void mcucfg_init_archstate(unsigned int cluster, unsigned int cpu, bool arm64) in mcucfg_init_archstate() argument
53 mmio_setbits_32(reg, MCUCFG_INITARCH_CPU_BIT(cpu)); in mcucfg_init_archstate()
55 mmio_clrbits_32(reg, MCUCFG_INITARCH_CPU_BIT(cpu)); in mcucfg_init_archstate()
80 bool spm_get_cpu_powerstate(unsigned int cluster, unsigned int cpu) in spm_get_cpu_powerstate() argument
82 uint32_t mask = BIT(cpu); in spm_get_cpu_powerstate()
91 unsigned int cpu = plat_my_core_pos(); in spmc_init() local
113 mmio_write_32(CPC_MCUSYS_CPU_ON_SW_HINT_CLR, BIT(cpu)); in spmc_init()
124 void spm_poweron_cpu(unsigned int cluster, unsigned int cpu) in spm_poweron_cpu() argument
130 mmio_setbits_32(per_cpu(cluster, cpu, SPM_CPU_PWR), PWR_ON); in spm_poweron_cpu()
133 while (!spm_get_cpu_powerstate(cluster, cpu)) in spm_poweron_cpu()
146 void spm_poweroff_cpu(unsigned int cluster, unsigned int cpu) in spm_poweroff_cpu() argument
149 mmio_clrbits_32(per_cpu(cluster, cpu, SPM_CPU_PWR), PWR_ON); in spm_poweroff_cpu()