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>
Showing
- cpu/at32ap/at32ap700x/gpio.c 43 additions, 0 deletionscpu/at32ap/at32ap700x/gpio.c
- drivers/spi/Makefile 1 addition, 0 deletionsdrivers/spi/Makefile
- drivers/spi/atmel_spi.c 210 additions, 0 deletionsdrivers/spi/atmel_spi.c
- drivers/spi/atmel_spi.h 95 additions, 0 deletionsdrivers/spi/atmel_spi.h
- include/asm-avr32/arch-at32ap700x/chip-features.h 1 addition, 0 deletionsinclude/asm-avr32/arch-at32ap700x/chip-features.h
- include/asm-avr32/arch-at32ap700x/clk.h 6 additions, 0 deletionsinclude/asm-avr32/arch-at32ap700x/clk.h
- include/asm-avr32/arch-at32ap700x/gpio.h 4 additions, 0 deletionsinclude/asm-avr32/arch-at32ap700x/gpio.h
Loading
Please register or sign in to comment