doc: board: ti: Move documentation from README to .rst
[platform/kernel/u-boot.git] / doc / README.atmel_mci
index 6c027b0..0b6d2c5 100644 (file)
@@ -47,7 +47,7 @@ the board specific file need added:
 ...
 #ifdef CONFIG_GENERIC_ATMEL_MCI
 /* this is a weak define that we are overriding */
-int board_mmc_init(bd_t *bd)
+int board_mmc_init(struct bd_info *bd)
 {
        /* Enable clock */
        at91_sys_write(AT91_PMC_PCER, 1 << AT91SAM9260_ID_MCI);
@@ -60,7 +60,7 @@ int board_mmc_init(bd_t *bd)
 /* this is a weak define that we are overriding */
 int board_mmc_getcd(struct mmc *mmc)
 {
-       return !at91_get_gpio_value(CONFIG_SYS_MMC_CD_PIN);
+       return !at91_get_gpio_value(CFG_SYS_MMC_CD_PIN);
 }
 
 #endif
@@ -70,5 +70,5 @@ and the board definition files needs:
 /* SD/MMC card */
 #define CONFIG_GENERIC_ATMEL_MCI       1
 #define CONFIG_ATMEL_MCI_PORTB         1       /* Atmel XE-EK uses port B */
-#define CONFIG_SYS_MMC_CD_PIN          AT91_PIN_PC9
+#define CFG_SYS_MMC_CD_PIN             AT91_PIN_PC9
 #define CONFIG_CMD_MMC                 1