X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=doc%2FREADME.atmel_mci;h=1ec4465ca0843caae09670a7b209a1ea9a947687;hb=7f30f4b5b285cb91e1e25b5b61a04beabe8c470b;hp=dee0cf0a9b3d0230538b0b5692f9135edf676d7b;hpb=2d941de9d5c7ba00dc19787dfa0aac2949fd00fb;p=oweals%2Fu-boot.git diff --git a/doc/README.atmel_mci b/doc/README.atmel_mci index dee0cf0a9b..1ec4465ca0 100644 --- a/doc/README.atmel_mci +++ b/doc/README.atmel_mci @@ -20,7 +20,7 @@ board/SoC specific manner before the driver is initialized: example: this is added to at91sam9260_devices.c: -#if defined(CONFIG_ATMEL_MCI) || defined(CONFIG_GENERIC_ATMEL_MCI) +#if defined(CONFIG_GENERIC_ATMEL_MCI) void at91_mci_hw_init(void) { at91_set_a_periph(AT91_PIO_PORTA, 8, PUP); /* MCCK */ @@ -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