kernel-fxtec-pro1x/include/asm-mips/mach-au1x00
Jan Nikitenko 63bd23591e au1550 SPI controller driver
Here is a driver for the Alchemy au1550 PSC (Programmable Serial
Controller) in SPI master mode.

It supports dma transfers using the Alchemy descriptor based dma controller
for 4-8 bits per word SPI transfers.  For 9-24 bits per word transfers, pio
irq based mode is used to avoid setup of dma channels from scratch on each
number of bits per word change.

Tested with au1550; this may also work on other MIPS Alchemy cpus, like
au1200/au1210/au1250.  Used extensively with SD card connected via SPI;
this handles 8.1MHz SPI clock transfers using dma without any problem (the
highest SPI clock freq possible with au1550 running on 324MHz).

The driver supports sharing of SPI bus by multiple devices.  All features
of Alchemy SPI mode are supported (all SPI modes, msb/lsb first, bits per
word in 4-24 range).

As the SPI clock of the controller depends on main input clock that shall
be configured externally, platform data structure for au1550 SPI controller
driver contains mainclk_hz attribute to define the input clock rate.  From
this value, dividers of the controller for SPI clock are set up for
required frequency.

Signed-off-by: Jan Nikitenko <jan.nikitenko@gmail.com>

Whitespace and section fixups.  Remove partial workaround for platform
setup bug in dma_mask setup; it couldn't work with multiple controllers.

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2007-05-08 11:15:16 -07:00
..
au1xxx.h Don't include linux/config.h from anywhere else in include/ 2006-04-26 12:56:16 +01:00
au1xxx_dbdma.h [PATCH] Alchemy: Delete unused pt_regs * argument from au1xxx_dbdma_chan_alloc 2006-09-26 08:48:54 -07:00
au1xxx_gpio.h Kernel gpio/2 routines that will be used by some drivers. 2005-10-29 19:32:25 +01:00
au1xxx_ide.h ide: remove static prototypes from include/asm-mips/mach-au1x00/au1xxx_ide.h 2007-03-17 21:57:24 +01:00
au1xxx_psc.h [MIPS] au1xxx: fix PSC_SMBTXRX_RSR. 2006-06-29 21:10:53 +01:00
au1000.h [MIPS] Alchemy: Fix PCI-memory access 2007-02-06 16:53:24 +00:00
au1000_dma.h IRQ: Use the new typedef for interrupt handler function pointers 2006-10-09 12:19:47 +01:00
au1000_gpio.h
au1100_mmc.h
au1550_spi.h au1550 SPI controller driver 2007-05-08 11:15:16 -07:00
ioremap.h Don't include linux/config.h from anywhere else in include/ 2006-04-26 12:56:16 +01:00
timex.h