diff options
author | Haavard Skinnemoen <hskinnemoen@atmel.com> | 2007-06-27 13:34:26 +0200 |
---|---|---|
committer | Haavard Skinnemoen <hskinnemoen@atmel.com> | 2007-08-13 16:33:52 +0200 |
commit | f0d1246ed7cb5a88522244c596d7ae7e6f161283 (patch) | |
tree | 836a97c897f7296543ea610f0894c692af0221eb /cpu/at32ap/atmel_mci.h | |
parent | 448f5fea4c7dd531b69e4e60eed2a72b89b4ed6d (diff) | |
download | u-boot-imx-f0d1246ed7cb5a88522244c596d7ae7e6f161283.zip u-boot-imx-f0d1246ed7cb5a88522244c596d7ae7e6f161283.tar.gz u-boot-imx-f0d1246ed7cb5a88522244c596d7ae7e6f161283.tar.bz2 |
atmel_mci: Use 512 byte blocksize if possible
Instead of always using the largest blocksize the card supports, check
if it can support smaller block sizes and use 512 bytes if possible.
Most cards do support this, and other parts of u-boot seem to have
trouble with block sizes different from 512 bytes.
Also enable underrun/overrun protection.
Signed-off-by: Haavard Skinnemoen <hskinnemoen@atmel.com>
Acked-by: Hans-Christian Egtvedt <hcegtvedt@atmel.com>
Diffstat (limited to 'cpu/at32ap/atmel_mci.h')
-rw-r--r-- | cpu/at32ap/atmel_mci.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cpu/at32ap/atmel_mci.h b/cpu/at32ap/atmel_mci.h index 0ffbc4f..5b4f5c9 100644 --- a/cpu/at32ap/atmel_mci.h +++ b/cpu/at32ap/atmel_mci.h @@ -57,6 +57,10 @@ #define MMCI_CLKDIV_SIZE 8 #define MMCI_PWSDIV_OFFSET 8 #define MMCI_PWSDIV_SIZE 3 +#define MMCI_RDPROOF_OFFSET 11 +#define MMCI_RDPROOF_SIZE 1 +#define MMCI_WRPROOF_OFFSET 12 +#define MMCI_WRPROOF_SIZE 1 #define MMCI_PDCPADV_OFFSET 14 #define MMCI_PDCPADV_SIZE 1 #define MMCI_PDCMODE_OFFSET 15 |