diff options
author | Haavard Skinnemoen <haavard.skinnemoen@atmel.com> | 2008-09-19 17:13:28 +0200 |
---|---|---|
committer | Haavard Skinnemoen <haavard.skinnemoen@atmel.com> | 2008-09-22 09:51:02 +0200 |
commit | ece2678c62ce13ef11a8b43526ccc5db8d711ed3 (patch) | |
tree | 9b9cc045839f0f2485e6bd2b1af05590805157e8 /arch/avr32/mach-at32ap/include/mach | |
parent | 96706600de83966812b01a3cb310a13da2a1a4e9 (diff) | |
download | op-kernel-dev-ece2678c62ce13ef11a8b43526ccc5db8d711ed3.zip op-kernel-dev-ece2678c62ce13ef11a8b43526ccc5db8d711ed3.tar.gz |
avr32: Provide a way to deselect pins in the portmux
Currently, setting up the portmux is completely one-shot: Once a pin is
muxed, the portmux driver will complain loudly and refuse to do anything
if you try to set up the same pin again.
Sometimes, it may be necessary to change the configuration of a pin
after it has been set up initially. This patch adds a way to undo the
previous configuration, allowing the pin to be reconfigured.
Signed-off-by: Haavard Skinnemoen <haavard.skinnemoen@atmel.com>
Diffstat (limited to 'arch/avr32/mach-at32ap/include/mach')
-rw-r--r-- | arch/avr32/mach-at32ap/include/mach/portmux.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/avr32/mach-at32ap/include/mach/portmux.h b/arch/avr32/mach-at32ap/include/mach/portmux.h index b1abe6b..4bbf99e 100644 --- a/arch/avr32/mach-at32ap/include/mach/portmux.h +++ b/arch/avr32/mach-at32ap/include/mach/portmux.h @@ -24,6 +24,7 @@ void at32_select_periph(unsigned int pin, unsigned int periph, unsigned long flags); void at32_select_gpio(unsigned int pin, unsigned long flags); +void at32_deselect_pin(unsigned int pin); void at32_reserve_pin(unsigned int pin); #endif /* __ASM_ARCH_PORTMUX_H__ */ |