summaryrefslogtreecommitdiff
path: root/firmware/export/sdmmc.h
diff options
context:
space:
mode:
authorAmaury Pouly <amaury.pouly@gmail.com>2012-08-18 18:24:42 +0200
committerAmaury Pouly <amaury.pouly@gmail.com>2012-08-18 18:24:42 +0200
commit4908b8eb1c60283fbca0c4884e9f0258d1b949ec (patch)
treea66432256aa8e609411366500abcde46b7fdbd2f /firmware/export/sdmmc.h
parent4604e984e857fc15db22cc78a415efeec172b6e8 (diff)
imx233: merge sd and mmc drivers, fix dma issues
Merge sd and mmc drivers into a single sdmmc driver. This allows some factoring of the code and simplify bug fixing. Also fix the dma/cache related issue by doing all transfers via a correctly aligned buffer. The current code is not smart enough to take advantage of large user buffers currently but at least it is safe! Change-Id: Ib0fd16dc7d52ef7bfe99fd586e03ecf08691edcd
Diffstat (limited to 'firmware/export/sdmmc.h')
-rw-r--r--firmware/export/sdmmc.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/export/sdmmc.h b/firmware/export/sdmmc.h
index 4351c85c42..35539169d9 100644
--- a/firmware/export/sdmmc.h
+++ b/firmware/export/sdmmc.h
@@ -39,13 +39,13 @@ typedef struct
unsigned int r2w_factor;
unsigned long numblocks; /* size in flash blocks */
unsigned int blocksize; /* block size in bytes */
+ unsigned long rca; /* RCA register */
#if (CONFIG_STORAGE & STORAGE_MMC)
unsigned char bitrate_register;
#endif
#if (CONFIG_STORAGE & STORAGE_SD)
- unsigned long rca; /* RCA register */
unsigned int current_bank;
#endif
} tCardInfo;