summaryrefslogtreecommitdiff
path: root/board/compulab/cm_t54/cm_t54.c
diff options
context:
space:
mode:
authorTom Rini <trini@ti.com>2014-11-07 16:18:35 -0500
committerTom Rini <trini@ti.com>2014-11-07 16:18:35 -0500
commitcfa1bd0774eafcba4791bad4d66f01b8f0dc6f94 (patch)
tree13740fe096447814d65871bc9c15bbac26b0e854 /board/compulab/cm_t54/cm_t54.c
parent11ada9225a16ed2d8ddbf0715a2416245a777cbc (diff)
parent40bbd52a79bdf2175a2e44272bead2bc194a3293 (diff)
downloadu-boot-imx-cfa1bd0774eafcba4791bad4d66f01b8f0dc6f94.zip
u-boot-imx-cfa1bd0774eafcba4791bad4d66f01b8f0dc6f94.tar.gz
u-boot-imx-cfa1bd0774eafcba4791bad4d66f01b8f0dc6f94.tar.bz2
Merge git://git.denx.de/u-boot-ti
Diffstat (limited to 'board/compulab/cm_t54/cm_t54.c')
-rw-r--r--board/compulab/cm_t54/cm_t54.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/board/compulab/cm_t54/cm_t54.c b/board/compulab/cm_t54/cm_t54.c
index 944b723..b1a067d 100644
--- a/board/compulab/cm_t54/cm_t54.c
+++ b/board/compulab/cm_t54/cm_t54.c
@@ -100,16 +100,11 @@ uint mmc_get_env_part(struct mmc *mmc)
#define SB_T54_CD_GPIO 228
#define SB_T54_WP_GPIO 229
-int board_mmc_getcd(struct mmc *mmc)
-{
- return !gpio_get_value(SB_T54_CD_GPIO);
-}
-
int board_mmc_init(bd_t *bis)
{
int ret0, ret1;
- ret0 = omap_mmc_init(0, 0, 0, -1, SB_T54_WP_GPIO);
+ ret0 = omap_mmc_init(0, 0, 0, SB_T54_CD_GPIO, SB_T54_WP_GPIO);
if (ret0)
printf("cm_t54: failed to initialize mmc0\n");