Commit 4350a47b authored by Andrew Lunn's avatar Andrew Lunn Committed by Jason Cooper

ARM: Kirkwood: Make use of the QNAP Power off driver.

Add a node into the DT binding and remove C code.
Signed-off-by: default avatarAndrew Lunn <andrew@lunn.ch>
Signed-off-by: default avatarJason Cooper <jason@lakedaemon.net>
parent 193da78b
...@@ -31,6 +31,11 @@ serial@12100 { ...@@ -31,6 +31,11 @@ serial@12100 {
clock-frequency = <200000000>; clock-frequency = <200000000>;
status = "okay"; status = "okay";
}; };
poweroff@12100 {
compatible = "qnap,power-off";
reg = <0x12000 0x100>;
clocks = <&gate_clk 7>;
};
spi@10600 { spi@10600 {
status = "okay"; status = "okay";
......
...@@ -315,6 +315,7 @@ config MACH_TS219_DT ...@@ -315,6 +315,7 @@ config MACH_TS219_DT
select ARCH_KIRKWOOD_DT select ARCH_KIRKWOOD_DT
select ARM_APPENDED_DTB select ARM_APPENDED_DTB
select ARM_ATAG_DTB_COMPAT select ARM_ATAG_DTB_COMPAT
select POWER_RESET_QNAP
help help
Say 'Y' here if you want your kernel to support the QNAP Say 'Y' here if you want your kernel to support the QNAP
TS-110, TS-119, TS-119P+, TS-210, TS-219, TS-219P and TS-110, TS-119, TS-119P+, TS-210, TS-219, TS-219P and
......
...@@ -23,7 +23,6 @@ ...@@ -23,7 +23,6 @@
#include <asm/mach/arch.h> #include <asm/mach/arch.h>
#include <mach/kirkwood.h> #include <mach/kirkwood.h>
#include "common.h" #include "common.h"
#include "tsx1x-common.h"
static struct mv643xx_eth_platform_data qnap_ts219_ge00_data = { static struct mv643xx_eth_platform_data qnap_ts219_ge00_data = {
.phy_addr = MV643XX_ETH_PHY_ADDR(8), .phy_addr = MV643XX_ETH_PHY_ADDR(8),
...@@ -38,8 +37,6 @@ void __init qnap_dt_ts219_init(void) ...@@ -38,8 +37,6 @@ void __init qnap_dt_ts219_init(void)
qnap_ts219_ge00_data.phy_addr = MV643XX_ETH_PHY_ADDR(0); qnap_ts219_ge00_data.phy_addr = MV643XX_ETH_PHY_ADDR(0);
kirkwood_ge00_init(&qnap_ts219_ge00_data); kirkwood_ge00_init(&qnap_ts219_ge00_data);
pm_power_off = qnap_tsx1x_power_off;
} }
/* FIXME: Will not work with DT. Maybe use MPP40_GPIO? */ /* FIXME: Will not work with DT. Maybe use MPP40_GPIO? */
......
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