]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit67bacedf8fc3980004ad691faa9f1dcada5ae4b2
tree2062b23a6bd0063f4999e73bb0fb9bd22839ffb7
parent317522a1e5a39df8893d7862aa2c6bd9aa7f869d
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