From: Wolfgang Denk Date: Thu, 05 Jun 2008 00:06:24 +0200 Subject: [U-Boot-Users] [RFC/PATCH 3/6] atmel_spi: Driver for the Atmel SPI controller In-Reply-To: Your message of "Fri, 16 May 2008 11:10:32 +0200." <1210929035-7997-3-git-send-email-haavard.skinnemoen@atmel.com> Message-ID: <20080604220624.5BC62247CC@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de In message <1210929035-7997-3-git-send-email-haavard.skinnemoen@atmel.com> you wrote: > From: Hans-Christian Egtvedt > > 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 > --- > 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_