diff options
author | Phil Sutter <n0-1@freewrt.org> | 2009-01-22 13:32:43 -0500 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2009-01-30 16:33:01 -0500 |
commit | 0fc6bc0d6e953f6dd80c286c889d8d581e8f8d7a (patch) | |
tree | e1f055c238ca395c32cd52a8869204cc148dbc53 /arch/mips/rb532 | |
parent | 3828ee047d3c8e0d0e8e9f4d738bd8593220299a (diff) |
MIPS: RB532: Export rb532_gpio_set_func()
This kernel symbol provides a way for drivers to switch on alternate
function for a certain GPIO pin. Turning it off is done implicitly when
changing the GPIO direction, as that would be fixed when using the given
pin als alternate function.
Signed-off-by: Phil Sutter <n0-1@freewrt.org>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/rb532')
-rw-r--r-- | arch/mips/rb532/gpio.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/arch/mips/rb532/gpio.c b/arch/mips/rb532/gpio.c index f33868159826..37de05d595e7 100644 --- a/arch/mips/rb532/gpio.c +++ b/arch/mips/rb532/gpio.c | |||
@@ -174,10 +174,11 @@ EXPORT_SYMBOL(rb532_gpio_set_istat); | |||
174 | /* | 174 | /* |
175 | * Configure GPIO alternate function | 175 | * Configure GPIO alternate function |
176 | */ | 176 | */ |
177 | static void rb532_gpio_set_func(int bit, unsigned gpio) | 177 | void rb532_gpio_set_func(unsigned gpio) |
178 | { | 178 | { |
179 | rb532_set_bit(bit, gpio, rb532_gpio_chip->regbase + GPIOFUNC); | 179 | rb532_set_bit(1, gpio, rb532_gpio_chip->regbase + GPIOFUNC); |
180 | } | 180 | } |
181 | EXPORT_SYMBOL(rb532_gpio_set_func); | ||
181 | 182 | ||
182 | int __init rb532_gpio_init(void) | 183 | int __init rb532_gpio_init(void) |
183 | { | 184 | { |