
In message 1210929035-7997-3-git-send-email-haavard.skinnemoen@atmel.com you wrote:
From: Hans-Christian Egtvedt hcegtvedt@atmel.com
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 | 43 +++++ drivers/spi/Makefile | 1 + drivers/spi/atmel_spi.c | 210 +++++++++++++++++++++ drivers/spi/atmel_spi.h | 95 +++++++++ include/asm-avr32/arch-at32ap700x/chip-features.h | 1 + include/asm-avr32/arch-at32ap700x/clk.h | 6 + include/asm-avr32/arch-at32ap700x/gpio.h | 4 + 7 files changed, 360 insertions(+), 0 deletions(-) create mode 100644 drivers/spi/atmel_spi.c create mode 100644 drivers/spi/atmel_spi.h
Applied, thanks.
Best regards,
Wolfgang Denk