All of lore.kernel.org
 help / color / mirror / Atom feed
From: Teresa Remmet <t.remmet@phytec.de>
To: u-boot@lists.denx.de
Cc: Stefano Babic <sbabic@denx.de>,
	Fabio Estevam <festevam@gmail.com>,
	"NXP i . MX U-Boot Team" <uboot-imx@nxp.com>,
	Peng Fan <peng.fan@nxp.com>,
	Jagan Teki <jagan@amarulasolutions.com>
Subject: [PATCH 1/9] board: phytec: phycore_imx8mm: Clean up spl
Date: Wed, 6 Oct 2021 11:56:46 +0200	[thread overview]
Message-ID: <20211006095654.978408-2-t.remmet@phytec.de> (raw)
In-Reply-To: <20211006095654.978408-1-t.remmet@phytec.de>

Remove not needed code in the spl board code.

Signed-off-by: Teresa Remmet <t.remmet@phytec.de>
---
 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 <asm/global_data.h>
 #include <asm/mach-imx/boot_mode.h>
 #include <asm/mach-imx/iomux-v3.h>
-#include <dm/device.h>
-#include <dm/uclass.h>
 #include <hang.h>
 #include <init.h>
 #include <log.h>
@@ -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 */
-- 
2.25.1


  reply	other threads:[~2021-10-06  9:57 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-10-06  9:56 [PATCH 0/9] phyCORE-i.MX8MM Updates Teresa Remmet
2021-10-06  9:56 ` Teresa Remmet [this message]
2021-10-20 14:43   ` [PATCH 1/9] board: phytec: phycore_imx8mm: Clean up spl sbabic
2021-10-06  9:56 ` [PATCH 2/9] include: configs: phycore_imx8mm: Remove hard coded network settings Teresa Remmet
2021-10-20 14:43   ` sbabic
2021-10-06  9:56 ` [PATCH 3/9] include: configs: phycore-imx8mm: Remove not needed defines Teresa Remmet
2021-10-20 14:43   ` sbabic
2021-10-06  9:56 ` [PATCH 4/9] include: configs: phycore-imx8mm: Do not use macro for address Teresa Remmet
2021-10-20 14:43   ` sbabic
2021-10-06  9:56 ` [PATCH 5/9] arm: dts: phycore-imx8mm-u-boot: Add wdog pinctrl entry Teresa Remmet
2021-10-20 14:44   ` sbabic
2021-10-06  9:56 ` [PATCH 6/9] arm: dts: phycore-imx8mm: Fix property Teresa Remmet
2021-10-20 14:43   ` sbabic
2021-10-06  9:56 ` [PATCH 7/9] board: phytec: phycore-imx8mm: Add SPI-NOR flash support Teresa Remmet
2021-10-20 14:43   ` sbabic
2021-10-06  9:56 ` [PATCH 8/9] configs: phycore-imx8mm_defconfig: Enable clk command Teresa Remmet
2021-10-20 14:43   ` sbabic
2021-10-06  9:56 ` [PATCH 9/9] board: phytec: imx8mm-phycore: Switch to binman Teresa Remmet
2021-10-20 14:43   ` sbabic
2021-10-19 10:44 ` [PATCH 0/9] phyCORE-i.MX8MM Updates Stefano Babic

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20211006095654.978408-2-t.remmet@phytec.de \
    --to=t.remmet@phytec.de \
    --cc=festevam@gmail.com \
    --cc=jagan@amarulasolutions.com \
    --cc=peng.fan@nxp.com \
    --cc=sbabic@denx.de \
    --cc=u-boot@lists.denx.de \
    --cc=uboot-imx@nxp.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.