[PATCH] board: fsl: lx2160a: define gic_lpi_base with CONFIG_GIC_V3_ITS support

Wasim Khan wasim.khan at nxp.com
Wed Apr 15 11:23:51 CEST 2020


define gic_lpi_base variable when CONFIG_GIC_V3_ITS support is enable.
This avoids compilation warnings when CONFIG_GIC_V3_ITS is not enabled.

Signed-off-by: Wasim Khan <wasim.khan at nxp.com>
---
 board/freescale/lx2160a/lx2160a.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/board/freescale/lx2160a/lx2160a.c b/board/freescale/lx2160a/lx2160a.c
index 4b20bb4..a8c45b9 100644
--- a/board/freescale/lx2160a/lx2160a.c
+++ b/board/freescale/lx2160a/lx2160a.c
@@ -670,7 +670,9 @@ int ft_board_setup(void *blob, bd_t *bd)
 	u64 mc_memory_base = 0;
 	u64 mc_memory_size = 0;
 	u16 total_memory_banks;
+#ifdef CONFIG_GIC_V3_ITS
 	u64 gic_lpi_base;
+#endif
 
 	ft_cpu_setup(blob, bd);
 
-- 
2.7.4



More information about the U-Boot mailing list