linux/arch/avr32/mach-at32ap
Haavard Skinnemoen 7d2be0749a atmel-mci: Driver for Atmel on-chip MMC controllers
This is a driver for the MMC controller on the AP7000 chips from
Atmel. It should in theory work on AT91 systems too with some
tweaking, but since the DMA interface is quite different, it's not
entirely clear if it's worth merging this with the at91_mci driver.

This driver has been around for a while in BSPs and kernel sources
provided by Atmel, but this particular version uses the generic DMA
Engine framework (with the slave extensions) instead of an
avr32-only DMA controller framework.

This driver can also use PIO transfers when no DMA channels are
available, and for transfers where using DMA may be difficult or
impractical for some reason (e.g. the DMA setup overhead is usually
not worth it for very short transfers, and badly aligned buffers or
lengths are difficult to handle.)

Currently, the driver only support PIO transfers. DMA support has been
split out to a separate patch to hopefully make it easier to review.

The driver has been tested using mmc-block and ext3fs on several SD,
SDHC and MMC+ cards. Reads and writes work fine, with read transfer
rates up to 3.5 MiB/s on fast cards with debugging disabled.

The driver has also been tested using the mmc_test module on the same
cards. All tests except 7, 9, 15 and 17 succeed. The first two are
unsupported by all the cards I have, so I don't know if the driver
handles this correctly. The last two fail because the hardware flags a
Data CRC Error instead of a Data Timeout error. I'm not sure how to deal
with that.

Documentation for this controller can be found in many data sheets from
Atmel, including the AT32AP7000 data sheet which can be found here:

http://www.atmel.com/dyn/products/datasheets.asp?family_id=682

Signed-off-by: Haavard Skinnemoen <haavard.skinnemoen@atmel.com>
Signed-off-by: Pierre Ossman <drzeus@drzeus.cx>
2008-07-15 14:14:49 +02:00
..
at32ap700x.c atmel-mci: Driver for Atmel on-chip MMC controllers 2008-07-15 14:14:49 +02:00
clock.c [AVR32] /sys/kernel/debug/at32ap_clk 2007-10-11 11:38:41 +02:00
clock.h
cpufreq.c avr32: Fix cpufreq oops when ondemand governor is default 2008-05-27 09:37:42 +02:00
extint.c [AVR32] extint: Set initial irq type to low level 2008-01-25 08:31:44 +01:00
hmatrix.h
hsmc.c [AVR32] Turn off debugging in SMC driver 2007-11-15 13:47:19 +01:00
hsmc.h
intc.c avr32: Power Management support ("standby" and "mem" modes) 2008-07-02 11:05:01 +02:00
intc.h
Kconfig [AVR32] Add support for AT32AP7001 and AT32AP7002 2008-01-25 08:31:41 +01:00
Makefile avr32: Power Management support ("standby" and "mem" modes) 2008-07-02 11:05:01 +02:00
pdc.c avr32: Rename at32ap.c -> pdc.c 2008-06-28 15:08:48 +02:00
pio.c avr32: minor GPIO handling updates 2008-06-27 15:32:27 +02:00
pio.h avr32: Fix typo of IFSR in a comment in the PIO header file 2008-07-04 09:48:05 +02:00
pm-at32ap700x.S avr32: Power Management support ("standby" and "mem" modes) 2008-07-02 11:05:01 +02:00
pm.c avr32: Power Management support ("standby" and "mem" modes) 2008-07-02 11:05:01 +02:00
pm.h [AVR32] Fix a couple of sparse warnings 2007-10-23 11:19:24 +02:00
sdramc.h avr32: Power Management support ("standby" and "mem" modes) 2008-07-02 11:05:01 +02:00