Commit b3a7ea0a131b082dd5aad6f2355a7172cf9cf981

Authored by Hou Zhiqiang
Committed by Priyanka Jain
1 parent 8ea9c15b8e

board: lx2160a: Make sure the RD tables address align to 64KB

As the lower 16bit of the redistributor pending table is reserved
for describing the memory attributes, we must give a 64KB aligned
address to the GIC LPI initialization function.

Signed-off-by: Hou Zhiqiang <Zhiqiang.Hou@nxp.com>

Showing 1 changed file with 2 additions and 1 deletions Side-by-side Diff

board/freescale/lx2160a/lx2160a.c
... ... @@ -17,6 +17,7 @@
17 17 #include <fdt_support.h>
18 18 #include <linux/libfdt.h>
19 19 #include <linux/delay.h>
  20 +#include <linux/sizes.h>
20 21 #include <fsl-mc/fsl_mc.h>
21 22 #include <env_internal.h>
22 23 #include <efi_loader.h>
... ... @@ -747,7 +748,7 @@
747 748 }
748 749  
749 750 #ifdef CONFIG_GIC_V3_ITS
750   - gic_lpi_base = gd->arch.resv_ram - GIC_LPI_SIZE;
  751 + gic_lpi_base = ALIGN(gd->arch.resv_ram - GIC_LPI_SIZE, SZ_64K);
751 752 ret = fdt_fixup_gic_lpi_memory(blob, gic_lpi_base);
752 753 if (!ret && gic_lpi_tables_init(gic_lpi_base, cpu_numcores()))
753 754 debug("%s: failed to init gic-lpi-tables\n", __func__);