rtc: sun6i: Add NVMEM provider
authorSamuel Holland <samuel@sholland.org>
Wed, 13 Apr 2022 23:17:30 +0000 (18:17 -0500)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Tue, 17 May 2022 20:49:24 +0000 (22:49 +0200)
commit581d6d8f483696ff164f52a71beb43a87b718592
treea7bc68b0707255ab94da6b3626cb85af881299fc
parent3123109284176b1532874591f7c81f3837bbdc17
rtc: sun6i: Add NVMEM provider

The sun6i RTC provides 32 bytes of general-purpose data registers.
They can be used to save data in the always-on RTC power domain.
The registers are writable via 32-bit MMIO accesses only.

Expose them with a NVMEM provider so they can be used by other drivers.

Signed-off-by: Samuel Holland <samuel@sholland.org>
Acked-by: Jernej Skrabec <jernej.skrabec@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Link: https://lore.kernel.org/r/20220413231731.56709-1-samuel@sholland.org
drivers/rtc/rtc-sun6i.c