summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorMadhukar Pappireddy <madhukar.pappireddy@arm.com>2023-02-21 17:02:14 +0100
committerTrustedFirmware Code Review <review@review.trustedfirmware.org>2023-02-21 17:02:14 +0100
commitd8f006a26e3f6a6c27b0d90e5f9d8c8aab21c5e4 (patch)
tree71cbbe62cbee2aa55c141c9a502984dcdc0c5526 /drivers
parentcd8f6af390c509db73df0002699f8b09a2b808e3 (diff)
parent5d68e8913ea983b21eb4a1163e6215ff8f8e96e4 (diff)
downloadarm-trusted-firmware-d8f006a26e3f6a6c27b0d90e5f9d8c8aab21c5e4.tar.gz
Merge "fix(gicv3): fixed bug in the initialization of GICv3 SGIs/(E)PPIs interrupt priorities" into integration
Diffstat (limited to 'drivers')
-rw-r--r--drivers/arm/gic/v3/gicv3_helpers.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/arm/gic/v3/gicv3_helpers.c b/drivers/arm/gic/v3/gicv3_helpers.c
index 446d0addb..940c939af 100644
--- a/drivers/arm/gic/v3/gicv3_helpers.c
+++ b/drivers/arm/gic/v3/gicv3_helpers.c
@@ -253,7 +253,7 @@ unsigned int gicv3_secure_spis_config_props(uintptr_t gicd_base,
}
/*******************************************************************************
- * Helper function to configure the default attributes of (E)SPIs
+ * Helper function to configure the default attributes of (E)PPIs/SGIs
******************************************************************************/
void gicv3_ppi_sgi_config_defaults(uintptr_t gicr_base)
{
@@ -292,7 +292,7 @@ void gicv3_ppi_sgi_config_defaults(uintptr_t gicr_base)
regs_num = ppi_regs_num << 3;
for (i = 0U; i < regs_num; ++i) {
/* Setup the default (E)PPI/SGI priorities doing 4 at a time */
- gicr_write_ipriorityr(gicr_base, i, GICD_IPRIORITYR_DEF_VAL);
+ gicr_write_ipriorityr(gicr_base, i << 2, GICD_IPRIORITYR_DEF_VAL);
}
/* 16 interrupt IDs per GICR_ICFGR register */