projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7d1267d
)
mx53smd: Use gpio_direction_input prior to gpio_get_value
author
Fabio Estevam
<festevam@gmail.com>
Wed, 8 Feb 2012 02:34:44 +0000
(
02:34
+0000)
committer
Albert ARIBAUD
<albert.u.boot@aribaud.net>
Mon, 27 Feb 2012 20:19:24 +0000
(21:19 +0100)
Use gpio_direction_input prior to gpio_get_value.
Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
board/freescale/mx53smd/mx53smd.c
patch
|
blob
|
history
diff --git
a/board/freescale/mx53smd/mx53smd.c
b/board/freescale/mx53smd/mx53smd.c
index e273192cac12ff5a1c4524a25cfff9558f78db06..c2379804aca2e9cf18d35ca955224ea7e9682dcd 100644
(file)
--- a/
board/freescale/mx53smd/mx53smd.c
+++ b/
board/freescale/mx53smd/mx53smd.c
@@
-135,6
+135,7
@@
struct fsl_esdhc_cfg esdhc_cfg[1] = {
int board_mmc_getcd(struct mmc *mmc)
{
mxc_request_iomux(MX53_PIN_EIM_DA13, IOMUX_CONFIG_ALT1);
+ gpio_direction_input(77);
return !gpio_get_value(77); /* GPIO3_13 */
}