OSDN Git Service

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)
commit7cd1acaeea4e72e2926c23ac8db5ab376b2819a4
tree414c4041e89ed22b49bf898cbcc5408da256cd25
parent403a3c3dd0ec93c2504b94667d16485729fc0393
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