forked from len0rd/rockbox
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
This commit is contained in:
parent
4604e984e8
commit
4908b8eb1c
5 changed files with 877 additions and 823 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue