public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [PATCH v3 03/19] imx: kontron-sl-mx8mm: Remove custom board_boot_order() workaround
@ 2022-08-24 13:59 Frieder Schrempf
  2022-08-24 13:59 ` [PATCH v3 04/19] imx: kontron-sl-mx8mm: Increase CONFIG_SYS_CBSIZE to 2K Frieder Schrempf
                   ` (16 more replies)
  0 siblings, 17 replies; 37+ messages in thread
From: Frieder Schrempf @ 2022-08-24 13:59 UTC (permalink / raw)
  To: Frieder Schrempf, u-boot; +Cc: Fabio Estevam, Peng Fan, Stefano Babic

From: Frieder Schrempf <frieder.schrempf@kontron.de>

Nowadays detecting the SPI NOR as boot device from the ROMAPI is
fixed and works even if the SPI NOR is used as fallback boot device.

Therefore we don't need this workaround anymore.

Signed-off-by: Frieder Schrempf <frieder.schrempf@kontron.de>
Reviewed-by: Fabio Estevam <festevam@denx.de>
---
Changes in v3:
* none

Changes in v2:
* new patch
---
 board/kontron/sl-mx8mm/spl.c | 22 ----------------------
 1 file changed, 22 deletions(-)

diff --git a/board/kontron/sl-mx8mm/spl.c b/board/kontron/sl-mx8mm/spl.c
index c379d37f1e8..2a562f4ac97 100644
--- a/board/kontron/sl-mx8mm/spl.c
+++ b/board/kontron/sl-mx8mm/spl.c
@@ -238,25 +238,3 @@ void board_init_f(ulong dummy)
 
 	board_init_r(NULL, 0);
 }
-
-void board_boot_order(u32 *spl_boot_list)
-{
-	u32 bootdev = spl_boot_device();
-
-	/*
-	 * The default boot fuse settings use the SD card (MMC2) as primary
-	 * boot device, but allow SPI NOR as a fallback boot device.
-	 * We can't detect the fallback case and spl_boot_device() will return
-	 * BOOT_DEVICE_MMC2 despite the actual boot device being SPI NOR.
-	 * Therefore we try to load U-Boot proper vom SPI NOR after loading
-	 * from MMC has failed.
-	 */
-	spl_boot_list[0] = bootdev;
-
-	switch (bootdev) {
-	case BOOT_DEVICE_MMC1:
-	case BOOT_DEVICE_MMC2:
-		spl_boot_list[1] = BOOT_DEVICE_SPI;
-		break;
-	}
-}
-- 
2.37.2


^ permalink raw reply related	[flat|nested] 37+ messages in thread

end of thread, other threads:[~2022-10-24 20:50 UTC | newest]

Thread overview: 37+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-08-24 13:59 [PATCH v3 03/19] imx: kontron-sl-mx8mm: Remove custom board_boot_order() workaround Frieder Schrempf
2022-08-24 13:59 ` [PATCH v3 04/19] imx: kontron-sl-mx8mm: Increase CONFIG_SYS_CBSIZE to 2K Frieder Schrempf
2022-10-21 11:43   ` sbabic
2022-08-24 13:59 ` [PATCH v3 05/19] imx: kontron-sl-mx8mm: Enable MTD command Frieder Schrempf
2022-10-21 11:43   ` sbabic
2022-08-24 13:59 ` [PATCH v3 06/19] imx: kontron-sl-mx8mm: Add redundant environment and SPI NOR partitions Frieder Schrempf
2022-10-21 11:42   ` sbabic
2022-08-24 13:59 ` [PATCH v3 07/19] imx: kontron-sl-mx8mm: Enable environment in MMC Frieder Schrempf
2022-10-21 11:42   ` sbabic
2022-08-24 13:59 ` [PATCH v3 08/19] imx: kontron-sl-mx8mm: Migrate to use CONFIG_EXTRA_ENV_TEXT Frieder Schrempf
2022-10-21 11:40   ` sbabic
2022-08-24 13:59 ` [PATCH v3 09/19] imx: kontron-sl-mx8mm: Enable bootaux command Frieder Schrempf
2022-10-21 11:41   ` sbabic
2022-08-24 13:59 ` [PATCH v3 10/19] imx: kontron-sl-mx8mm: lpddr4_timing.c: Add spaces for proper alignment Frieder Schrempf
2022-10-21 11:42   ` sbabic
2022-08-24 13:59 ` [PATCH v3 11/19] imx: kontron-sl-mx8mm: Remove 100mt DDR setpoint Frieder Schrempf
2022-10-21 11:43   ` sbabic
2022-10-21 19:24   ` Tim Harvey
2022-10-24 11:53     ` Frieder Schrempf
2022-10-24 20:49       ` Tim Harvey
2022-08-24 13:59 ` [PATCH v3 12/19] imx: kontron-sl-mx8mm: Use new LPDDR4 config parameters Frieder Schrempf
2022-10-21 11:43   ` sbabic
2022-08-24 13:59 ` [PATCH v3 13/19] imx: kontron-sl-mx8mm: Prepare for other i.MX8MM SoM types Frieder Schrempf
2022-10-21 11:43   ` sbabic
2022-08-24 13:59 ` [PATCH v3 14/19] imx: kontron-sl-mx8mm: Adjust devicetree names, compatibles and model strings Frieder Schrempf
2022-10-21 11:43   ` sbabic
2022-08-24 13:59 ` [PATCH v3 15/19] imx: kontron-sl-mx8mm: Use the VSELECT signal to switch SD card IO voltage Frieder Schrempf
2022-10-21 11:42   ` sbabic
2022-08-24 13:59 ` [PATCH v3 16/19] imx: kontron-sl-mx8mm: Use voltage rail names from schematic for PMIC regulator-names Frieder Schrempf
2022-10-21 11:41   ` sbabic
2022-08-24 13:59 ` [PATCH v3 17/19] imx: kontron-sl-mx8mm: Simplify code in spl.c Frieder Schrempf
2022-10-21 11:40   ` sbabic
2022-08-24 13:59 ` [PATCH v3 18/19] imx: kontron-sl-mx8mm: Add support for Kontron Electronics SoM SL i.MX8MM OSM-S Frieder Schrempf
2022-10-21 11:41   ` sbabic
2022-08-24 13:59 ` [PATCH v3 19/19] imx: kontron-sl-mx8mm: Prepare for I2C display detection in environment script Frieder Schrempf
2022-10-21 11:40   ` sbabic
2022-10-21 11:41 ` [PATCH v3 03/19] imx: kontron-sl-mx8mm: Remove custom board_boot_order() workaround sbabic

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox