]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - board/compulab/cm_t35/cm_t35.c
omap3: cm-t35: use define for mmc wp gpio
[karo-tx-uboot.git] / board / compulab / cm_t35 / cm_t35.c
index 0944903ec8882005b096d8ca7c8750dd1d8a53d8..6728ac19f291c45073c7fdf8d822c8798751f225 100644 (file)
@@ -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