mmc: atmel-mci: new MCI2 module support in atmel-mci driver
authorNicolas Ferre <nicolas.ferre@atmel.com>
Tue, 15 Dec 2009 02:01:31 +0000 (18:01 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 15 Dec 2009 16:53:35 +0000 (08:53 -0800)
commit74791a2dc8dc2af3feeaf3242d642ff58d33bd30
tree2062b23a6bd0063f4999e73bb0fb9bd22839ffb7
parent2635d1ba711560d521f6218c585a3e0401f566e1
mmc: atmel-mci: new MCI2 module support in atmel-mci driver

This new revision of the IP adds some improvements to the MCI already
present in several Atmel SOC.

Some new registers are added and a particular way of handling DMA
interaction lead to a new sequence in function call which is backward
compatible: On MCI2, we must set the DMAEN bit to enable the DMA
handshaking interface.  This must happen before the data transfer command
is sent.

A new function is able to differentiate MCI2 code and is based on
knowledge of processor id (cpu_is_xxx()).

Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Signed-off-by: Haavard Skinnemoen <haavard.skinnemoen@atmel.com>
Cc: <linux-mmc@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/mmc/host/atmel-mci.c