Commit dea417cd authored by Jeenu Viswambharan's avatar Jeenu Viswambharan
Browse files

ARM platforms: supply per-PE target mask array



Call the GICv2 driver API to initialise per-PE target mask.

Change-Id: Idc7eb0d906a5379f4c05917af05c90613057ab97
Signed-off-by: default avatarJeenu Viswambharan <jeenu.viswambharan@arm.com>
parent fa9db423
/* /*
* Copyright (c) 2015, ARM Limited and Contributors. All rights reserved. * Copyright (c) 2015-2017, ARM Limited and Contributors. All rights reserved.
* *
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
...@@ -28,11 +28,15 @@ static const unsigned int g0_interrupt_array[] = { ...@@ -28,11 +28,15 @@ static const unsigned int g0_interrupt_array[] = {
PLAT_ARM_G0_IRQS PLAT_ARM_G0_IRQS
}; };
static unsigned int target_mask_array[PLATFORM_CORE_COUNT];
static const gicv2_driver_data_t arm_gic_data = { static const gicv2_driver_data_t arm_gic_data = {
.gicd_base = PLAT_ARM_GICD_BASE, .gicd_base = PLAT_ARM_GICD_BASE,
.gicc_base = PLAT_ARM_GICC_BASE, .gicc_base = PLAT_ARM_GICC_BASE,
.g0_interrupt_num = ARRAY_SIZE(g0_interrupt_array), .g0_interrupt_num = ARRAY_SIZE(g0_interrupt_array),
.g0_interrupt_array = g0_interrupt_array, .g0_interrupt_array = g0_interrupt_array,
.target_masks = target_mask_array,
.target_masks_num = ARRAY_SIZE(target_mask_array),
}; };
/****************************************************************************** /******************************************************************************
...@@ -72,6 +76,7 @@ void plat_arm_gic_cpuif_disable(void) ...@@ -72,6 +76,7 @@ void plat_arm_gic_cpuif_disable(void)
void plat_arm_gic_pcpu_init(void) void plat_arm_gic_pcpu_init(void)
{ {
gicv2_pcpu_distif_init(); gicv2_pcpu_distif_init();
gicv2_set_pe_target_mask(plat_my_core_pos());
} }
/****************************************************************************** /******************************************************************************
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment