diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2010-08-03 17:31:24 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-08-03 17:31:24 -0400 |
commit | be82ae0238b0453afcf4a76f0512b7dde34ba500 (patch) | |
tree | aaa3f5f11fd51fd73365ee1a2164aad9a03de060 /arch/arm/mach-kirkwood/ts41x-setup.c | |
parent | 4b4fd27c0b5ec638a1f06ced9226fd95229dbbf0 (diff) | |
parent | 7b70c4275f28702b76b273c8534c38f8313812e9 (diff) |
Merge branch 'devel' of master.kernel.org:/home/rmk/linux-2.6-arm
* 'devel' of master.kernel.org:/home/rmk/linux-2.6-arm: (291 commits)
ARM: AMBA: Add pclk support to AMBA bus infrastructure
ARM: 6278/2: fix regression in RealView after the introduction of pclk
ARM: 6277/1: mach-shmobile: Allow users to select HZ, default to 128
ARM: 6276/1: mach-shmobile: remove duplicate NR_IRQS_LEGACY
ARM: 6246/1: mmci: support larger MMCIDATALENGTH register
ARM: 6245/1: mmci: enable hardware flow control on Ux500 variants
ARM: 6244/1: mmci: add variant data and default MCICLOCK support
ARM: 6243/1: mmci: pass power_mode to the translate_vdd callback
ARM: 6274/1: add global control registers definition header file for nuc900
mx2_camera: fix type of dma buffer virtual address pointer
mx2_camera: Add soc_camera support for i.MX25/i.MX27
arm/imx/gpio: add spinlock protection
ARM: Add support for the LPC32XX arch
ARM: LPC32XX: Arch config menu supoport and makefiles
ARM: LPC32XX: Phytec 3250 platform support
ARM: LPC32XX: Misc support functions
ARM: LPC32XX: Serial support code
ARM: LPC32XX: System suspend support
ARM: LPC32XX: GPIO, timer, and IRQ drivers
ARM: LPC32XX: Clock driver
...
Diffstat (limited to 'arch/arm/mach-kirkwood/ts41x-setup.c')
-rw-r--r-- | arch/arm/mach-kirkwood/ts41x-setup.c | 39 |
1 files changed, 22 insertions, 17 deletions
diff --git a/arch/arm/mach-kirkwood/ts41x-setup.c b/arch/arm/mach-kirkwood/ts41x-setup.c index de49c2d9e74b..2e14afef07a2 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 | }; |
@@ -78,31 +81,31 @@ static unsigned int qnap_ts41x_mpp_config[] __initdata = { | |||
78 | MPP3_SPI_MISO, | 81 | MPP3_SPI_MISO, |
79 | MPP6_SYSRST_OUTn, | 82 | MPP6_SYSRST_OUTn, |
80 | MPP7_PEX_RST_OUTn, | 83 | MPP7_PEX_RST_OUTn, |
81 | MPP8_TW_SDA, | 84 | MPP8_TW0_SDA, |
82 | MPP9_TW_SCK, | 85 | MPP9_TW0_SCK, |
83 | MPP10_UART0_TXD, | 86 | MPP10_UART0_TXD, |
84 | MPP11_UART0_RXD, | 87 | MPP11_UART0_RXD, |
85 | MPP13_UART1_TXD, /* PIC controller */ | 88 | MPP13_UART1_TXD, /* PIC controller */ |
86 | MPP14_UART1_RXD, /* PIC controller */ | 89 | MPP14_UART1_RXD, /* PIC controller */ |
87 | MPP15_SATA0_ACTn, | 90 | MPP15_SATA0_ACTn, |
88 | MPP16_SATA1_ACTn, | 91 | MPP16_SATA1_ACTn, |
89 | MPP20_GE1_0, | 92 | MPP20_GE1_TXD0, |
90 | MPP21_GE1_1, | 93 | MPP21_GE1_TXD1, |
91 | MPP22_GE1_2, | 94 | MPP22_GE1_TXD2, |
92 | MPP23_GE1_3, | 95 | MPP23_GE1_TXD3, |
93 | MPP24_GE1_4, | 96 | MPP24_GE1_RXD0, |
94 | MPP25_GE1_5, | 97 | MPP25_GE1_RXD1, |
95 | MPP26_GE1_6, | 98 | MPP26_GE1_RXD2, |
96 | MPP27_GE1_7, | 99 | MPP27_GE1_RXD3, |
97 | MPP30_GE1_10, | 100 | MPP30_GE1_RXCTL, |
98 | MPP31_GE1_11, | 101 | MPP31_GE1_RXCLK, |
99 | MPP32_GE1_12, | 102 | MPP32_GE1_TCLKOUT, |
100 | MPP33_GE1_13, | 103 | MPP33_GE1_TXCTL, |
101 | MPP36_GPIO, /* RAM: 0: 256 MB, 1: 512 MB */ | 104 | MPP36_GPIO, /* RAM: 0: 256 MB, 1: 512 MB */ |
102 | MPP37_GPIO, /* Reset button */ | 105 | MPP37_GPIO, /* Reset button */ |
103 | MPP43_GPIO, /* USB Copy button */ | 106 | MPP43_GPIO, /* USB Copy button */ |
104 | MPP44_GPIO, /* Board ID: 0: TS-419U, 1: TS-419 */ | 107 | MPP44_GPIO, /* Board ID: 0: TS-419U, 1: TS-419 */ |
105 | MPP45_GPIO, /* JP1: 0: console, 1: LCD */ | 108 | MPP45_GPIO, /* JP1: 0: LCD, 1: serial console */ |
106 | MPP46_GPIO, /* External SATA HDD1 error indicator */ | 109 | MPP46_GPIO, /* External SATA HDD1 error indicator */ |
107 | MPP47_GPIO, /* External SATA HDD2 error indicator */ | 110 | MPP47_GPIO, /* External SATA HDD2 error indicator */ |
108 | MPP48_GPIO, /* External SATA HDD3 error indicator */ | 111 | MPP48_GPIO, /* External SATA HDD3 error indicator */ |
@@ -131,12 +134,14 @@ 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) |
137 | { | 142 | { |
138 | if (machine_is_ts41x()) | 143 | if (machine_is_ts41x()) |
139 | kirkwood_pcie_init(); | 144 | kirkwood_pcie_init(KW_PCIE0); |
140 | 145 | ||
141 | return 0; | 146 | return 0; |
142 | } | 147 | } |