diff options
Diffstat (limited to 'arch/arm/mach-kirkwood/ts41x-setup.c')
-rw-r--r-- | arch/arm/mach-kirkwood/ts41x-setup.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/arch/arm/mach-kirkwood/ts41x-setup.c b/arch/arm/mach-kirkwood/ts41x-setup.c index de49c2d9e74b..df8a7e06b846 100644 --- a/arch/arm/mach-kirkwood/ts41x-setup.c +++ b/arch/arm/mach-kirkwood/ts41x-setup.c | |||
@@ -2,7 +2,7 @@ | |||
2 | * | 2 | * |
3 | * QNAP TS-410, TS-410U, TS-419P and TS-419U Turbo NAS Board Setup | 3 | * QNAP TS-410, TS-410U, TS-419P and TS-419U Turbo NAS Board Setup |
4 | * | 4 | * |
5 | * Copyright (C) 2009 Martin Michlmayr <tbm@cyrius.com> | 5 | * Copyright (C) 2009-2010 Martin Michlmayr <tbm@cyrius.com> |
6 | * Copyright (C) 2008 Byron Bradley <byron.bbradley@gmail.com> | 6 | * Copyright (C) 2008 Byron Bradley <byron.bbradley@gmail.com> |
7 | * | 7 | * |
8 | * This program is free software; you can redistribute it and/or | 8 | * This program is free software; you can redistribute it and/or |
@@ -17,6 +17,7 @@ | |||
17 | #include <linux/i2c.h> | 17 | #include <linux/i2c.h> |
18 | #include <linux/mv643xx_eth.h> | 18 | #include <linux/mv643xx_eth.h> |
19 | #include <linux/ata_platform.h> | 19 | #include <linux/ata_platform.h> |
20 | #include <linux/gpio.h> | ||
20 | #include <linux/gpio_keys.h> | 21 | #include <linux/gpio_keys.h> |
21 | #include <linux/input.h> | 22 | #include <linux/input.h> |
22 | #include <asm/mach-types.h> | 23 | #include <asm/mach-types.h> |
@@ -26,6 +27,8 @@ | |||
26 | #include "mpp.h" | 27 | #include "mpp.h" |
27 | #include "tsx1x-common.h" | 28 | #include "tsx1x-common.h" |
28 | 29 | ||
30 | #define QNAP_TS41X_JUMPER_JP1 45 | ||
31 | |||
29 | static struct i2c_board_info __initdata qnap_ts41x_i2c_rtc = { | 32 | static struct i2c_board_info __initdata qnap_ts41x_i2c_rtc = { |
30 | I2C_BOARD_INFO("s35390a", 0x30), | 33 | I2C_BOARD_INFO("s35390a", 0x30), |
31 | }; | 34 | }; |
@@ -131,6 +134,8 @@ static void __init qnap_ts41x_init(void) | |||
131 | 134 | ||
132 | pm_power_off = qnap_tsx1x_power_off; | 135 | pm_power_off = qnap_tsx1x_power_off; |
133 | 136 | ||
137 | if (gpio_request(QNAP_TS41X_JUMPER_JP1, "JP1") == 0) | ||
138 | gpio_export(QNAP_TS41X_JUMPER_JP1, 0); | ||
134 | } | 139 | } |
135 | 140 | ||
136 | static int __init ts41x_pci_init(void) | 141 | static int __init ts41x_pci_init(void) |