/tf-a-ffa_el3_spmc/plat/marvell/armada/a8k/common/aarch64/ |
A D | plat_arch_config.c | 18 #define MVEBU_DFX_REG(cluster_id) (MVEBU_REGS_BASE + 0x6F82A0 + \ argument 19 (cluster_id) * 0x4) 42 int cluster_id = plat_my_core_pos(); in plat_config_dfx_clock() local 46 if ((cluster_id % PLAT_MAX_CPUS_PER_CLUSTER) != 0) { in plat_config_dfx_clock() 50 val = mmio_read_32(MVEBU_DFX_REG(cluster_id / PLAT_MAX_CPUS_PER_CLUSTER)); in plat_config_dfx_clock() 51 if (cluster_id == 0) { in plat_config_dfx_clock() 58 mmio_write_32(MVEBU_DFX_REG(cluster_id / PLAT_MAX_CPUS_PER_CLUSTER), val); in plat_config_dfx_clock() 64 int cluster_id; in plat_enable_affinity() local 68 cluster_id = plat_my_core_pos() / PLAT_MARVELL_CLUSTER_CORE_COUNT; in plat_enable_affinity() 69 affinity = (MVEBU_IO_AFFINITY | (1 << cluster_id)); in plat_enable_affinity()
|
/tf-a-ffa_el3_spmc/plat/renesas/common/ |
A D | plat_topology.c | 26 unsigned int cluster_id, cpu_id; in plat_core_pos_by_mpidr() local 33 cluster_id = (mpidr >> MPIDR_AFF1_SHIFT) & MPIDR_AFFLVL_MASK; in plat_core_pos_by_mpidr() 36 if (cluster_id >= PLATFORM_CLUSTER_COUNT) in plat_core_pos_by_mpidr() 39 if (cluster_id == 0 && cpu_id >= PLATFORM_CLUSTER0_CORE_COUNT) in plat_core_pos_by_mpidr() 42 if (cluster_id == 1 && cpu_id >= PLATFORM_CLUSTER1_CORE_COUNT) in plat_core_pos_by_mpidr() 45 return (cpu_id + cluster_id * PLATFORM_CLUSTER0_CORE_COUNT); in plat_core_pos_by_mpidr()
|
/tf-a-ffa_el3_spmc/plat/brcm/board/common/ |
A D | timer_sync.c | 25 void ihost_enable_satellite_timer(unsigned int cluster_id) in ihost_enable_satellite_timer() argument 31 VERBOSE("Program iHost%u satellite timer\n", cluster_id); in ihost_enable_satellite_timer() 32 ihost_base = IHOST0_BASE + cluster_id * IHOST_ADDR_SPACE; in ihost_enable_satellite_timer() 35 ihost_enable = CENTRAL_TIMER_GET_IHOST_ENA_BASE + cluster_id * 4; in ihost_enable_satellite_timer() 59 unsigned int cluster_id; in brcm_timer_sync_init() local 69 cluster_id = MPIDR_AFFLVL1_VAL(read_mpidr()); in brcm_timer_sync_init() 70 ihost_enable_satellite_timer(cluster_id); in brcm_timer_sync_init()
|
/tf-a-ffa_el3_spmc/plat/rockchip/common/ |
A D | plat_topology.c | 24 unsigned int cluster_id, cpu_id; in plat_core_pos_by_mpidr() local 28 cluster_id = mpidr & PLAT_RK_MPIDR_CLUSTER_MASK; in plat_core_pos_by_mpidr() 30 cluster_id = mpidr & MPIDR_CLUSTER_MASK; in plat_core_pos_by_mpidr() 33 cpu_id += (cluster_id >> PLAT_RK_CLST_TO_CPUID_SHIFT); in plat_core_pos_by_mpidr()
|
/tf-a-ffa_el3_spmc/plat/imx/imx8qm/ |
A D | imx8qm_psci.c | 77 unsigned int cluster_id = MPIDR_AFFLVL1_VAL(mpidr); in imx_pwr_domain_on() local 80 sc_pm_set_resource_power_mode(ipc_handle, cluster_id == 0 ? in imx_pwr_domain_on() 83 if (cluster_id == 1) in imx_pwr_domain_on() 117 unsigned int cluster_id = MPIDR_AFFLVL1_VAL(mpidr); in imx_pwr_domain_off() local 126 cci_disable_snoop_dvm_reqs(cluster_id); in imx_pwr_domain_off() 127 if (cluster_id == 1) in imx_pwr_domain_off() 130 printf("turn off cluster:%d core:%d\n", cluster_id, cpu_id); in imx_pwr_domain_off() 136 unsigned int cluster_id = MPIDR_AFFLVL1_VAL(mpidr); in imx_domain_suspend() local 155 if (cluster_id == 1) in imx_domain_suspend() 212 unsigned int cluster_id = MPIDR_AFFLVL1_VAL(mpidr); in imx_domain_suspend_finish() local [all …]
|
/tf-a-ffa_el3_spmc/plat/intel/soc/common/ |
A D | socfpga_topology.c | 29 unsigned int cluster_id, cpu_id; in plat_core_pos_by_mpidr() local 36 cluster_id = (mpidr >> MPIDR_AFF1_SHIFT) & MPIDR_AFFLVL_MASK; in plat_core_pos_by_mpidr() 39 if (cluster_id >= PLATFORM_CLUSTER_COUNT) in plat_core_pos_by_mpidr() 49 return (cpu_id + (cluster_id * 4)); in plat_core_pos_by_mpidr()
|
/tf-a-ffa_el3_spmc/plat/arm/board/a5ds/ |
A D | a5ds_topology.c | 31 unsigned int cluster_id, cpu_id; in plat_core_pos_by_mpidr() local 38 cluster_id = (mpidr >> MPIDR_AFF1_SHIFT) & MPIDR_AFFLVL_MASK; in plat_core_pos_by_mpidr() 41 if (cluster_id >= A5DS_CLUSTER_COUNT) in plat_core_pos_by_mpidr() 51 return (cpu_id + (cluster_id * 4)); in plat_core_pos_by_mpidr()
|
/tf-a-ffa_el3_spmc/plat/imx/common/ |
A D | imx8_topology.c | 25 unsigned int cluster_id, cpu_id; in plat_core_pos_by_mpidr() local 32 cluster_id = MPIDR_AFFLVL1_VAL(mpidr); in plat_core_pos_by_mpidr() 35 if (cluster_id > PLATFORM_CLUSTER_COUNT || in plat_core_pos_by_mpidr() 39 return (cpu_id + (cluster_id * 4)); in plat_core_pos_by_mpidr()
|
/tf-a-ffa_el3_spmc/plat/hisilicon/hikey/ |
A D | hikey_topology.c | 45 unsigned int cluster_id, cpu_id; in plat_core_pos_by_mpidr() local 52 cluster_id = (mpidr >> MPIDR_AFF1_SHIFT) & MPIDR_AFFLVL_MASK; in plat_core_pos_by_mpidr() 55 if (cluster_id >= PLATFORM_CLUSTER_COUNT) in plat_core_pos_by_mpidr() 65 return (cpu_id + (cluster_id * 4)); in plat_core_pos_by_mpidr()
|
/tf-a-ffa_el3_spmc/plat/hisilicon/hikey960/ |
A D | hikey960_topology.c | 45 unsigned int cluster_id, cpu_id; in plat_core_pos_by_mpidr() local 52 cluster_id = (mpidr >> MPIDR_AFF1_SHIFT) & MPIDR_AFFLVL_MASK; in plat_core_pos_by_mpidr() 55 if (cluster_id >= PLATFORM_CLUSTER_COUNT) in plat_core_pos_by_mpidr() 65 return (cpu_id + (cluster_id * 4)); in plat_core_pos_by_mpidr()
|
/tf-a-ffa_el3_spmc/plat/mediatek/mt8183/ |
A D | plat_topology.c | 38 unsigned int cluster_id, cpu_id; in plat_core_pos_by_mpidr() local 45 cluster_id = (mpidr >> MPIDR_AFF1_SHIFT) & MPIDR_AFFLVL_MASK; in plat_core_pos_by_mpidr() 48 if (cluster_id >= PLATFORM_CLUSTER_COUNT) in plat_core_pos_by_mpidr() 58 return (cpu_id + (cluster_id * 4)); in plat_core_pos_by_mpidr()
|
/tf-a-ffa_el3_spmc/plat/mediatek/mt8173/ |
A D | plat_topology.c | 39 unsigned int cluster_id, cpu_id; in plat_core_pos_by_mpidr() local 46 cluster_id = (mpidr >> MPIDR_AFF1_SHIFT) & MPIDR_AFFLVL_MASK; in plat_core_pos_by_mpidr() 49 if (cluster_id >= PLATFORM_CLUSTER_COUNT) in plat_core_pos_by_mpidr() 59 return (cpu_id + (cluster_id * 4)); in plat_core_pos_by_mpidr()
|
/tf-a-ffa_el3_spmc/plat/mediatek/mt8192/ |
A D | plat_topology.c | 43 unsigned int cluster_id, cpu_id; in plat_core_pos_by_mpidr() local 59 cluster_id = (mpidr >> MPIDR_AFF1_SHIFT) & MPIDR_AFFLVL_MASK; in plat_core_pos_by_mpidr() 62 if (cluster_id >= PLATFORM_CLUSTER_COUNT) { in plat_core_pos_by_mpidr() 74 return (cpu_id + (cluster_id * 8)); in plat_core_pos_by_mpidr()
|
/tf-a-ffa_el3_spmc/plat/mediatek/mt8195/ |
A D | plat_topology.c | 38 unsigned int cluster_id, cpu_id; in plat_core_pos_by_mpidr() local 54 cluster_id = (mpidr >> MPIDR_AFF1_SHIFT) & MPIDR_AFFLVL_MASK; in plat_core_pos_by_mpidr() 57 if (cluster_id >= PLATFORM_CLUSTER_COUNT) { in plat_core_pos_by_mpidr() 69 return (cpu_id + (cluster_id * 8)); in plat_core_pos_by_mpidr()
|
/tf-a-ffa_el3_spmc/plat/rockchip/common/drivers/pmu/ |
A D | pmu_com.h | 82 uint32_t cluster_id, loop = 0; in check_cpu_wfie() local 85 cluster_id = 1; in check_cpu_wfie() 88 cluster_id = 0; in check_cpu_wfie() 96 if ((cluster_id && clstb_cpu_wfe < 0) || in check_cpu_wfie() 97 (!cluster_id && clstl_cpu_wfe < 0)) { in check_cpu_wfie() 102 if (cluster_id) in check_cpu_wfie() 115 cluster_id, cpu_id, wfie_msk); in check_cpu_wfie()
|
/tf-a-ffa_el3_spmc/plat/arm/common/ |
A D | arm_topology.c | 19 unsigned int cluster_id, cpu_id; in arm_check_mpidr() local 29 cluster_id = (mpidr >> MPIDR_AFF2_SHIFT) & MPIDR_AFFLVL_MASK; in arm_check_mpidr() 34 cluster_id = (unsigned int) ((mpidr >> MPIDR_AFF1_SHIFT) & in arm_check_mpidr() 44 if (cluster_id >= PLAT_ARM_CLUSTER_COUNT) in arm_check_mpidr()
|
/tf-a-ffa_el3_spmc/plat/layerscape/common/ |
A D | ls_topology.c | 16 unsigned int cluster_id, cpu_id; in ls_check_mpidr() local 20 cluster_id = (mpidr >> MPIDR_AFF1_SHIFT) & MPIDR_AFFLVL_MASK; in ls_check_mpidr() 27 if (cluster_id >= PLAT_LS_CLUSTER_COUNT) in ls_check_mpidr()
|
/tf-a-ffa_el3_spmc/plat/brcm/board/stingray/src/ |
A D | ihost_pm.c | 110 uint32_t cluster_id; in ihost_power_on_cluster() local 115 cluster_id = MPIDR_AFFLVL1_VAL(mpidr); in ihost_power_on_cluster() 118 if (cluster_power_status[cluster_id] == CLUSTER_POWER_ON) in ihost_power_on_cluster() 121 cluster_power_status[cluster_id] = CLUSTER_POWER_ON; in ihost_power_on_cluster() 122 INFO("enabling Cluster #%u\n", cluster_id); in ihost_power_on_cluster() 124 switch (cluster_id) { in ihost_power_on_cluster() 147 ERROR("Invalid cluster :%u\n", cluster_id); in ihost_power_on_cluster() 155 ihost_base = IHOST0_BASE + cluster_id * IHOST_ADDR_SPACE; in ihost_power_on_cluster() 228 bcm_set_ihost_pll_freq(cluster_id, cluster0_freq_sel); in ihost_power_on_cluster() 307 ihost_enable_satellite_timer(cluster_id); in ihost_power_on_cluster() [all …]
|
/tf-a-ffa_el3_spmc/plat/amlogic/common/ |
A D | aml_topology.c | 37 unsigned int cluster_id, cpu_id; in plat_core_pos_by_mpidr() local 43 cluster_id = (mpidr >> MPIDR_AFF1_SHIFT) & MPIDR_AFFLVL_MASK; in plat_core_pos_by_mpidr() 46 if (cluster_id >= PLATFORM_CLUSTER_COUNT) in plat_core_pos_by_mpidr()
|
/tf-a-ffa_el3_spmc/plat/rpi/common/ |
A D | rpi3_topology.c | 39 unsigned int cluster_id, cpu_id; in plat_core_pos_by_mpidr() local 46 cluster_id = (mpidr >> MPIDR_AFF1_SHIFT) & MPIDR_AFFLVL_MASK; in plat_core_pos_by_mpidr() 49 if (cluster_id >= PLATFORM_CLUSTER_COUNT) { in plat_core_pos_by_mpidr()
|
/tf-a-ffa_el3_spmc/plat/qemu/common/ |
A D | topology.c | 41 unsigned int cluster_id, cpu_id; in plat_core_pos_by_mpidr() local 47 cluster_id = (mpidr >> MPIDR_AFF1_SHIFT) & MPIDR_AFFLVL_MASK; in plat_core_pos_by_mpidr() 50 if (cluster_id >= PLATFORM_CLUSTER_COUNT) in plat_core_pos_by_mpidr()
|
/tf-a-ffa_el3_spmc/plat/st/stm32mp1/ |
A D | stm32mp1_topology.c | 32 unsigned int cluster_id, cpu_id; in plat_core_pos_by_mpidr() local 41 cluster_id = (mpidr_copy >> MPIDR_AFF1_SHIFT) & MPIDR_AFFLVL_MASK; in plat_core_pos_by_mpidr() 44 if (cluster_id >= PLATFORM_CLUSTER_COUNT) { in plat_core_pos_by_mpidr()
|
/tf-a-ffa_el3_spmc/plat/socionext/synquacer/ |
A D | sq_topology.c | 17 unsigned int cluster_id, cpu_id; in plat_core_pos_by_mpidr() local 19 cluster_id = (mpidr >> MPIDR_AFF1_SHIFT) & MPIDR_AFFLVL_MASK; in plat_core_pos_by_mpidr() 20 if (cluster_id >= PLAT_CLUSTER_COUNT) in plat_core_pos_by_mpidr()
|
/tf-a-ffa_el3_spmc/plat/socionext/uniphier/ |
A D | uniphier_topology.c | 29 unsigned int cluster_id, cpu_id; in plat_core_pos_by_mpidr() local 31 cluster_id = (mpidr >> MPIDR_AFF1_SHIFT) & MPIDR_AFFLVL_MASK; in plat_core_pos_by_mpidr() 32 if (cluster_id >= UNIPHIER_CLUSTER_COUNT) in plat_core_pos_by_mpidr()
|
/tf-a-ffa_el3_spmc/plat/qemu/qemu_sbsa/ |
A D | sbsa_topology.c | 41 unsigned int cluster_id, cpu_id; in plat_core_pos_by_mpidr() local 49 cluster_id = (mpidr >> MPIDR_AFF1_SHIFT) & MPIDR_AFFLVL_MASK; in plat_core_pos_by_mpidr() 52 if (cluster_id >= PLATFORM_CLUSTER_COUNT) { in plat_core_pos_by_mpidr()
|