All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH 1/2] imx: mx6ul_14x14_evk: Fix SPL boot
@ 2019-08-01  6:02 Peng Fan
  2019-08-01  6:02 ` [U-Boot] [PATCH 2/2] imx: mx6ul_14x14_evk: convert to DM_VIDEO Peng Fan
                   ` (2 more replies)
  0 siblings, 3 replies; 17+ messages in thread
From: Peng Fan @ 2019-08-01  6:02 UTC (permalink / raw)
  To: u-boot

When booting SPL on the board, met boot failure:
"
Trying to boot from MMC2
MMC Device 1 not found
spl: could not find mmc device 1. error: -19
SPL: failed to boot from all boot devices
"

Let's register the two mmc controllers in SPL stage to
avoid boot failure.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
---
 board/freescale/mx6ul_14x14_evk/mx6ul_14x14_evk.c | 16 ----------------
 1 file changed, 16 deletions(-)

diff --git a/board/freescale/mx6ul_14x14_evk/mx6ul_14x14_evk.c b/board/freescale/mx6ul_14x14_evk/mx6ul_14x14_evk.c
index 785247f7e2..af5af4d50a 100644
--- a/board/freescale/mx6ul_14x14_evk/mx6ul_14x14_evk.c
+++ b/board/freescale/mx6ul_14x14_evk/mx6ul_14x14_evk.c
@@ -110,7 +110,6 @@ static iomux_v3_cfg_t const uart1_pads[] = {
 	MX6_PAD_UART1_RX_DATA__UART1_DCE_RX | MUX_PAD_CTRL(UART_PAD_CTRL),
 };
 
-#ifndef CONFIG_SPL_BUILD
 static iomux_v3_cfg_t const usdhc1_pads[] = {
 	MX6_PAD_SD1_CLK__USDHC1_CLK | MUX_PAD_CTRL(USDHC_PAD_CTRL),
 	MX6_PAD_SD1_CMD__USDHC1_CMD | MUX_PAD_CTRL(USDHC_PAD_CTRL),
@@ -126,7 +125,6 @@ static iomux_v3_cfg_t const usdhc1_pads[] = {
 	/* RST_B */
 	MX6_PAD_GPIO1_IO09__GPIO1_IO09 | MUX_PAD_CTRL(NO_PAD_CTRL),
 };
-#endif
 
 /*
  * mx6ul_14x14_evk board default supports sd card. If want to use
@@ -237,19 +235,6 @@ int board_mmc_getcd(struct mmc *mmc)
 
 int board_mmc_init(bd_t *bis)
 {
-#ifdef CONFIG_SPL_BUILD
-#if defined(CONFIG_MX6UL_14X14_EVK_EMMC_REWORK)
-	imx_iomux_v3_setup_multiple_pads(usdhc2_emmc_pads,
-					 ARRAY_SIZE(usdhc2_emmc_pads));
-#else
-	imx_iomux_v3_setup_multiple_pads(usdhc2_pads, ARRAY_SIZE(usdhc2_pads));
-#endif
-	gpio_direction_output(USDHC2_PWR_GPIO, 0);
-	udelay(500);
-	gpio_direction_output(USDHC2_PWR_GPIO, 1);
-	usdhc_cfg[1].sdhc_clk = mxc_get_clock(MXC_ESDHC2_CLK);
-	return fsl_esdhc_initialize(bis, &usdhc_cfg[1]);
-#else
 	int i, ret;
 
 	/*
@@ -296,7 +281,6 @@ int board_mmc_init(bd_t *bis)
 				return ret;
 			}
 	}
-#endif
 	return 0;
 }
 #endif
-- 
2.16.4

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

end of thread, other threads:[~2019-08-13  8:24 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-08-01  6:02 [U-Boot] [PATCH 1/2] imx: mx6ul_14x14_evk: Fix SPL boot Peng Fan
2019-08-01  6:02 ` [U-Boot] [PATCH 2/2] imx: mx6ul_14x14_evk: convert to DM_VIDEO Peng Fan
2019-08-01 14:06   ` Fabio Estevam
2019-08-02  6:35     ` Peng Fan
2019-08-02  6:39       ` Jagan Teki
2019-08-02  6:42         ` Peng Fan
2019-08-02  7:23           ` Peng Fan
2019-08-05 13:11       ` Anatolij Gustschin
2019-08-02 12:05   ` Igor Opaniuk
2019-08-05  2:08     ` Peng Fan
2019-08-05  9:28   ` Peng Fan
2019-08-05 13:15     ` Anatolij Gustschin
2019-08-06  1:11       ` Peng Fan
2019-08-05 13:01   ` Anatolij Gustschin
2019-08-13  8:24   ` Peng Fan
2019-08-01 13:59 ` [U-Boot] [PATCH 1/2] imx: mx6ul_14x14_evk: Fix SPL boot Fabio Estevam
2019-08-13  8:22 ` Peng Fan

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.