Commit f9afdd37 authored by Martin Michlmayr's avatar Martin Michlmayr Committed by Nicolas Pitre

[ARM] 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: default avatarMartin Michlmayr <tbm@cyrius.com>
Signed-off-by: default avatarNicolas Pitre <nico@fluxnic.net>
parent d9ad1401
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* *
* QNAP TS-410, TS-410U, TS-419P and TS-419U Turbo NAS Board Setup * QNAP TS-410, TS-410U, TS-419P and TS-419U Turbo NAS Board Setup
* *
* Copyright (C) 2009 Martin Michlmayr <tbm@cyrius.com> * Copyright (C) 2009-2010 Martin Michlmayr <tbm@cyrius.com>
* Copyright (C) 2008 Byron Bradley <byron.bbradley@gmail.com> * Copyright (C) 2008 Byron Bradley <byron.bbradley@gmail.com>
* *
* This program is free software; you can redistribute it and/or * This program is free software; you can redistribute it and/or
...@@ -17,6 +17,7 @@ ...@@ -17,6 +17,7 @@
#include <linux/i2c.h> #include <linux/i2c.h>
#include <linux/mv643xx_eth.h> #include <linux/mv643xx_eth.h>
#include <linux/ata_platform.h> #include <linux/ata_platform.h>
#include <linux/gpio.h>
#include <linux/gpio_keys.h> #include <linux/gpio_keys.h>
#include <linux/input.h> #include <linux/input.h>
#include <asm/mach-types.h> #include <asm/mach-types.h>
...@@ -26,6 +27,8 @@ ...@@ -26,6 +27,8 @@
#include "mpp.h" #include "mpp.h"
#include "tsx1x-common.h" #include "tsx1x-common.h"
#define QNAP_TS41X_JUMPER_JP1 45
static struct i2c_board_info __initdata qnap_ts41x_i2c_rtc = { static struct i2c_board_info __initdata qnap_ts41x_i2c_rtc = {
I2C_BOARD_INFO("s35390a", 0x30), I2C_BOARD_INFO("s35390a", 0x30),
}; };
...@@ -131,6 +134,8 @@ static void __init qnap_ts41x_init(void) ...@@ -131,6 +134,8 @@ static void __init qnap_ts41x_init(void)
pm_power_off = qnap_tsx1x_power_off; pm_power_off = qnap_tsx1x_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) static int __init ts41x_pci_init(void)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment