diff mbox series

[v4,07/15] board: ns3: program GIC LPI tables

Message ID 20200710085220.32730-8-rayagonda.kokatanur@broadcom.com
State Accepted
Commit f01a4e8cc96a43172398f2f441045ad8a2c90807
Headers show
Series add initial support for broadcom NS3 soc | expand

Commit Message

Rayagonda Kokatanur July 10, 2020, 8:52 a.m. UTC
U-boot programs the GIC LPI configuration tables and enables
the LPI table.

Signed-off-by: Bharat Kumar Reddy Gooty <bharat.gooty at broadcom.com>
Signed-off-by: Rayagonda Kokatanur <rayagonda.kokatanur at broadcom.com>
---
Changes from v3:
  -Address review comments from Simon,
   Use dt and a UCLASS_IRQ to get gic details instead of passing
   as arguments to function gic_lpi_tables_init().

 board/broadcom/bcmns3/ns3.c | 10 ++++++++++
 1 file changed, 10 insertions(+)

Comments

Simon Glass July 15, 2020, 1:05 a.m. UTC | #1
On Fri, 10 Jul 2020 at 02:53, Rayagonda Kokatanur
<rayagonda.kokatanur at broadcom.com> wrote:
>
> U-boot programs the GIC LPI configuration tables and enables
> the LPI table.
>
> Signed-off-by: Bharat Kumar Reddy Gooty <bharat.gooty at broadcom.com>
> Signed-off-by: Rayagonda Kokatanur <rayagonda.kokatanur at broadcom.com>
> ---
> Changes from v3:
>   -Address review comments from Simon,
>    Use dt and a UCLASS_IRQ to get gic details instead of passing
>    as arguments to function gic_lpi_tables_init().
>
>  board/broadcom/bcmns3/ns3.c | 10 ++++++++++
>  1 file changed, 10 insertions(+)

Reviewed-by: Simon Glass <sjg at chromium.org>
diff mbox series

Patch

diff --git a/board/broadcom/bcmns3/ns3.c b/board/broadcom/bcmns3/ns3.c
index 1221f26ddc..e7896f8e11 100644
--- a/board/broadcom/bcmns3/ns3.c
+++ b/board/broadcom/bcmns3/ns3.c
@@ -6,6 +6,7 @@ 
 
 #include <common.h>
 #include <asm/io.h>
+#include <asm/gic-v3.h>
 #include <asm/system.h>
 #include <asm/armv8/mmu.h>
 #include <asm/arch-bcmns3/bl33_info.h>
@@ -88,3 +89,12 @@  void reset_cpu(ulong level)
 		psci_system_reset();
 	}
 }
+
+#ifdef CONFIG_OF_BOARD_SETUP
+int ft_board_setup(void *fdt, bd_t *bd)
+{
+	gic_lpi_tables_init();
+
+	return 0;
+}
+#endif /* CONFIG_OF_BOARD_SETUP */