spi: slave: Add SPI slave handler controlling system state
authorGeert Uytterhoeven <geert+renesas@glider.be>
Mon, 22 May 2017 13:11:45 +0000 (15:11 +0200)
committerMark Brown <broonie@kernel.org>
Fri, 26 May 2017 12:12:19 +0000 (13:12 +0100)
commitce70e06c093a9609377e93ee20e7c528e156af14
tree1d848c5d6a61ce975bd201c24622e2779c62309b
parent29f9ffa0e1f9a17c866c04a01acfc9976d78f29a
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>
drivers/spi/Kconfig
drivers/spi/Makefile
drivers/spi/spi-slave-system-control.c [new file with mode: 0644]