rtc: omap: Support scratch registers
authorAlexandre Belloni <alexandre.belloni@free-electrons.com>
Tue, 31 Oct 2017 16:27:31 +0000 (17:27 +0100)
committerAlexandre Belloni <alexandre.belloni@free-electrons.com>
Wed, 8 Nov 2017 06:52:15 +0000 (07:52 +0100)
commitb6ee15efe6788113c4184843365f74fde08e6284
tree64ac32053e7ec187752e19e92e6b86ef897d1de9
parent57072758623fa4f3019bce65e2b00f24af8dfdd7
rtc: omap: Support scratch registers

Register an nvmem device to expose the 3 scratch registers (total of 12
bytes) to both userspace and kernel space.

Reviewed-by: Sekhar Nori <nsekhar@ti.com>
Tested-by: Keerthy <j-keerthy@ti.com>
Reviewed-by: Keerthy <j-keerthy@ti.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
drivers/rtc/rtc-omap.c