avr32: Provide a way to deselect pins in the portmux
authorHaavard Skinnemoen <haavard.skinnemoen@atmel.com>
Fri, 19 Sep 2008 15:13:28 +0000 (17:13 +0200)
committerHaavard Skinnemoen <haavard.skinnemoen@atmel.com>
Mon, 22 Sep 2008 07:51:02 +0000 (09:51 +0200)
commitece2678c62ce13ef11a8b43526ccc5db8d711ed3
tree9b9cc045839f0f2485e6bd2b1af05590805157e8
parent96706600de83966812b01a3cb310a13da2a1a4e9
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>
arch/avr32/mach-at32ap/include/mach/portmux.h
arch/avr32/mach-at32ap/pio.c