aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/rtc/Kconfig
diff options
context:
space:
mode:
authorRob Herring <robh@kernel.org>2015-05-13 10:20:04 -0400
committerAlexandre Belloni <alexandre.belloni@free-electrons.com>2015-09-05 13:37:15 -0400
commit3cdf4ad9633e3ca616617e76b46915c02cba426b (patch)
tree7ddb19a25cc7b4f6ec97690fa9cd908c0d175596 /drivers/rtc/Kconfig
parent8c0961ba7c9356186a0606a391f08e2ecb491a57 (diff)
rtc: pxa: convert to use shared sa1100 functions
Currently, the rtc-sa1100 and rtc-pxa drivers co-exist as rtc-pxa has a superset of functionality. Having 2 drivers sharing the same memory resource is not allowed by the driver model if resources are properly declared. This problem was avoided by not adding memory resources to the SA1100 RTC driver, but that prevents clean-up of the SA1100 driver. This commit converts the PXA RTC to use the exported SA1100 RTC functions. Now the sa1100-rtc and pxa-rtc devices are mutually exclusive, so we must remove the sa1100-rtc from pxa27x and pxa3xx. Signed-off-by: Rob Herring <robh@kernel.org> Cc: Daniel Mack <daniel@zonque.org> Cc: Haojian Zhuang <haojian.zhuang@gmail.com> Cc: Robert Jarzmik <robert.jarzmik@free.fr> Cc: Russell King <linux@arm.linux.org.uk> Cc: Alessandro Zummo <a.zummo@towertech.it> Cc: Alexandre Belloni <alexandre.belloni@free-electrons.com> Cc: linux-arm-kernel@lists.infradead.org Cc: rtc-linux@googlegroups.com Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Diffstat (limited to 'drivers/rtc/Kconfig')
-rw-r--r--drivers/rtc/Kconfig12
1 files changed, 7 insertions, 5 deletions
diff --git a/drivers/rtc/Kconfig b/drivers/rtc/Kconfig
index 35ea04c50a5c..0f65a222a48a 100644
--- a/drivers/rtc/Kconfig
+++ b/drivers/rtc/Kconfig
@@ -1306,11 +1306,13 @@ config RTC_DRV_GENERIC
1306 just say Y. 1306 just say Y.
1307 1307
1308config RTC_DRV_PXA 1308config RTC_DRV_PXA
1309 tristate "PXA27x/PXA3xx" 1309 tristate "PXA27x/PXA3xx"
1310 depends on ARCH_PXA 1310 depends on ARCH_PXA
1311 help 1311 select RTC_DRV_SA1100
1312 If you say Y here you will get access to the real time clock 1312 help
1313 built into your PXA27x or PXA3xx CPU. 1313 If you say Y here you will get access to the real time clock
1314 built into your PXA27x or PXA3xx CPU. This RTC is actually 2 RTCs
1315 consisting of an SA1100 compatible RTC and the extended PXA RTC.
1314 1316
1315 This RTC driver uses PXA RTC registers available since pxa27x 1317 This RTC driver uses PXA RTC registers available since pxa27x
1316 series (RDxR, RYxR) instead of legacy RCNR, RTAR. 1318 series (RDxR, RYxR) instead of legacy RCNR, RTAR.