]> git.baikalelectronics.ru Git - arm-tf.git/commitdiff
fix(versal): fix incorrect regbase for PMC IPI
authorMichal Simek <michal.simek@amd.com>
Thu, 9 Feb 2023 12:33:43 +0000 (13:33 +0100)
committerJoanna Farley <joanna.farley@arm.com>
Wed, 15 Feb 2023 17:05:29 +0000 (18:05 +0100)
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 <michal.simek@amd.com>
plat/xilinx/versal/include/versal_def.h
plat/xilinx/versal/versal_ipi.c

index 60431a59fe12560c2d730fea66954b512ed41afb..ce4d98c32254eaa4c27e6c96602d344651e3e71c 100644 (file)
 #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)
index 75d4c1436c9d3cd2b607884fbaf029f618497d43..67915f4179960308cd5e8e6e2728516f5e7abe96 100644 (file)
@@ -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,
        },