summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVladimir Barinov <vladimir.barinov@cogentembedded.com>2015-02-24 18:54:18 +0200
committerNobuhiro Iwamatsu <iwamatsu@nigauri.org>2015-02-25 14:18:41 +0900
commit313ff58ec956b39d1bfd65275fc1d81763086a61 (patch)
treeaa0c9651cf63175e6a8445a641e33a26191017aa
parent60c0467a9448fdf6da509ca6c38583d406362660 (diff)
downloadu-boot-imx-313ff58ec956b39d1bfd65275fc1d81763086a61.zip
u-boot-imx-313ff58ec956b39d1bfd65275fc1d81763086a61.tar.gz
u-boot-imx-313ff58ec956b39d1bfd65275fc1d81763086a61.tar.bz2
arm: rmobile: silk: Fix GPIO4_31 initialization
Use gpio_direction_output instead of gpio_set_value since the latter does not set output GPIO direction. Signed-off-by: Valentine Barshak <valentine.barshak+renesas@cogentembedded.com> Signed-off-by: Vladimir Barinov <vladimir.barinov+renesas@cogentembedded.com> Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
-rw-r--r--board/renesas/silk/silk.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/board/renesas/silk/silk.c b/board/renesas/silk/silk.c
index 8fb729a..e124010 100644
--- a/board/renesas/silk/silk.c
+++ b/board/renesas/silk/silk.c
@@ -136,7 +136,7 @@ int board_mmc_init(bd_t *bis)
#ifdef CONFIG_SH_MMCIF
/* MMC0 */
gpio_request(GPIO_GP_4_31, NULL);
- gpio_set_value(GPIO_GP_4_31, 1);
+ gpio_direction_output(GPIO_GP_4_31, 1);
ret = mmcif_mmc_init();
#endif