]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit - arch/arm/plat-omap/gpio-switch.c
ARM: OMAP: Fix GPIO switch initial output state handling
authorJani Nikula <ext-jani.1.nikula@nokia.com>
Wed, 11 Mar 2009 13:07:19 +0000 (13:07 +0000)
committerTony Lindgren <tony@atomide.com>
Wed, 11 Mar 2009 16:38:06 +0000 (09:38 -0700)
commitcc2b459c066361098704c586f3134c3c3ac13be3
treeef49f755ee8cf07e1b627da6373062052cc4a9df
parent67a0428c24896738e81ffff0fd0736ee78c031a5
ARM: OMAP: Fix GPIO switch initial output state handling

The switchover to cross-platform GPIO interface unexpectedly caused all
output GPIO switches to be set to high state by default, unlike the
original OMAP code. Introduce a new GPIO switch flag to define the
initial state of the switch. Unless the flag is set, the default is now
inactive state of the switch.

Also store the state of output switches directly into the switch struct
instead of trying to read an output GPIO.

Signed-off-by: Jani Nikula <ext-jani.1.nikula@nokia.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/plat-omap/gpio-switch.c
arch/arm/plat-omap/include/mach/gpio-switch.h