Skip to contentSkip to conversation

woodburn: Set Write Protection GPIO as input

PATCH New Fabio Estevam 2 participants 2 messages Jan 19, 2013 – Jan 21, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 woodburn: Set Write Protection GPIO as input

From: Fabio Estevam <[email protected]>

Set Write Protection GPIO as input.

---
 board/woodburn/woodburn.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
board/woodburn/woodburn.c +2 -1
index d74f360..5b044a9 100644
@@ -241,9 +241,10 @@ int board_mmc_init(bd_t *bis)
 	mxc_iomux_set_input(MUX_IN_GPIO1_IN_7, 0x1);
 	gpio_direction_input(GPIO_MMC_CD);
 
+	/* MMC Write Protection on GPIO1_8 */
 	mxc_request_iomux(MX35_PIN_FST, MUX_CONFIG_ALT5);
 	mxc_iomux_set_input(MUX_IN_GPIO1_IN_8, 0x1);
-	gpio_direction_output(GPIO_MMC_WP, 0);
+	gpio_direction_input(GPIO_MMC_WP);
 
 	esdhc_cfg.sdhc_clk = mxc_get_clock(MXC_ESDHC1_CLK);
 
Signature · 1 line
1.7.9.5
#1 lore raw

PATCH 1/1 woodburn: Set Write Protection GPIO as input

Quoted 6 lines · Fabio Estevam

From: Fabio Estevam <[email protected]>

Set Write Protection GPIO as input.

---

Applied to u-boot-imx, thanks.

Best regards,
Stefano Babic

Signature · 5 lines
=====================================================================
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de
=====================================================================