public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH 1/5] mx53loco: Use gpio_direction_input prior to gpio_get_value
@ 2012-02-08 12:34 Fabio Estevam
  2012-02-08 12:34 ` [U-Boot] [PATCH 2/5] mx53ard: " Fabio Estevam
                   ` (6 more replies)
  0 siblings, 7 replies; 15+ messages in thread
From: Fabio Estevam @ 2012-02-08 12:34 UTC (permalink / raw)
  To: u-boot

Use gpio_direction_input prior to gpio_get_value.

Cc: Jason Liu <r64343@freescale.com>
Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
---
 board/freescale/mx53loco/mx53loco.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/board/freescale/mx53loco/mx53loco.c b/board/freescale/mx53loco/mx53loco.c
index e6345e7..c2c26f0 100644
--- a/board/freescale/mx53loco/mx53loco.c
+++ b/board/freescale/mx53loco/mx53loco.c
@@ -153,7 +153,9 @@ int board_mmc_getcd(struct mmc *mmc)
 	int ret;
 
 	mxc_request_iomux(MX53_PIN_EIM_DA11, IOMUX_CONFIG_ALT1);
+	gpio_direction_input(75);
 	mxc_request_iomux(MX53_PIN_EIM_DA13, IOMUX_CONFIG_ALT1);
+	gpio_direction_input(77);
 
 	if (cfg->esdhc_base == MMC_SDHC1_BASE_ADDR)
 		ret = !gpio_get_value(77); /* GPIO3_13 */
-- 
1.7.1

^ permalink raw reply related	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2012-02-09 16:58 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-08 12:34 [U-Boot] [PATCH 1/5] mx53loco: Use gpio_direction_input prior to gpio_get_value Fabio Estevam
2012-02-08 12:34 ` [U-Boot] [PATCH 2/5] mx53ard: " Fabio Estevam
2012-02-09 16:58   ` Stefano Babic
2012-02-08 12:34 ` [U-Boot] [PATCH 3/5] mx53evk: " Fabio Estevam
2012-02-09  2:30   ` Jason Liu
2012-02-09 16:58   ` Stefano Babic
2012-02-08 12:34 ` [U-Boot] [PATCH 4/5] mx53smd: " Fabio Estevam
2012-02-09 16:58   ` Stefano Babic
2012-02-08 12:34 ` [U-Boot] [PATCH 5/5] mx51evk: " Fabio Estevam
2012-02-09 16:58   ` Stefano Babic
2012-02-08 13:08 ` [U-Boot] [PATCH 1/5] mx53loco: " Stefano Babic
2012-02-08 13:14   ` Fabio Estevam
2012-02-08 13:17     ` Stefano Babic
2012-02-09  2:30 ` Jason Liu
2012-02-09 16:58 ` Stefano Babic

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox