aboutsummaryrefslogtreecommitdiff
path: root/drivers/spi/spi-slave-time.c
AgeCommit message (Collapse)AuthorFilesLines
2017-05-26spi: slave: Add SPI slave handler reporting uptime at previous messageGeert Uytterhoeven1-0/+129
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 <[email protected]> Reviewed-by: Andy Shevchenko <[email protected]> Signed-off-by: Mark Brown <[email protected]>