rtc: jz4740: Add support for the RTC in the jz4780 SoC
authorPaul Cercueil <paul@crapouillou.net>
Mon, 31 Oct 2016 20:39:45 +0000 (21:39 +0100)
committerAlexandre Belloni <alexandre.belloni@free-electrons.com>
Fri, 4 Nov 2016 22:48:39 +0000 (23:48 +0100)
commitcd563200c090de628eb71c7478f272eaedc6fa4d
tree6301171bdc3d2fc295972f70acb596080e9f05ee
parent8b6102534cef64624caca7eb0a15e83f5ab9864c
rtc: jz4740: Add support for the RTC in the jz4780 SoC

The RTC unit present in the JZ4780 works mostly the same as the one in
the JZ4740. The major difference is that register writes need to be
explicitly enabled, by writing a magic code (0xA55A) to a "write
enable" register before each access.

Signed-off-by: Paul Cercueil <paul@crapouillou.net>
Acked-by: Maarten ter Huurne <maarten@treewalker.org>
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
drivers/rtc/Kconfig
drivers/rtc/rtc-jz4740.c