Skip to contentSkip to conversation

ARM: imx: fix imx51 babbage SD2 CD/WP

PATCH New Shawn Guo 2 participants 2 messages Aug 24, 2012 – Aug 28, 2012

Subsystems (3)
lore
Share & tools
lore

Shawn Guo

author
#0 lore raw

PATCH 1/1 ARM: imx: fix imx51 babbage SD2 CD/WP

Pads GPIO1_6 and GPIO1_5 are used as SD2 CD/WP on imx51 babbage board. Before commit 5d23b39 (ARM: i.MX51 iomux: add missed definitions for SION-bit and mode for some pads) gets in, we use the pad settings configured by bootloader with NO_PAD_CTRL and SD2 CD/WP just works. The commit changes the pad settings and causes SD2 CD/WP stop working.

Set up pads GPIO1_6 and GPIO1_5 in the configuation that bootloader uses on imx51 babbage board to fix the SD2 CD/WP regression.

---
 arch/arm/mach-imx/mach-mx51_babbage.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
arch/arm/mach-imx/mach-mx51_babbage.c +2 -2
index 7b31cbd..83f49c4 100644
@@ -154,8 +154,8 @@ static iomux_v3_cfg_t mx51babbage_pads[] = {
 	MX51_PAD_SD2_DATA2__SD2_DATA2,
 	MX51_PAD_SD2_DATA3__SD2_DATA3,
 	/* CD/WP gpio */
-	MX51_PAD_GPIO1_6__GPIO1_6,
-	MX51_PAD_GPIO1_5__GPIO1_5,
+	NEW_PAD_CTRL(MX51_PAD_GPIO1_6__GPIO1_6, PAD_CTL_HYS),
+	NEW_PAD_CTRL(MX51_PAD_GPIO1_5__GPIO1_5, PAD_CTL_HYS),
 
 	/* eCSPI1 */
 	MX51_PAD_CSPI1_MISO__ECSPI1_MISO,
Signature · 1 line
1.7.5.4
maintainer
#1 lore raw

PATCH 1/1 ARM: imx: fix imx51 babbage SD2 CD/WP

Quoted 11 lines · Shawn Guo

Pads GPIO1_6 and GPIO1_5 are used as SD2 CD/WP on imx51 babbage board. Before commit 5d23b39 (ARM: i.MX51 iomux: add missed definitions for SION-bit and mode for some pads) gets in, we use the pad settings configured by bootloader with NO_PAD_CTRL and SD2 CD/WP just works. The commit changes the pad settings and causes SD2 CD/WP stop working.

Set up pads GPIO1_6 and GPIO1_5 in the configuation that bootloader uses on imx51 babbage board to fix the SD2 CD/WP regression.

Quoted 23 lines
---
 arch/arm/mach-imx/mach-mx51_babbage.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
arch/arm/mach-imx/mach-mx51_babbage.c +2 -2
index 7b31cbd..83f49c4 100644
@@ -154,8 +154,8 @@ static iomux_v3_cfg_t mx51babbage_pads[] = {
 	MX51_PAD_SD2_DATA2__SD2_DATA2,
 	MX51_PAD_SD2_DATA3__SD2_DATA3,
 	/* CD/WP gpio */
-	MX51_PAD_GPIO1_6__GPIO1_6,
-	MX51_PAD_GPIO1_5__GPIO1_5,
+	NEW_PAD_CTRL(MX51_PAD_GPIO1_6__GPIO1_6, PAD_CTL_HYS),
+	NEW_PAD_CTRL(MX51_PAD_GPIO1_5__GPIO1_5, PAD_CTL_HYS),
 
 	/* eCSPI1 */
 	MX51_PAD_CSPI1_MISO__ECSPI1_MISO,
Signature · 1 line
1.7.5.4
Signature · 4 lines
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |