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
This commit is contained in:
John Crispin 2014-12-13 08:02:52 +00:00
parent e602e40d2c
commit bcb31c4bc7
3 changed files with 13 additions and 0 deletions

View File

@ -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

View File

@ -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

View File

@ -137,4 +137,9 @@
compatible = "gpio-fan";
gpios = <&GPIOA 2 1>;
};
gpio-poweroff {
compatible = "gpio-poweroff";
gpios = <&GPIOA 9 0>;
};
};