summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap2/control.h
diff options
context:
space:
mode:
authorTony Lindgren <tony@atomide.com>2015-05-20 09:23:43 -0700
committerTony Lindgren <tony@atomide.com>2015-05-20 09:23:43 -0700
commitb96b332fd518cd4d08104bc5ca552ac1ade7e2c7 (patch)
tree6356e47f5d443a636cbe2b786561f44625bd27bb /arch/arm/mach-omap2/control.h
parentb787f68c36d49bb1d9236f403813641efa74a031 (diff)
downloadtalos-op-linux-b96b332fd518cd4d08104bc5ca552ac1ade7e2c7.tar.gz
talos-op-linux-b96b332fd518cd4d08104bc5ca552ac1ade7e2c7.zip
ARM: OMAP3: Add support for configuring MMC pins as GPIO pins
Some devices are using the MMC1 pins 4..8 as GPIO pins, and in this case they need to be configured for 1.8V IO voltage if not done by the bootloader as otherwise some devices like smsc911x won't work properly. Let's also make sure this register is saved and restored for idle. Cc: Tim Nordell <tim.nordell@logicpd.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/mach-omap2/control.h')
-rw-r--r--arch/arm/mach-omap2/control.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/control.h b/arch/arm/mach-omap2/control.h
index 80d2b7d8e36e..ec406bc2c6d4 100644
--- a/arch/arm/mach-omap2/control.h
+++ b/arch/arm/mach-omap2/control.h
@@ -231,6 +231,9 @@
#define OMAP343X_PADCONF_ETK_D15 OMAP343X_PADCONF_ETK(17)
/* 34xx GENERAL_WKUP register offsets */
+#define OMAP34XX_CONTROL_WKUP_CTRL (OMAP343X_CONTROL_GENERAL_WKUP - 0x4)
+#define OMAP36XX_GPIO_IO_PWRDNZ BIT(6)
+
#define OMAP343X_CONTROL_WKUP_DEBOBSMUX(i) (OMAP343X_CONTROL_GENERAL_WKUP + \
0x008 + (i))
#define OMAP343X_CONTROL_WKUP_DEBOBS0 (OMAP343X_CONTROL_GENERAL_WKUP + 0x008)
OpenPOWER on IntegriCloud