diff options
author | Matteo Vit <matteo.vit@dave.eu> | 2007-08-09 14:55:34 +0200 |
---|---|---|
committer | Haavard Skinnemoen <hskinnemoen@atmel.com> | 2007-10-11 11:38:41 +0200 |
commit | 7808fa4853728a776d7e76d68fb406f515a4119c (patch) | |
tree | 815245c239af653a61382acf15b19cfde2c351c5 /arch/avr32 | |
parent | d938b89392bd3ff64e0610d8c4e0d3f7091d98db (diff) | |
download | blackbird-op-linux-7808fa4853728a776d7e76d68fb406f515a4119c.tar.gz blackbird-op-linux-7808fa4853728a776d7e76d68fb406f515a4119c.zip |
[AVR32] add multidrive support for pio driver
This patch add multidrive support for pio driver
Signed-off-by: Matteo Vit - Dave S.r.l. <matteo.vit@dave.eu>
Signed-off-by: Haavard Skinnemoen <hskinnemoen@atmel.com>
Diffstat (limited to 'arch/avr32')
-rw-r--r-- | arch/avr32/mach-at32ap/pio.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/avr32/mach-at32ap/pio.c b/arch/avr32/mach-at32ap/pio.c index 1eb99b814f5b..d61a02da898c 100644 --- a/arch/avr32/mach-at32ap/pio.c +++ b/arch/avr32/mach-at32ap/pio.c @@ -110,6 +110,10 @@ void __init at32_select_gpio(unsigned int pin, unsigned long flags) pio_writel(pio, SODR, mask); else pio_writel(pio, CODR, mask); + if (flags & AT32_GPIOF_MULTIDRV) + pio_writel(pio, MDER, mask); + else + pio_writel(pio, MDDR, mask); pio_writel(pio, PUDR, mask); pio_writel(pio, OER, mask); } else { |