summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorWolfgang Denk <wd@denx.de>2012-01-13 20:05:47 +0100
committerWolfgang Denk <wd@denx.de>2012-01-13 20:05:47 +0100
commit6d7ba2cef52d6daf119269f06c471c8882e59b84 (patch)
tree94251571a5c2f6fdff10968ad6d76a2eb3ecc763 /doc
parentd0b8feef8b50335a58ffde7df3e6748adfaa7025 (diff)
parent8eee2bd7f484c4933c4e3112c3c3db886ac945ca (diff)
downloadu-boot-imx-6d7ba2cef52d6daf119269f06c471c8882e59b84.zip
u-boot-imx-6d7ba2cef52d6daf119269f06c471c8882e59b84.tar.gz
u-boot-imx-6d7ba2cef52d6daf119269f06c471c8882e59b84.tar.bz2
Merge branch 'master' of /home/wd/git/u-boot/custodians
* 'master' of /home/wd/git/u-boot/custodians: fsl_esdhc: fix PIO mode transfers mmc: tegra2: Implement card-detect hook. mmc: fsl_esdhc: Implement card-detect hook. mmc: Implement card detection. mmc: Change board_mmc_getcd() function prototype. drivers/mmc/mv_sdhci.c: Fix build warning ftsdc010: improve performance and capability mmc: add host_caps checking avoid switch card improperly i.mx: fsl_esdhc: add the i.mx6q support
Diffstat (limited to 'doc')
-rw-r--r--doc/README.atmel_mci12
1 files changed, 2 insertions, 10 deletions
diff --git a/doc/README.atmel_mci b/doc/README.atmel_mci
index dee0cf0..0cbd909 100644
--- a/doc/README.atmel_mci
+++ b/doc/README.atmel_mci
@@ -59,17 +59,9 @@ int board_mmc_init(bd_t *bd)
}
/* this is a weak define that we are overriding */
-int board_mmc_getcd(u8 *cd, struct mmc *mmc)
+int board_mmc_getcd(struct mmc *mmc)
{
- /*
- * the only currently existing use of this function
- * (fsl_esdhc.c) suggests this function must return
- * *cs = TRUE if a card is NOT detected -> in most
- * cases the value of the pin when the detect switch
- * closes to GND
- */
- *cd = at91_get_gpio_value (CONFIG_SYS_MMC_CD_PIN) ? 1 : 0;
- return 0;
+ return !at91_get_gpio_value(CONFIG_SYS_MMC_CD_PIN);
}
#endif