diff options
author | Geert Uytterhoeven <geert+renesas@glider.be> | 2017-05-22 15:11:45 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2017-05-26 14:12:19 +0200 |
commit | ce70e06c093a9609377e93ee20e7c528e156af14 (patch) | |
tree | 1d848c5d6a61ce975bd201c24622e2779c62309b /drivers/spi/Kconfig | |
parent | spi: slave: Add SPI slave handler reporting uptime at previous message (diff) | |
download | linux-ce70e06c093a9609377e93ee20e7c528e156af14.tar.xz linux-ce70e06c093a9609377e93ee20e7c528e156af14.zip |
spi: slave: Add SPI slave handler controlling system state
Add an example SPI slave handler to allow remote control of system
reboot, power off, halt, and suspend.
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/spi/Kconfig')
-rw-r--r-- | drivers/spi/Kconfig | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/spi/Kconfig b/drivers/spi/Kconfig index ade542c5bfd8..e6d9e329a380 100644 --- a/drivers/spi/Kconfig +++ b/drivers/spi/Kconfig @@ -802,6 +802,12 @@ config SPI_SLAVE_TIME SPI slave handler responding with the time of reception of the last SPI message. +config SPI_SLAVE_SYSTEM_CONTROL + tristate "SPI slave handler controlling system state" + help + SPI slave handler to allow remote control of system reboot, power + off, halt, and suspend. + endif # SPI_SLAVE endif # SPI |