summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorReinhard Meyer <u-boot@emk-elektronik.de>2010-08-13 10:31:06 +0200
committerReinhard Meyer <u-boot@emk-elektronik.de>2010-09-03 11:19:01 +0200
commit1592ef8596fffd937a30462eb15f1d64e237ae49 (patch)
treea4d26cb016750db74bb1585ccb23753632452c53 /include
parentc982d866eaee5e8469af9e22eb8f51c63adcfafa (diff)
downloadu-boot-imx-1592ef8596fffd937a30462eb15f1d64e237ae49.zip
u-boot-imx-1592ef8596fffd937a30462eb15f1d64e237ae49.tar.gz
u-boot-imx-1592ef8596fffd937a30462eb15f1d64e237ae49.tar.bz2
AT91: MCI: add SD/MMC driver using mmc framework
Signed-off-by: Reinhard Meyer <u-boot@emk-elektronik.de>
Diffstat (limited to 'include')
-rw-r--r--include/mmc.h15
1 files changed, 14 insertions, 1 deletions
diff --git a/include/mmc.h b/include/mmc.h
index fcb237e..9f94f42 100644
--- a/include/mmc.h
+++ b/include/mmc.h
@@ -179,6 +179,16 @@ struct mmc_cid {
char pnm[7];
};
+/*
+ * WARNING!
+ *
+ * This structure is used by atmel_mci.c only.
+ * It works for the AVR32 architecture but NOT
+ * for ARM/AT91 architectures.
+ * Its use is highly depreciated.
+ * After the atmel_mci.c driver for AVR32 has
+ * been replaced this structure will be removed.
+ */
struct mmc_csd
{
u8 csd_structure:2,
@@ -275,7 +285,10 @@ int mmc_set_dev(int dev_num);
void print_mmc_devices(char separator);
int board_mmc_getcd(u8 *cd, struct mmc *mmc);
-#ifndef CONFIG_GENERIC_MMC
+#ifdef CONFIG_GENERIC_MMC
+int atmel_mci_init(void *regs);
+#else
int mmc_legacy_init(int verbose);
#endif
+
#endif /* _MMC_H_ */