diff options
Diffstat (limited to 'arch/i386/kernel/scx200.c')
-rw-r--r-- | arch/i386/kernel/scx200.c | 39 |
1 files changed, 11 insertions, 28 deletions
diff --git a/arch/i386/kernel/scx200.c b/arch/i386/kernel/scx200.c index 18f895ce2488..9e96a785dd05 100644 --- a/arch/i386/kernel/scx200.c +++ b/arch/i386/kernel/scx200.c | |||
@@ -108,34 +108,17 @@ u32 scx200_gpio_configure(unsigned index, u32 mask, u32 bits) | |||
108 | #if 0 | 108 | #if 0 |
109 | void scx200_gpio_dump(unsigned index) | 109 | void scx200_gpio_dump(unsigned index) |
110 | { | 110 | { |
111 | u32 config = scx200_gpio_configure(index, ~0, 0); | 111 | u32 config = scx200_gpio_configure(index, ~0, 0); |
112 | printk(KERN_DEBUG "GPIO%02u: 0x%08lx", index, (unsigned long)config); | 112 | |
113 | 113 | printk(KERN_INFO NAME ": GPIO-%02u: 0x%08lx %s %s %s %s %s %s %s\n", | |
114 | if (config & 1) | 114 | index, (unsigned long) config, |
115 | printk(" OE"); /* output enabled */ | 115 | (config & 1) ? "OE" : "TS", /* output enabled / tristate */ |
116 | else | 116 | (config & 2) ? "PP" : "OD", /* push pull / open drain */ |
117 | printk(" TS"); /* tristate */ | 117 | (config & 4) ? "PUE" : "PUD", /* pull up enabled/disabled */ |
118 | if (config & 2) | 118 | (config & 8) ? "LOCKED" : "", /* locked / unlocked */ |
119 | printk(" PP"); /* push pull */ | 119 | (config & 16) ? "LEVEL" : "EDGE", /* level/edge input */ |
120 | else | 120 | (config & 32) ? "HI" : "LO", /* trigger on rising/falling edge */ |
121 | printk(" OD"); /* open drain */ | 121 | (config & 64) ? "DEBOUNCE" : ""); /* debounce */ |
122 | if (config & 4) | ||
123 | printk(" PUE"); /* pull up enabled */ | ||
124 | else | ||
125 | printk(" PUD"); /* pull up disabled */ | ||
126 | if (config & 8) | ||
127 | printk(" LOCKED"); /* locked */ | ||
128 | if (config & 16) | ||
129 | printk(" LEVEL"); /* level input */ | ||
130 | else | ||
131 | printk(" EDGE"); /* edge input */ | ||
132 | if (config & 32) | ||
133 | printk(" HI"); /* trigger on rising edge */ | ||
134 | else | ||
135 | printk(" LO"); /* trigger on falling edge */ | ||
136 | if (config & 64) | ||
137 | printk(" DEBOUNCE"); /* debounce */ | ||
138 | printk("\n"); | ||
139 | } | 122 | } |
140 | #endif /* 0 */ | 123 | #endif /* 0 */ |
141 | 124 | ||