summaryrefslogtreecommitdiff
path: root/include/asm-avr32/arch-at32ap700x/gpio.h
diff options
context:
space:
mode:
authorHaavard Skinnemoen <hskinnemoen@atmel.com>2007-10-29 13:23:33 +0100
committerHaavard Skinnemoen <hskinnemoen@atmel.com>2007-12-17 10:34:12 +0100
commit5fee84a794a51ec830548cda485a770efb018b92 (patch)
treeec47a3544038b4310917f9570c0f1531f480eba5 /include/asm-avr32/arch-at32ap700x/gpio.h
parent36f28f8a9605ee5dcfa330482cfc62171261af97 (diff)
downloadu-boot-imx-5fee84a794a51ec830548cda485a770efb018b92.zip
u-boot-imx-5fee84a794a51ec830548cda485a770efb018b92.tar.gz
u-boot-imx-5fee84a794a51ec830548cda485a770efb018b92.tar.bz2
AVR32: Make some AT32AP700x peripherals optional
Add a chip-features file providing definitions of the form AT32AP700x_CHIP_HAS_<peripheral> to indicate the availability of the given peripheral on the currently selected chip. 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.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/asm-avr32/arch-at32ap700x/gpio.h b/include/asm-avr32/arch-at32ap700x/gpio.h
index e4812d4..b10a3e4 100644
--- a/include/asm-avr32/arch-at32ap700x/gpio.h
+++ b/include/asm-avr32/arch-at32ap700x/gpio.h
@@ -22,6 +22,7 @@
#ifndef __ASM_AVR32_ARCH_GPIO_H__
#define __ASM_AVR32_ARCH_GPIO_H__
+#include <asm/arch/chip-features.h>
#include <asm/arch/memory-map.h>
#define NR_GPIO_CONTROLLERS 5
@@ -201,12 +202,19 @@ void gpio_select_periph_A(unsigned int pin, int use_pullup);
void gpio_select_periph_B(unsigned int pin, int use_pullup);
void gpio_enable_ebi(void);
+
+#ifdef AT32AP700x_CHIP_HAS_USART
void gpio_enable_usart0(void);
void gpio_enable_usart1(void);
void gpio_enable_usart2(void);
void gpio_enable_usart3(void);
+#endif
+#ifdef AT32AP700x_CHIP_HAS_MACB
void gpio_enable_macb0(void);
void gpio_enable_macb1(void);
+#endif
+#ifdef AT32AP700x_CHIP_HAS_MMCI
void gpio_enable_mmci(void);
+#endif
#endif /* __ASM_AVR32_ARCH_GPIO_H__ */