pandora: add PBIAS1 hack
authorGrazvydas Ignotas <notasas@gmail.com>
Mon, 27 Feb 2012 15:19:04 +0000 (17:19 +0200)
committerGrazvydas Ignotas <notasas@gmail.com>
Mon, 27 Feb 2012 15:25:13 +0000 (17:25 +0200)
needed for GPIOs 126-129

arch/arm/mach-omap2/hsmmc.c

index 616523a..a771fad 100644 (file)
@@ -19,6 +19,7 @@
 #include <plat/omap-pm.h>
 #include <plat/mux.h>
 #include <plat/omap_device.h>
+#include <asm/mach-types.h>
 
 #include "mux.h"
 #include "hsmmc.h"
@@ -469,6 +470,13 @@ void __init omap2_hsmmc_init(struct omap2_hsmmc_info *controllers)
                        control_pbias_offset = OMAP343X_CONTROL_PBIAS_LITE;
                        control_devconf1_offset = OMAP343X_CONTROL_DEVCONF1;
                }
+
+               if (machine_is_omap3_pandora()) {
+                       /* needed for gpio_126 - gpio_129 to work correctly */
+                       reg = omap_ctrl_readl(control_pbias_offset);
+                       reg &= ~OMAP343X_PBIASLITEVMODE1;
+                       omap_ctrl_writel(reg, control_pbias_offset);
+               }
        } else {
                control_pbias_offset =
                        OMAP4_CTRL_MODULE_PAD_CORE_CONTROL_PBIASLITE;