From: Siew Chin Lim Date: Wed, 31 Mar 2021 22:39:04 +0800 Subject: [v1 13/17] arm: socfpga: Add SPL for Intel N5X device In-Reply-To: <20210331143908.48211-1-elly.siew.chin.lim@intel.com> References: <20210331143908.48211-1-elly.siew.chin.lim@intel.com> Message-ID: <20210331143908.48211-14-elly.siew.chin.lim@intel.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Add SPL for N5X. Signed-off-by: Siew Chin Lim --- arch/arm/mach-socfpga/{spl_agilex.c => spl_n5x.c} | 37 ++++++++++++++--------- 1 file changed, 22 insertions(+), 15 deletions(-) copy arch/arm/mach-socfpga/{spl_agilex.c => spl_n5x.c} (83%) diff --git a/arch/arm/mach-socfpga/spl_agilex.c b/arch/arm/mach-socfpga/spl_n5x.c similarity index 83% copy from arch/arm/mach-socfpga/spl_agilex.c copy to arch/arm/mach-socfpga/spl_n5x.c index ee5a9dc1e2..d056871d29 100644 --- a/arch/arm/mach-socfpga/spl_agilex.c +++ b/arch/arm/mach-socfpga/spl_n5x.c @@ -1,27 +1,26 @@ // SPDX-License-Identifier: GPL-2.0 /* - * Copyright (C) 2019 Intel Corporation + * Copyright (C) 2020-2021 Intel Corporation * */ -#include -#include -#include -#include -#include -#include #include -#include -#include -#include #include #include #include #include #include #include -#include +#include +#include +#include +#include #include +#include +#include +#include +#include +#include DECLARE_GLOBAL_DATA_PTR; @@ -54,27 +53,35 @@ void board_init_f(ulong dummy) sysmgr_pinmux_init(); + preloader_console_init(); + ret = uclass_get_device(UCLASS_CLK, 0, &dev); if (ret) { - debug("Clock init failed: %d\n", ret); + printf("Clock init failed: %d\n", ret); + hang(); + } + + ret = uclass_get_device(UCLASS_CLK, 1, &dev); + if (ret) { + printf("Memory clock init failed: %d\n", ret); hang(); } - preloader_console_init(); print_reset_info(); cm_print_clock_quick_summary(); firewall_setup(); + ret = uclass_get_device(UCLASS_CACHE, 0, &dev); if (ret) { - debug("CCU init failed: %d\n", ret); + printf("CCU init failed: %d\n", ret); hang(); } #if CONFIG_IS_ENABLED(ALTERA_SDRAM) ret = uclass_get_device(UCLASS_RAM, 0, &dev); if (ret) { - debug("DRAM init failed: %d\n", ret); + printf("DRAM init failed: %d\n", ret); hang(); } #endif -- 2.13.0