projects
/
oweals
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ee08a82
)
mx53loco: Configure the pins as GPIOs prior to using gpio_get_value
author
Fabio Estevam
<festevam@gmail.com>
Tue, 15 Nov 2011 05:51:29 +0000
(
05:51
+0000)
committer
Albert ARIBAUD
<albert.u.boot@aribaud.net>
Tue, 6 Dec 2011 22:59:39 +0000
(23:59 +0100)
Configure the pins as GPIO prior to using gpio_get_value.
Cc: Jason Liu <r64343@freescale.com>
Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Acked-by: Jason Liu <jason.hui@linaro.org>
board/freescale/mx53loco/mx53loco.c
patch
|
blob
|
history
diff --git
a/board/freescale/mx53loco/mx53loco.c
b/board/freescale/mx53loco/mx53loco.c
index b4c7f33f9304e4342f91a7981910f2ba28a6a812..3cf4195b5e3e75496a27e14df9c288e8ed97ca81 100644
(file)
--- a/
board/freescale/mx53loco/mx53loco.c
+++ b/
board/freescale/mx53loco/mx53loco.c
@@
-140,6
+140,9
@@
int board_mmc_getcd(u8 *cd, struct mmc *mmc)
{
struct fsl_esdhc_cfg *cfg = (struct fsl_esdhc_cfg *)mmc->priv;
+ mxc_request_iomux(MX53_PIN_EIM_DA11, IOMUX_CONFIG_ALT1);
+ mxc_request_iomux(MX53_PIN_EIM_DA13, IOMUX_CONFIG_ALT1);
+
if (cfg->esdhc_base == MMC_SDHC1_BASE_ADDR)
*cd = gpio_get_value(77); /*GPIO3_13*/
else