Skip to contentSkip to conversation

board: fsl: lx2160a: define gic_lpi_base with CONFIG_GIC_V3_ITS support

PATCH New Wasim Khan 2 participants 2 messages Apr 15, 2020 – Apr 16, 2020

lore
Share & tools
lore

Wasim Khan

author
#0 lore raw

PATCH 1/1 board: fsl: lx2160a: define gic_lpi_base with CONFIG_GIC_V3_ITS support

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.

---
 board/freescale/lx2160a/lx2160a.c | 2 ++
 1 file changed, 2 insertions(+)
board/freescale/lx2160a/lx2160a.c +2 -0
index 4b20bb4..a8c45b9 100644
@@ -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);
 
Signature · 1 line
2.7.4
#1 lore raw

PATCH 1/1 board: fsl: lx2160a: define gic_lpi_base with CONFIG_GIC_V3_ITS support

Quoted 32 lines

-----Original Message-----
From: U-Boot <[email protected]> On Behalf Of Wasim Khan
Sent: Wednesday, April 15, 2020 2:54 PM
To: Priyanka Jain <[email protected]>
Cc: u-boot at lists.denx.de; Wasim Khan <[email protected]>
Subject: [PATCH] board: fsl: lx2160a: define gic_lpi_base with CONFIG_GIC_V3_ITS support

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.

---
board/freescale/lx2160a/lx2160a.c | 2 ++

1 file changed, 2 insertions(+)
board/freescale/lx2160a/lx2160a.c +2 -1
index 4b20bb4..a8c45b9 100644
@@ -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);
 
--
Quoted 1 line

2.7.4

Similar changes were send by Zhiqiang. Kindly check. Also it would be good if you review Z.Q.Hou patcheset of GIC.

Regards
Priyanka