atmel_mci: Use 512 byte blocksize if possible
authorHaavard Skinnemoen <hskinnemoen@atmel.com>
Wed, 27 Jun 2007 11:34:26 +0000 (13:34 +0200)
committerHaavard Skinnemoen <hskinnemoen@atmel.com>
Mon, 13 Aug 2007 14:33:52 +0000 (16:33 +0200)
commitf0d1246ed7cb5a88522244c596d7ae7e6f161283
tree836a97c897f7296543ea610f0894c692af0221eb
parent448f5fea4c7dd531b69e4e60eed2a72b89b4ed6d
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>
cpu/at32ap/atmel_mci.c
cpu/at32ap/atmel_mci.h