[PATCH] ARM: OMAP: pdata-quirks: Remove pbias reference from Torpedo

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This fixes an issue where the MMC errors our during boot which
requires the user to eject and re-insert the MMC.

The bootloader has been updated for a while to correct set the
pbias for the GPIO pins.  Kernels 4.20-RC1+ are getting hung up
on intializing the MMC.  Removing the duplicative PBIAS setting
appears to eliminate the issue.

Signed-off-by: Adam Ford <aford173@xxxxxxxxx>

diff --git a/arch/arm/mach-omap2/pdata-quirks.c b/arch/arm/mach-omap2/pdata-quirks.c
index 9fec5f84bf77..05cd546bf61c 100644
--- a/arch/arm/mach-omap2/pdata-quirks.c
+++ b/arch/arm/mach-omap2/pdata-quirks.c
@@ -57,26 +57,6 @@ static void __init omap2420_n8x0_legacy_init(void)
 #endif
 
 #ifdef CONFIG_ARCH_OMAP3
-/*
- * Configures GPIOs 126, 127 and 129 to 1.8V mode instead of 3.0V
- * mode for MMC1 in case bootloader did not configure things.
- * Note that if the pins are used for MMC1, pbias-regulator
- * manages the IO voltage.
- */
-static void __init omap3_gpio126_127_129(void)
-{
-	u32 reg;
-
-	reg = omap_ctrl_readl(OMAP343X_CONTROL_PBIAS_LITE);
-	reg &= ~OMAP343X_PBIASLITEVMODE1;
-	reg |= OMAP343X_PBIASLITEPWRDNZ1;
-	omap_ctrl_writel(reg, OMAP343X_CONTROL_PBIAS_LITE);
-	if (cpu_is_omap3630()) {
-		reg = omap_ctrl_readl(OMAP34XX_CONTROL_WKUP_CTRL);
-		reg |= OMAP36XX_GPIO_IO_PWRDNZ;
-		omap_ctrl_writel(reg, OMAP34XX_CONTROL_WKUP_CTRL);
-	}
-}
 
 static void __init hsmmc2_internal_input_clk(void)
 {
@@ -300,7 +280,6 @@ static void __init omap3_tao3530_legacy_init(void)
 
 static void __init omap3_logicpd_torpedo_init(void)
 {
-	omap3_gpio126_127_129();
 	platform_device_register(&wl128x_device);
 	platform_device_register(&btwilink_device);
 }
-- 
2.17.1




[Index of Archives]     [Linux Arm (vger)]     [ARM Kernel]     [ARM MSM]     [Linux Tegra]     [Linux WPAN Networking]     [Linux Wireless Networking]     [Maemo Users]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Trails]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux