]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
board: ns3: program GIC LPI tables
authorRayagonda Kokatanur <rayagonda.kokatanur@broadcom.com>
Wed, 15 Jul 2020 17:19:01 +0000 (22:49 +0530)
committerTom Rini <trini@konsulko.com>
Wed, 29 Jul 2020 14:37:10 +0000 (10:37 -0400)
U-boot programs the GIC LPI configuration tables and enables
the LPI table.

Signed-off-by: Bharat Kumar Reddy Gooty <bharat.gooty@broadcom.com>
Signed-off-by: Rayagonda Kokatanur <rayagonda.kokatanur@broadcom.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
board/broadcom/bcmns3/ns3.c

index 6a72e28494afdaf4b89ba9f1c0bfe9bb7bcc868d..a9c3a0990f5d34e4e32c3f95a624132ac98dbea7 100644 (file)
@@ -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>
@@ -91,3 +92,12 @@ void reset_cpu(ulong level)
                psci_system_reset();
        }
 }
+
+#ifdef CONFIG_OF_BOARD_SETUP
+int ft_board_setup(void *fdt, struct bd_info *bd)
+{
+       gic_lpi_tables_init();
+
+       return 0;
+}
+#endif /* CONFIG_OF_BOARD_SETUP */