summaryrefslogtreecommitdiff
path: root/board/compulab
diff options
context:
space:
mode:
authorIgor Grinberg <grinberg@compulab.co.il>2014-10-21 16:39:46 +0300
committerTom Rini <trini@ti.com>2014-10-23 11:53:01 -0400
commit00d241da9cbd1af955bc8439c7da6f7715b1b1ce (patch)
treeb8c8aa61d9c499bb6e933c90322971335d2f2bdb /board/compulab
parent52edc8774069672a3185a59125c51a2b51c505fd (diff)
downloadu-boot-imx-00d241da9cbd1af955bc8439c7da6f7715b1b1ce.zip
u-boot-imx-00d241da9cbd1af955bc8439c7da6f7715b1b1ce.tar.gz
u-boot-imx-00d241da9cbd1af955bc8439c7da6f7715b1b1ce.tar.bz2
omap3: cm-t35: use define for mmc wp gpio
Switch to using define for MMC WP GPIO instead of a magic number. Signed-off-by: Igor Grinberg <grinberg@compulab.co.il>
Diffstat (limited to 'board/compulab')
-rw-r--r--board/compulab/cm_t35/cm_t35.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/board/compulab/cm_t35/cm_t35.c b/board/compulab/cm_t35/cm_t35.c
index 0944903..6728ac1 100644
--- 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