aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/rtc/Kconfig
diff options
context:
space:
mode:
authorKim, Milo <Milo.Kim@ti.com>2012-10-04 20:13:45 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2012-10-05 14:05:01 -0400
commit92589c986b3360ce15d239fd5113a856412a0b3f (patch)
tree8d15272df2c445c6ccbb7b1cd79847cf89b8d94d /drivers/rtc/Kconfig
parent5fa44f86910ca9ee477cbd944c18f9349cdca30d (diff)
rtc-proc: permit the /proc/driver/rtc device to use other devices
To get time information via /proc/driver/rtc, only the first device (rtc0) is used. If the rtcN (eg. rtc1 or rtc2) is used for the system clock, there is no way to get information of rtcN via /proc/driver/rtc. With this patch, the time data can be retrieved from the system clock RTC. If the RTC_HCTOSYS_DEVICE is not defined, then rtc0 is used by default. Signed-off-by: Milo(Woogyom) Kim <milo.kim@ti.com> Cc: Alessandro Zummo <a.zummo@towertech.it> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/rtc/Kconfig')
-rw-r--r--drivers/rtc/Kconfig10
1 files changed, 6 insertions, 4 deletions
diff --git a/drivers/rtc/Kconfig b/drivers/rtc/Kconfig
index fabc99a75c65..a4a805c273bb 100644
--- a/drivers/rtc/Kconfig
+++ b/drivers/rtc/Kconfig
@@ -69,13 +69,15 @@ config RTC_INTF_SYSFS
69 If unsure, say Y. 69 If unsure, say Y.
70 70
71config RTC_INTF_PROC 71config RTC_INTF_PROC
72 boolean "/proc/driver/rtc (procfs for rtc0)" 72 boolean "/proc/driver/rtc (procfs for rtcN)"
73 depends on PROC_FS 73 depends on PROC_FS
74 default RTC_CLASS 74 default RTC_CLASS
75 help 75 help
76 Say yes here if you want to use your first RTC through the proc 76 Say yes here if you want to use your system clock RTC through
77 interface, /proc/driver/rtc. Other RTCs will not be available 77 the proc interface, /proc/driver/rtc.
78 through that API. 78 Other RTCs will not be available through that API.
79 If there is no RTC for the system clock, then the first RTC(rtc0)
80 is used by default.
79 81
80 If unsure, say Y. 82 If unsure, say Y.
81 83