projects
/
platform
/
kernel
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
52edc87
)
omap3: cm-t35: use define for mmc wp gpio
author
Igor Grinberg
<grinberg@compulab.co.il>
Tue, 21 Oct 2014 13:39:46 +0000
(16:39 +0300)
committer
Tom Rini
<trini@ti.com>
Thu, 23 Oct 2014 15:53:01 +0000
(11:53 -0400)
Switch to using define for MMC WP GPIO instead of a magic number.
Signed-off-by: Igor Grinberg <grinberg@compulab.co.il>
board/compulab/cm_t35/cm_t35.c
patch
|
blob
|
history
diff --git
a/board/compulab/cm_t35/cm_t35.c
b/board/compulab/cm_t35/cm_t35.c
index
0944903
..
6728ac1
100644
(file)
--- a/
board/compulab/cm_t35/cm_t35.c
+++ b/
board/compulab/cm_t35/cm_t35.c
@@
-457,6
+457,8
@@
void set_muxconf_regs(void)
}
#if defined(CONFIG_GENERIC_MMC) && !defined(CONFIG_SPL_BUILD)
+#define SB_T35_WP_GPIO 59
+
int board_mmc_getcd(struct mmc *mmc)
{
u8 val;
@@
-469,7
+471,7
@@
int board_mmc_getcd(struct mmc *mmc)
int board_mmc_init(bd_t *bis)
{
- return omap_mmc_init(0, 0, 0, -1,
59
);
+ return omap_mmc_init(0, 0, 0, -1,
SB_T35_WP_GPIO
);
}
#endif