Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=4670df831cb479ba57dd0fa0b8a9eb88cc7129be
Commit:     4670df831cb479ba57dd0fa0b8a9eb88cc7129be
Parent:     f1dad166e88a5ddca0acf8f11dea0e2bd92d8bf3
Author:     Ben Gardner <[EMAIL PROTECTED]>
AuthorDate: Tue Dec 4 23:45:24 2007 -0800
Committer:  Linus Torvalds <[EMAIL PROTECTED]>
CommitDate: Wed Dec 5 09:21:20 2007 -0800

    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 <[EMAIL PROTECTED]>
    Cc: Richard Knutsson <[EMAIL PROTECTED]>
    Cc: David Brownell <[EMAIL PROTECTED]>
    Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
    Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]>
---
 drivers/char/cs5535_gpio.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/drivers/char/cs5535_gpio.c b/drivers/char/cs5535_gpio.c
index fe6d240..c2d23ca 100644
--- a/drivers/char/cs5535_gpio.c
+++ b/drivers/char/cs5535_gpio.c
@@ -104,6 +104,11 @@ static ssize_t cs5535_gpio_write(struct file *file, const 
char __user *data,
                for (j = 0; j < ARRAY_SIZE(rm); j++) {
                        if (c == rm[j].on) {
                                outl(m1, base + rm[j].wr_offset);
+                               /* If enabling output, turn off AUX 1 and AUX 2 
*/
+                               if (c == 'O') {
+                                       outl(m0, base + 0x10);
+                                       outl(m0, base + 0x14);
+                               }
                                break;
                        } else if (c == rm[j].off) {
                                outl(m0, base + rm[j].wr_offset);
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to