summaryrefslogtreecommitdiff
path: root/include/asm-avr32/arch-at32ap700x/gpio.h
diff options
context:
space:
mode:
authorHans-Christian Egtvedt <hcegtvedt@atmel.com>2008-05-16 11:10:32 +0200
committerWolfgang Denk <wd@denx.de>2008-06-03 20:30:05 +0200
commit60445cb5c3eb77ed1a07f2d908eef09174483698 (patch)
treebea7feee25572ecae29288549f0344a8f3a3da26 /include/asm-avr32/arch-at32ap700x/gpio.h
parentd255bb0e78d1cac5b7c8c98cb77a095f5f16de0d (diff)
downloadu-boot-imx-60445cb5c3eb77ed1a07f2d908eef09174483698.zip
u-boot-imx-60445cb5c3eb77ed1a07f2d908eef09174483698.tar.gz
u-boot-imx-60445cb5c3eb77ed1a07f2d908eef09174483698.tar.bz2
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>
Diffstat (limited to 'include/asm-avr32/arch-at32ap700x/gpio.h')
-rw-r--r--include/asm-avr32/arch-at32ap700x/gpio.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/asm-avr32/arch-at32ap700x/gpio.h b/include/asm-avr32/arch-at32ap700x/gpio.h
index b10a3e4..ef20cea 100644
--- a/include/asm-avr32/arch-at32ap700x/gpio.h
+++ b/include/asm-avr32/arch-at32ap700x/gpio.h
@@ -216,5 +216,9 @@ void gpio_enable_macb1(void);
#ifdef AT32AP700x_CHIP_HAS_MMCI
void gpio_enable_mmci(void);
#endif
+#ifdef AT32AP700x_CHIP_HAS_SPI
+void gpio_enable_spi0(unsigned long cs_mask);
+void gpio_enable_spi1(unsigned long cs_mask);
+#endif
#endif /* __ASM_AVR32_ARCH_GPIO_H__ */