spi: slave: Add SPI slave handler reporting uptime at previous message

Add an example SPI slave handler responding with the uptime at the time
of reception of the last SPI message.

This can be used by an external microcontroller as a dead man's switch.

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>
This commit is contained in:
Geert Uytterhoeven
2017-05-22 15:11:44 +02:00
committed by Mark Brown
parent aa2ea9115b
commit 29f9ffa0e1
3 changed files with 136 additions and 0 deletions

View File

@@ -796,6 +796,12 @@ config SPI_SLAVE
if SPI_SLAVE
config SPI_SLAVE_TIME
tristate "SPI slave handler reporting boot up time"
help
SPI slave handler responding with the time of reception of the last
SPI message.
endif # SPI_SLAVE
endif # SPI