From patchwork Fri Jul 10 08:52:12 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rayagonda Kokatanur X-Patchwork-Id: 241255 List-Id: U-Boot discussion From: rayagonda.kokatanur at broadcom.com (Rayagonda Kokatanur) Date: Fri, 10 Jul 2020 14:22:12 +0530 Subject: [PATCH v4 07/15] board: ns3: program GIC LPI tables In-Reply-To: <20200710085220.32730-1-rayagonda.kokatanur@broadcom.com> References: <20200710085220.32730-1-rayagonda.kokatanur@broadcom.com> Message-ID: <20200710085220.32730-8-rayagonda.kokatanur@broadcom.com> U-boot programs the GIC LPI configuration tables and enables the LPI table. Signed-off-by: Bharat Kumar Reddy Gooty Signed-off-by: Rayagonda Kokatanur Reviewed-by: Simon Glass --- 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(+) 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 #include +#include #include #include #include @@ -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 */