From: John Crispin Date: Sat, 13 Dec 2014 08:02:52 +0000 (+0000) Subject: oxnas: also make use of the GPIO poweroff driver X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=9013a144fd4fb3b5e9e38948f85650a961053d45;p=openwrt%2Fstaging%2Faparcar.git oxnas: also make use of the GPIO poweroff driver Works great to power-off the kd20 ;) Signed-off-by: Daniel Golle SVN-Revision: 43677 --- 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>; + }; };