]> git.sur5r.net Git - u-boot/commitdiff
woodburn: Set Write Protection GPIO as input
authorFabio Estevam <fabio.estevam@freescale.com>
Fri, 18 Jan 2013 23:57:45 +0000 (23:57 +0000)
committerStefano Babic <sbabic@denx.de>
Mon, 21 Jan 2013 11:05:22 +0000 (12:05 +0100)
Set Write Protection GPIO as input.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
board/woodburn/woodburn.c

index d74f360e1309c61623c3169f7f5a562c76a30937..5b044a95c00e11a3bd1319f2b538faff1a11857e 100644 (file)
@@ -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);