]> git.baikalelectronics.ru Git - kernel.git/commit
rtc: sa1100/pxa: convert to run-time register mapping
authorRob Herring <robh@kernel.org>
Tue, 3 Feb 2015 20:44:51 +0000 (14:44 -0600)
committerAlexandre Belloni <alexandre.belloni@free-electrons.com>
Sat, 5 Sep 2015 17:37:16 +0000 (19:37 +0200)
commita652aa8259c1e284447a8a2d189d70785e5658f0
treea30d02f925242015987afc043f1cdecfb67cead0
parent19348d740ff6b984b2f9e724fb4f5e5cc9f58a1b
rtc: sa1100/pxa: convert to run-time register mapping

SA1100 and PXA differ only in register offsets which are currently
hardcoded in a machine specific header. Some arm64 platforms (PXA1928)
have this RTC block as well (and not the PXA270 variant).

Convert the driver to use ioremap and set the register offsets dynamically.
Since we are touching all the register accesses, convert them all to
readl_relaxed/writel_relaxed.

Signed-off-by: Rob Herring <robh@kernel.org>
Acked-by: Robert Jarzmik <robert.jarzmik@free.fr>
Cc: Alessandro Zummo <a.zummo@towertech.it>
Cc: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Cc: rtc-linux@googlegroups.com
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
drivers/rtc/rtc-pxa.c
drivers/rtc/rtc-sa1100.c
drivers/rtc/rtc-sa1100.h