oxnas: also make use of the GPIO poweroff driver
Works great to power-off the kd20 ;) Signed-off-by: Daniel Golle <daniel@makrotopia.org> SVN-Revision: 43677
This commit is contained in:
parent
4a7c88f139
commit
9013a144fd
3 changed files with 13 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -137,4 +137,9 @@
|
|||
compatible = "gpio-fan";
|
||||
gpios = <&GPIOA 2 1>;
|
||||
};
|
||||
|
||||
gpio-poweroff {
|
||||
compatible = "gpio-poweroff";
|
||||
gpios = <&GPIOA 9 0>;
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue