From a53b2056043e31925176446e322c8a9d4ff2bd2d Mon Sep 17 00:00:00 2001 From: Martin Michlmayr Date: Wed, 26 May 2010 10:11:47 +0000 Subject: [PATCH] QNAP TS-419P: Export GPIO indicating jumper setting of JP1. svn path=/dists/sid/linux-2.6/; revision=15773 --- debian/changelog | 3 ++ .../features/arm/ts41x-export-jp1.patch | 36 +++++++++++++++++++ debian/patches/series/14 | 1 + 3 files changed, 40 insertions(+) create mode 100644 debian/patches/features/arm/ts41x-export-jp1.patch diff --git a/debian/changelog b/debian/changelog index 647ef013e..14b76425f 100644 --- a/debian/changelog +++ b/debian/changelog @@ -30,6 +30,9 @@ linux-2.6 (2.6.32-14) UNRELEASED; urgency=low * Add drm changes from stable 2.6.33.5. * Update openvz patch to 509eb1f29c43. + [ Martin Michlmayr ] + * QNAP TS-419P: Export GPIO indicating jumper setting of JP1. + -- Ben Hutchings Tue, 18 May 2010 02:13:44 +0100 linux-2.6 (2.6.32-13) unstable; urgency=low diff --git a/debian/patches/features/arm/ts41x-export-jp1.patch b/debian/patches/features/arm/ts41x-export-jp1.patch new file mode 100644 index 000000000..1fd1da7fa --- /dev/null +++ b/debian/patches/features/arm/ts41x-export-jp1.patch @@ -0,0 +1,36 @@ +Kirkwood: Export GPIO indicating jumper setting of JP1 + +Export GPIO 45 which is used to indicate the setting of the JP1 +jumper. This is useful for userland tools, such as qcontrol, to +see whether the LCD or a serial console is connected. + +Signed-off-by: Martin Michlmayr + +--- a/arch/arm/mach-kirkwood/ts41x-setup.c 2010-05-21 19:27:57.000000000 +0000 ++++ b/arch/arm/mach-kirkwood/ts41x-setup.c 2010-05-21 19:28:34.000000000 +0000 +@@ -21,6 +21,7 @@ + #include + #include + #include ++#include + #include + #include + #include +@@ -32,6 +33,8 @@ + #include "common.h" + #include "mpp.h" + ++#define QNAP_TS41X_JUMPER_JP1 45 ++ + /**************************************************************************** + * 16 MiB NOR flash. The struct mtd_partition is not in the same order as the + * partitions on the device because we want to keep compatability with +@@ -230,6 +233,8 @@ + + pm_power_off = qnap_ts41x_power_off; + ++ if (gpio_request(QNAP_TS41X_JUMPER_JP1, "JP1") == 0) ++ gpio_export(QNAP_TS41X_JUMPER_JP1, 0); + } + + static int __init ts41x_pci_init(void) diff --git a/debian/patches/series/14 b/debian/patches/series/14 index 87bd40e18..be4377925 100644 --- a/debian/patches/series/14 +++ b/debian/patches/series/14 @@ -19,3 +19,4 @@ + bugfix/all/ext4-Conditionally-define-compat-ioctl-numbers.patch + bugfix/all/ext4-Fix-compat-EXT4_IOC_ADD_GROUP.patch + bugfix/all/net-sysfs-ethtool_ops-can-be-NULL.patch ++ features/arm/ts41x-export-jp1.patch