From patchwork Wed Oct 6 09:56:46 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Teresa Remmet X-Patchwork-Id: 1537029 X-Patchwork-Delegate: sbabic@denx.de Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=phytec.de header.i=@phytec.de header.a=rsa-sha256 header.s=a4 header.b=uIS1rBEX; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4HPVHV59kmz9sNH for ; Wed, 6 Oct 2021 20:57:26 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 22E3183252; Wed, 6 Oct 2021 11:57:11 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=phytec.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=phytec.de header.i=@phytec.de header.b="uIS1rBEX"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 5A6B683303; Wed, 6 Oct 2021 11:57:07 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.2 Received: from mickerik.phytec.de (mickerik.phytec.de [195.145.39.210]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 172EF8324B for ; Wed, 6 Oct 2021 11:56:55 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=phytec.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=t.remmet@phytec.de DKIM-Signature: v=1; a=rsa-sha256; d=phytec.de; s=a4; c=relaxed/simple; q=dns/txt; i=@phytec.de; t=1633514214; x=1636106214; h=From:Sender:Reply-To:Subject:Date:Message-Id:To:Cc:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=/pXqN/Q0ia1AoohnAbEftuW6Vn7Dd6gTU5biVuW1g/c=; b=uIS1rBEX/TPamBdVDtdhSG5AMy34iIHzQBATf4bvxqsqAV8HncgsAFxB+e4uIcBH 2y72q654ksipt81Jx4MbAOgNnOsMW+E4XaM1KnuMcWKoQ9+YVYGzTX+FEBoTfxGg ZIz1+JBqr50bUsN547LwylQxD5Q+vOI3uIuSq81a54Y=; X-AuditID: c39127d2-c63ec70000001d24-29-615d72e66c42 Received: from idefix.phytec.de (Unknown_Domain [172.16.0.10]) by mickerik.phytec.de (PHYTEC Mail Gateway) with SMTP id 1D.82.07460.6E27D516; Wed, 6 Oct 2021 11:56:54 +0200 (CEST) Received: from augenblix2.phytec.de ([172.16.0.56]) by idefix.phytec.de (IBM Domino Release 9.0.1FP7) with ESMTP id 2021100611565457-1832251 ; Wed, 6 Oct 2021 11:56:54 +0200 From: Teresa Remmet To: u-boot@lists.denx.de Cc: Stefano Babic , Fabio Estevam , "NXP i . MX U-Boot Team" , Peng Fan , Jagan Teki Subject: [PATCH 1/9] board: phytec: phycore_imx8mm: Clean up spl Date: Wed, 6 Oct 2021 11:56:46 +0200 Message-Id: <20211006095654.978408-2-t.remmet@phytec.de> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20211006095654.978408-1-t.remmet@phytec.de> References: <20211006095654.978408-1-t.remmet@phytec.de> MIME-Version: 1.0 X-MIMETrack: Itemize by SMTP Server on Idefix/Phytec(Release 9.0.1FP7|August 17, 2016) at 06.10.2021 11:56:54, Serialize by Router on Idefix/Phytec(Release 9.0.1FP7|August 17, 2016) at 06.10.2021 11:56:54 X-TNEFEvaluated: 1 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrJLMWRmVeSWpSXmKPExsWyRoCBS/dZUWyiwbEjlhYPr/pbfNk0gc3i x6ovrBbtp3ws3u7tZLeY8ng9uwObx9qP91k95s06weKxc9Zddo+zd3Ywemx8t4MpgDWKyyYl NSezLLVI3y6BK+PS5w/MBf/5K+4tms3UwLiYt4uRg0NCwETiZbtLFyMXh5DANkaJW4v72LoY OYGc84wSbx6bgdhsAhoST1ecZgKxRQQkJH71X2UEaWAW2MUoMXPNUWaQhLCAg8SXpW2MIDaL gIrE57knWUFsXgELiaXzVrGA2BIC8hIzL31nB7E5BSwl/nQ9YIFYZiGx8uoTJoh6QYmTM5+w gCyQELjCKPHv0D42iGYhidOLz4ItYxbQlli28DXzBEaBWUh6ZiFJLWBkWsUolJuZnJ1alJmt V5BRWZKarJeSuokRGLyHJ6pf2sHYN8fjECMTB+MhRgkOZiUR3nz72EQh3pTEyqrUovz4otKc 1OJDjNIcLErivPd7mBKFBNITS1KzU1MLUotgskwcnFINjGyvXyVK60Tyc0jkRodNvznX6AzL 6VnrTvHuEz7kdX3tp4oDi38J/TFkedZ4e+GmF38+pQUY7t2hqj1/93n/qEQGkWXm0p81vnG/ m8IxoVhTnU3g2ybdJ7/ncl2r3Oir9mTNwufF05nl/kg/3ZpzS3Ga58bVbQ2xCnqyGibqV6sW 3HXyuP9mR6QSS3FGoqEWc1FxIgCSZ3yuTAIAAA== X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.2 at phobos.denx.de X-Virus-Status: Clean Remove not needed code in the spl board code. Signed-off-by: Teresa Remmet --- board/phytec/phycore_imx8mm/spl.c | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) diff --git a/board/phytec/phycore_imx8mm/spl.c b/board/phytec/phycore_imx8mm/spl.c index 64f0780f6e65..d54145ef995c 100644 --- a/board/phytec/phycore_imx8mm/spl.c +++ b/board/phytec/phycore_imx8mm/spl.c @@ -12,8 +12,6 @@ #include #include #include -#include -#include #include #include #include @@ -39,7 +37,7 @@ int spl_board_boot_device(enum boot_device boot_dev_spl) } } -void spl_dram_init(void) +static void spl_dram_init(void) { ddr_init(&dram_timing); } @@ -54,15 +52,10 @@ void spl_board_init(void) puts("Normal Boot\n"); } -#ifdef CONFIG_SPL_LOAD_FIT int board_fit_config_name_match(const char *name) { - /* Just empty function now - can't decide what to choose */ - debug("%s: %s\n", __func__, name); - return 0; } -#endif #define UART_PAD_CTRL (PAD_CTL_DSE6 | PAD_CTL_FSEL1) #define WDOG_PAD_CTRL (PAD_CTL_DSE6 | PAD_CTL_ODE) @@ -91,7 +84,6 @@ int board_early_init_f(void) void board_init_f(ulong dummy) { - struct udevice *dev; int ret; arch_cpu_init(); @@ -100,8 +92,6 @@ void board_init_f(ulong dummy) board_early_init_f(); - timer_init(); - preloader_console_init(); /* Clear the BSS. */ @@ -113,13 +103,6 @@ void board_init_f(ulong dummy) hang(); } - ret = uclass_get_device_by_name(UCLASS_CLK, - "clock-controller@30380000", &dev); - if (ret < 0) { - printf("Failed to find clock node. Check device tree\n"); - hang(); - } - enable_tzc380(); /* DDR initialization */