diff options
author | Geert Uytterhoeven <geert+renesas@glider.be> | 2017-05-22 16:11:44 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2017-05-26 15:12:04 +0300 |
commit | 29f9ffa0e1f9a17c866c04a01acfc9976d78f29a (patch) | |
tree | 93a0373ecab30962f97a0e42e274d38e3c2d1447 /drivers/spi/Kconfig | |
parent | aa2ea9115bc3f0735aa65b833076cc5fe3da1489 (diff) | |
download | linux-29f9ffa0e1f9a17c866c04a01acfc9976d78f29a.tar.xz |
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>
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 df8ddec24b5d..ade542c5bfd8 100644 --- a/drivers/spi/Kconfig +++ b/drivers/spi/Kconfig @@ -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 |