Switch to using define for MMC WP GPIO instead of a magic number.
Signed-off-by: Igor Grinberg <grinberg@compulab.co.il>
}
#if defined(CONFIG_GENERIC_MMC) && !defined(CONFIG_SPL_BUILD)
}
#if defined(CONFIG_GENERIC_MMC) && !defined(CONFIG_SPL_BUILD)
+#define SB_T35_WP_GPIO 59
+
int board_mmc_getcd(struct mmc *mmc)
{
u8 val;
int board_mmc_getcd(struct mmc *mmc)
{
u8 val;
int board_mmc_init(bd_t *bis)
{
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);