Patchwork [U-Boot] woodburn: Set Write Protection GPIO as input

login
register
mail settings
Submitter Fabio Estevam
Date Jan. 19, 2013, 9:57 a.m.
Message ID <1358589465-4885-1-git-send-email-festevam@gmail.com>
Download mbox | patch
Permalink /patch/213811/
State Awaiting Upstream
Delegated to: Stefano Babic
Headers show

Comments

Fabio Estevam - Jan. 19, 2013, 9:57 a.m.
From: Fabio Estevam <fabio.estevam@freescale.com>

Set Write Protection GPIO as input.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
---
 board/woodburn/woodburn.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
Stefano Babic - Jan. 21, 2013, 11:11 a.m.
On 19/01/2013 10:57, Fabio Estevam wrote:
> From: Fabio Estevam <fabio.estevam@freescale.com>
> 
> Set Write Protection GPIO as input.
> 
> Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
> ---


Applied to u-boot-imx, thanks.

Best regards,
Stefano Babic

Patch

diff --git a/board/woodburn/woodburn.c b/board/woodburn/woodburn.c
index d74f360..5b044a9 100644
--- a/board/woodburn/woodburn.c
+++ b/board/woodburn/woodburn.c
@@ -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);