atmel_mci: Fix data timeout value
authorHaavard Skinnemoen <hskinnemoen@atmel.com>
Fri, 29 Jun 2007 16:38:51 +0000 (18:38 +0200)
committerHaavard Skinnemoen <hskinnemoen@atmel.com>
Mon, 13 Aug 2007 15:35:16 +0000 (17:35 +0200)
commita08458303e7f9db67f296980036d3292c35cb45c
treecf146491652b343b61324c23639be2666796d602
parent0ba8eed28b575626b17e0a7882f923b83e0d7584
atmel_mci: Fix data timeout value

Calculate the data timeout based on values from the CSD instead of
just using a hardcoded DTOR value. This is a backport of a similar fix
in BSP 2.0, with one additional fix: the DTOCYC value is rounded up
instead of down.

Signed-off-by: Haavard Skinnemoen <hskinnemoen@atmel.com>
cpu/at32ap/atmel_mci.c