diff options
author | John Crispin <blogic@openwrt.org> | 2014-12-13 08:02:52 +0000 |
---|---|---|
committer | John Crispin <blogic@openwrt.org> | 2014-12-13 08:02:52 +0000 |
commit | bcb31c4bc74ad61dca1f68aa50df03c896d5d4b9 (patch) | |
tree | 5c425a893d2d7c49cf24571b5111b91def04f26d /target/linux | |
parent | e602e40d2c3fa24ba076dd85c643a029f2d52a92 (diff) | |
download | master-187ad058-bcb31c4bc74ad61dca1f68aa50df03c896d5d4b9.tar.gz master-187ad058-bcb31c4bc74ad61dca1f68aa50df03c896d5d4b9.tar.bz2 master-187ad058-bcb31c4bc74ad61dca1f68aa50df03c896d5d4b9.zip |
oxnas: also make use of the GPIO poweroff driver
Works great to power-off the kd20 ;)
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@43677 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux')
-rw-r--r-- | target/linux/oxnas/config-3.14 | 4 | ||||
-rw-r--r-- | target/linux/oxnas/config-3.18 | 4 | ||||
-rw-r--r-- | target/linux/oxnas/files/arch/arm/boot/dts/ox820-kd20.dts | 5 |
3 files changed, 13 insertions, 0 deletions
diff --git a/target/linux/oxnas/config-3.14 b/target/linux/oxnas/config-3.14 index a065363fb3..9b0f3f9617 100644 --- a/target/linux/oxnas/config-3.14 +++ b/target/linux/oxnas/config-3.14 @@ -280,6 +280,10 @@ CONFIG_PM=y CONFIG_PM_CLK=y # CONFIG_PM_DEBUG is not set CONFIG_PM_RUNTIME=y +CONFIG_POWER_RESET=y +CONFIG_POWER_RESET_GPIO=y +# CONFIG_POWER_RESET_VEXPRESS is not set +CONFIG_POWER_SUPPLY=y CONFIG_PPS=y # CONFIG_PREEMPT_RCU is not set CONFIG_PRINTK_TIME=y diff --git a/target/linux/oxnas/config-3.18 b/target/linux/oxnas/config-3.18 index b9172d98c6..e255781dae 100644 --- a/target/linux/oxnas/config-3.18 +++ b/target/linux/oxnas/config-3.18 @@ -293,6 +293,10 @@ CONFIG_PM=y CONFIG_PM_CLK=y # CONFIG_PM_DEBUG is not set CONFIG_PM_RUNTIME=y +CONFIG_POWER_RESET=y +CONFIG_POWER_RESET_GPIO=y +# CONFIG_POWER_RESET_VEXPRESS is not set +CONFIG_POWER_SUPPLY=y CONFIG_PPS=y # CONFIG_PREEMPT_RCU is not set CONFIG_PRINTK_TIME=y diff --git a/target/linux/oxnas/files/arch/arm/boot/dts/ox820-kd20.dts b/target/linux/oxnas/files/arch/arm/boot/dts/ox820-kd20.dts index 79442be346..9375748b91 100644 --- a/target/linux/oxnas/files/arch/arm/boot/dts/ox820-kd20.dts +++ b/target/linux/oxnas/files/arch/arm/boot/dts/ox820-kd20.dts @@ -137,4 +137,9 @@ compatible = "gpio-fan"; gpios = <&GPIOA 2 1>; }; + + gpio-poweroff { + compatible = "gpio-poweroff"; + gpios = <&GPIOA 9 0>; + }; }; |