diff options
-rw-r--r-- | arch/avr32/boards/atngw100/setup.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/arch/avr32/boards/atngw100/setup.c b/arch/avr32/boards/atngw100/setup.c index b8286f1ce854..abcb0d9559b1 100644 --- a/arch/avr32/boards/atngw100/setup.c +++ b/arch/avr32/boards/atngw100/setup.c | |||
@@ -9,6 +9,7 @@ | |||
9 | */ | 9 | */ |
10 | #include <linux/clk.h> | 10 | #include <linux/clk.h> |
11 | #include <linux/etherdevice.h> | 11 | #include <linux/etherdevice.h> |
12 | #include <linux/gpio.h> | ||
12 | #include <linux/irq.h> | 13 | #include <linux/irq.h> |
13 | #include <linux/i2c.h> | 14 | #include <linux/i2c.h> |
14 | #include <linux/i2c-gpio.h> | 15 | #include <linux/i2c-gpio.h> |
@@ -204,6 +205,15 @@ postcore_initcall(atngw100_init); | |||
204 | 205 | ||
205 | static int __init atngw100_arch_init(void) | 206 | static int __init atngw100_arch_init(void) |
206 | { | 207 | { |
208 | /* PB30 is the otherwise unused jumper on the mainboard, with an | ||
209 | * external pullup; the jumper grounds it. Use it however you | ||
210 | * like, including letting U-Boot or Linux tweak boot sequences. | ||
211 | */ | ||
212 | at32_select_gpio(GPIO_PIN_PB(30), 0); | ||
213 | gpio_request(GPIO_PIN_PB(30), "j15"); | ||
214 | gpio_direction_input(GPIO_PIN_PB(30)); | ||
215 | gpio_export(GPIO_PIN_PB(30), false); | ||
216 | |||
207 | /* set_irq_type() after the arch_initcall for EIC has run, and | 217 | /* set_irq_type() after the arch_initcall for EIC has run, and |
208 | * before the I2C subsystem could try using this IRQ. | 218 | * before the I2C subsystem could try using this IRQ. |
209 | */ | 219 | */ |