aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm
diff options
context:
space:
mode:
authorAndrew Lunn <andrew@lunn.ch>2012-12-28 07:25:10 -0500
committerJason Cooper <jason@lakedaemon.net>2013-05-25 21:12:02 -0400
commit4350a47bbac3f90c724d565d7b895262f454d0c3 (patch)
treef38246acfd6410dd242b9f628bf20bce258ee6bf /arch/arm
parent193da78bec1b510ab0a743348a7e9a2c24766268 (diff)
ARM: Kirkwood: Make use of the QNAP Power off driver.
Add a node into the DT binding and remove C code. Signed-off-by: Andrew Lunn <andrew@lunn.ch> Signed-off-by: Jason Cooper <jason@lakedaemon.net>
Diffstat (limited to 'arch/arm')
-rw-r--r--arch/arm/boot/dts/kirkwood-ts219.dtsi5
-rw-r--r--arch/arm/mach-kirkwood/Kconfig1
-rw-r--r--arch/arm/mach-kirkwood/board-ts219.c3
3 files changed, 6 insertions, 3 deletions
diff --git a/arch/arm/boot/dts/kirkwood-ts219.dtsi b/arch/arm/boot/dts/kirkwood-ts219.dtsi
index 64ea27cb3298..4e29460baf04 100644
--- a/arch/arm/boot/dts/kirkwood-ts219.dtsi
+++ b/arch/arm/boot/dts/kirkwood-ts219.dtsi
@@ -31,6 +31,11 @@
31 clock-frequency = <200000000>; 31 clock-frequency = <200000000>;
32 status = "okay"; 32 status = "okay";
33 }; 33 };
34 poweroff@12100 {
35 compatible = "qnap,power-off";
36 reg = <0x12000 0x100>;
37 clocks = <&gate_clk 7>;
38 };
34 spi@10600 { 39 spi@10600 {
35 status = "okay"; 40 status = "okay";
36 41
diff --git a/arch/arm/mach-kirkwood/Kconfig b/arch/arm/mach-kirkwood/Kconfig
index 58518a2a68f9..e12376b60b1b 100644
--- a/arch/arm/mach-kirkwood/Kconfig
+++ b/arch/arm/mach-kirkwood/Kconfig
@@ -315,6 +315,7 @@ config MACH_TS219_DT
315 select ARCH_KIRKWOOD_DT 315 select ARCH_KIRKWOOD_DT
316 select ARM_APPENDED_DTB 316 select ARM_APPENDED_DTB
317 select ARM_ATAG_DTB_COMPAT 317 select ARM_ATAG_DTB_COMPAT
318 select POWER_RESET_QNAP
318 help 319 help
319 Say 'Y' here if you want your kernel to support the QNAP 320 Say 'Y' here if you want your kernel to support the QNAP
320 TS-110, TS-119, TS-119P+, TS-210, TS-219, TS-219P and 321 TS-110, TS-119, TS-119P+, TS-210, TS-219, TS-219P and
diff --git a/arch/arm/mach-kirkwood/board-ts219.c b/arch/arm/mach-kirkwood/board-ts219.c
index acb0187c7ee1..10fb3974de5a 100644
--- a/arch/arm/mach-kirkwood/board-ts219.c
+++ b/arch/arm/mach-kirkwood/board-ts219.c
@@ -23,7 +23,6 @@
23#include <asm/mach/arch.h> 23#include <asm/mach/arch.h>
24#include <mach/kirkwood.h> 24#include <mach/kirkwood.h>
25#include "common.h" 25#include "common.h"
26#include "tsx1x-common.h"
27 26
28static struct mv643xx_eth_platform_data qnap_ts219_ge00_data = { 27static struct mv643xx_eth_platform_data qnap_ts219_ge00_data = {
29 .phy_addr = MV643XX_ETH_PHY_ADDR(8), 28 .phy_addr = MV643XX_ETH_PHY_ADDR(8),
@@ -38,8 +37,6 @@ void __init qnap_dt_ts219_init(void)
38 qnap_ts219_ge00_data.phy_addr = MV643XX_ETH_PHY_ADDR(0); 37 qnap_ts219_ge00_data.phy_addr = MV643XX_ETH_PHY_ADDR(0);
39 38
40 kirkwood_ge00_init(&qnap_ts219_ge00_data); 39 kirkwood_ge00_init(&qnap_ts219_ge00_data);
41
42 pm_power_off = qnap_tsx1x_power_off;
43} 40}
44 41
45/* FIXME: Will not work with DT. Maybe use MPP40_GPIO? */ 42/* FIXME: Will not work with DT. Maybe use MPP40_GPIO? */