]> git.baikalelectronics.ru Git - kernel.git/commit
rtc: rs5c372: fix incorrect oscillation value on r2221tl
authorCamel Guo <camelg@axis.com>
Mon, 6 Dec 2021 12:58:31 +0000 (13:58 +0100)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Tue, 4 Jan 2022 23:52:10 +0000 (00:52 +0100)
commit08c1b5f951a8a45cedd6343e6e28cd05bfd5dae0
tree4767a3897954fb5f369db299cea20a2880ef2a64
parentaa158e913a6ca3abbcbbf5e3f1506465ba9fc653
rtc: rs5c372: fix incorrect oscillation value on r2221tl

The XSL bit only exists in RS5C372A/B. On other Ricoh RTC chips
supported in rs5c372, this bit has different meaning. For example, on
R2221x and R2223x, this bit of oscillation adjustment register
determines the operation frequency of oscillation adjustment circuit and
the oscillation is always 32768HZ. But rs5c372_get_trim gives 32000HZ to
osc when DEV is 1.

Signed-off-by: Camel Guo <camelg@axis.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Link: https://lore.kernel.org/r/20211206125832.6461-1-camel.guo@axis.com
drivers/rtc/rtc-rs5c372.c