]> git.baikalelectronics.ru Git - kernel.git/commit
rtc: sun6i: Add support for all known pre-H6 variants
authorChen-Yu Tsai <wens@csie.org>
Mon, 3 Dec 2018 14:58:18 +0000 (22:58 +0800)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Thu, 6 Dec 2018 17:13:44 +0000 (18:13 +0100)
commit25a78585e292e64d46d8995f5397426a2579c8a5
tree414c4041e89ed22b49bf898cbcc5408da256cd25
parent26bf1c0ed6c78e7b02306af34f3e18f1a3dfb95d
rtc: sun6i: Add support for all known pre-H6 variants

There are different variants to the RTC hardware first seen on sun6i
(A31). The differences we care about in this driver are the clock rate
for the internal oscillator, prescalers, and the presence of an external
clock output.

This patch adds support for all the known pre-H6 base compatibles using
the variants data structure previously introduced.

Acked-by: Maxime Ripard <maxime.ripard@bootlin.com>
Tested-by: Corentin Labbe <clabbe.montjoie@gmail.com>
Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/rtc/rtc-sun6i.c