summaryrefslogtreecommitdiff
path: root/cpu/at32ap/atmel_mci.h
diff options
context:
space:
mode:
authorHaavard Skinnemoen <hskinnemoen@atmel.com>2007-06-27 11:34:26 (GMT)
committerHaavard Skinnemoen <hskinnemoen@atmel.com>2007-08-13 14:33:52 (GMT)
commitf0d1246ed7cb5a88522244c596d7ae7e6f161283 (patch)
tree836a97c897f7296543ea610f0894c692af0221eb /cpu/at32ap/atmel_mci.h
parent448f5fea4c7dd531b69e4e60eed2a72b89b4ed6d (diff)
downloadu-boot-f0d1246ed7cb5a88522244c596d7ae7e6f161283.tar.xz
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.h4
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