power/reset: Add a new driver to turn QNAP board power off

The QNAP NAS boxes have a microcontroller attached to the SoCs second
serial port. By sending it a simple command, it will turn the power for
the board off. This driver registers a function for pm_power_off to send
such a command.

Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Anton Vorontsov <anton@enomsg.org>
此提交包含在:
Andrew Lunn
2012-12-28 13:25:09 +01:00
提交者 Anton Vorontsov
父節點 22f1229fe9
當前提交 e8fc721a9a
共有 4 個檔案被更改,包括 139 行新增0 行删除

查看文件

@@ -13,3 +13,12 @@ config POWER_RESET_GPIO
This driver supports turning off your board via a GPIO line.
If your board needs a GPIO high/low to power down, say Y and
create a binding in your devicetree.
config POWER_RESET_QNAP
bool "QNAP power-off driver"
depends on OF_GPIO && POWER_RESET && PLAT_ORION
help
This driver supports turning off QNAP NAS devices by sending
commands to the microcontroller which controls the main power.
Say Y if you have a QNAP NAS.