atmel_spi: Driver for the Atmel SPI controller
authorHans-Christian Egtvedt <hcegtvedt@atmel.com>
Fri, 16 May 2008 09:10:32 +0000 (11:10 +0200)
committerWolfgang Denk <wd@denx.de>
Tue, 3 Jun 2008 18:30:05 +0000 (20:30 +0200)
commit60445cb5c3eb77ed1a07f2d908eef09174483698
treebea7feee25572ecae29288549f0344a8f3a3da26
parentd255bb0e78d1cac5b7c8c98cb77a095f5f16de0d
atmel_spi: Driver for the Atmel SPI controller

This adds a driver for the SPI controller found on most AT91 and AVR32
chips, implementing the new SPI API.

Changed in v4:
  - Update to new API
  - Handle zero-length transfers appropriately. The user may send a
    zero-length SPI transfer with SPI_XFER_END set in order to
    deactivate the chip select after a series of transfers with chip
    select active. This is useful e.g. when polling the status
    register of DataFlash.

Signed-off-by: Haavard Skinnemoen <hskinnemoen@atmel.com>
cpu/at32ap/at32ap700x/gpio.c
drivers/spi/Makefile
drivers/spi/atmel_spi.c [new file with mode: 0644]
drivers/spi/atmel_spi.h [new file with mode: 0644]
include/asm-avr32/arch-at32ap700x/chip-features.h
include/asm-avr32/arch-at32ap700x/clk.h
include/asm-avr32/arch-at32ap700x/gpio.h