From c4185d5103080621393edb770a56aa274f9af1a7 Mon Sep 17 00:00:00 2001 From: Michal Simek Date: Thu, 9 Feb 2023 13:33:43 +0100 Subject: [PATCH] fix(versal): fix incorrect regbase for PMC IPI PMC ipi register base can't be the same as is for IPI_ID_APU that's why that address is not correct and needs to be fixed. Change-Id: I7ff2c9c0dd5995487e41f6b1060e4c9880c009fa Signed-off-by: Michal Simek --- plat/xilinx/versal/include/versal_def.h | 3 ++- plat/xilinx/versal/versal_ipi.c | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/plat/xilinx/versal/include/versal_def.h b/plat/xilinx/versal/include/versal_def.h index 60431a59f..ce4d98c32 100644 --- a/plat/xilinx/versal/include/versal_def.h +++ b/plat/xilinx/versal/include/versal_def.h @@ -129,9 +129,10 @@ #define PMC_GLOBAL_GLOB_GEN_STORAGE4 (PMC_GLOBAL_BASE + 0x40U) /* IPI registers and bitfields */ +#define PMC_REG_BASE U(0xFF320000) +#define PMC_IPI_TRIG_BIT (1U << 1U) #define IPI0_REG_BASE U(0xFF330000) #define IPI0_TRIG_BIT (1U << 2U) -#define PMC_IPI_TRIG_BIT (1U << 1U) #define IPI1_REG_BASE U(0xFF340000) #define IPI1_TRIG_BIT (1U << 3U) #define IPI2_REG_BASE U(0xFF350000) diff --git a/plat/xilinx/versal/versal_ipi.c b/plat/xilinx/versal/versal_ipi.c index 75d4c1436..67915f417 100644 --- a/plat/xilinx/versal/versal_ipi.c +++ b/plat/xilinx/versal/versal_ipi.c @@ -23,7 +23,7 @@ static const struct ipi_config versal_ipi_table[] = { /* PMC IPI */ [IPI_ID_PMC] = { .ipi_bit_mask = PMC_IPI_TRIG_BIT, - .ipi_reg_base = IPI0_REG_BASE, + .ipi_reg_base = PMC_REG_BASE, .secure_only = 0U, }, -- 2.39.5