[U-Boot-Users] [RFC/PATCH 3/6] atmel_spi: Driver for the Atmel SPI controller

Wolfgang Denk wd at denx.de
Thu Jun 5 00:06:24 CEST 2008


In message <1210929035-7997-3-git-send-email-haavard.skinnemoen at atmel.com> you wrote:
> From: Hans-Christian Egtvedt <hcegtvedt at 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 at 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

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
This all sounds complicated, but it mostly does excatly what you  ex-
pect. It's just difficult for us to explain what you expect...
                       - L. Wall & R. L. Schwartz, _Programming Perl_




More information about the U-Boot mailing list