]> git.baikalelectronics.ru Git - kernel.git/commit
gpio_cs5535: disable AUX on output
authorBen Gardner <gardner.ben@gmail.com>
Wed, 5 Dec 2007 07:45:24 +0000 (23:45 -0800)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Wed, 5 Dec 2007 17:21:20 +0000 (09:21 -0800)
commit33563af5bd372b749b00a6e73aa0caff7830685c
tree4d9a868a29e040f7b20175bfc0051956f015dc12
parentc255e38cce5bf71e6a680d593ebbe2fd86eb3a4a
gpio_cs5535: disable AUX on output

The AMD CS5535/CS5536 GPIO has two alternate output modes: AUX-1 and AUX-2.
When either AUX is enabled, the cs5535_gpio driver cannot control the
output.

Some BIOS code for the Geode processor enables AUX-1 for GPIO-1, which
configures it as the PC BEEP output.

This patch will disable AUX-1 and AUX-2 when the user enables output.

Signed-of-by: Ben Gardner <gardner.ben@gmail.com>
Cc: Richard Knutsson <ricknu-0@student.ltu.se>
Cc: David Brownell <david-b@pacbell.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/char/cs5535_gpio.c