projects
/
platform
/
kernel
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
omap: hsmmc: assume cd gpio is active low
[platform/kernel/u-boot.git]
/
board
/
compulab
/
cm_t54
/
cm_t54.c
diff --git
a/board/compulab/cm_t54/cm_t54.c
b/board/compulab/cm_t54/cm_t54.c
index
944b723
..
b1a067d
100644
(file)
--- 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
#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;
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");
if (ret0)
printf("cm_t54: failed to initialize mmc0\n");