aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/rtc
diff options
context:
space:
mode:
authorDavid Brownell <david-b@pacbell.net>2006-10-01 02:28:14 -0400
committerLinus Torvalds <torvalds@g5.osdl.org>2006-10-01 03:39:25 -0400
commit9e86ecb659f11b36b5e189214b19cb31ef5dfd72 (patch)
tree4442ea511c962765fa06c2ae65b301caaa65d542 /drivers/rtc
parent0847062ad57e6d2d77875104d66f413a89769809 (diff)
[PATCH] RTC class: Kconfig improvements
Small updates to make the RTC class Kconfig text be more informative. This should help folk used to the drivers/char/rtc.c support, or a single RTC, be slightly less surprised by the differences. Also, adds a new RTC_DEBUG option to predefine DEBUG in the framework and its drivers, while debugging. That's getting to be a standard idiom, and it's pretty useful. Signed-off-by: David Brownell <dbrownell@users.sourceforge.net> Cc: Alessandro Zummo <a.zummo@towertech.it> Acked-by: Oleg Verych <olecom@flower.upol.cz> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/rtc')
-rw-r--r--drivers/rtc/Kconfig26
-rw-r--r--drivers/rtc/Makefile4
2 files changed, 23 insertions, 7 deletions
diff --git a/drivers/rtc/Kconfig b/drivers/rtc/Kconfig
index 62c804af9fbe..fc766a7a611e 100644
--- a/drivers/rtc/Kconfig
+++ b/drivers/rtc/Kconfig
@@ -37,6 +37,13 @@ config RTC_HCTOSYS_DEVICE
37 The RTC device that will be used as the source for 37 The RTC device that will be used as the source for
38 the system time, usually rtc0. 38 the system time, usually rtc0.
39 39
40config RTC_DEBUG
41 bool "RTC debug support"
42 depends on RTC_CLASS = y
43 help
44 Say yes here to enable debugging support in the RTC framework
45 and individual RTC drivers.
46
40comment "RTC interfaces" 47comment "RTC interfaces"
41 depends on RTC_CLASS 48 depends on RTC_CLASS
42 49
@@ -45,8 +52,8 @@ config RTC_INTF_SYSFS
45 depends on RTC_CLASS && SYSFS 52 depends on RTC_CLASS && SYSFS
46 default RTC_CLASS 53 default RTC_CLASS
47 help 54 help
48 Say yes here if you want to use your RTC using the sysfs 55 Say yes here if you want to use your RTCs using sysfs interfaces,
49 interface, /sys/class/rtc/rtcX . 56 /sys/class/rtc/rtc0 through /sys/.../rtcN.
50 57
51 This driver can also be built as a module. If so, the module 58 This driver can also be built as a module. If so, the module
52 will be called rtc-sysfs. 59 will be called rtc-sysfs.
@@ -56,8 +63,9 @@ config RTC_INTF_PROC
56 depends on RTC_CLASS && PROC_FS 63 depends on RTC_CLASS && PROC_FS
57 default RTC_CLASS 64 default RTC_CLASS
58 help 65 help
59 Say yes here if you want to use your RTC using the proc 66 Say yes here if you want to use your first RTC through the proc
60 interface, /proc/driver/rtc . 67 interface, /proc/driver/rtc. Other RTCs will not be available
68 through that API.
61 69
62 This driver can also be built as a module. If so, the module 70 This driver can also be built as a module. If so, the module
63 will be called rtc-proc. 71 will be called rtc-proc.
@@ -67,8 +75,11 @@ config RTC_INTF_DEV
67 depends on RTC_CLASS 75 depends on RTC_CLASS
68 default RTC_CLASS 76 default RTC_CLASS
69 help 77 help
70 Say yes here if you want to use your RTC using the dev 78 Say yes here if you want to use your RTCs using the /dev
71 interface, /dev/rtc . 79 interfaces, which "udev" sets up as /dev/rtc0 through
80 /dev/rtcN. You may want to set up a symbolic link so one
81 of these can be accessed as /dev/rtc, which is a name
82 expected by "hwclock" and some other programs.
72 83
73 This driver can also be built as a module. If so, the module 84 This driver can also be built as a module. If so, the module
74 will be called rtc-dev. 85 will be called rtc-dev.
@@ -78,7 +89,8 @@ config RTC_INTF_DEV_UIE_EMUL
78 depends on RTC_INTF_DEV 89 depends on RTC_INTF_DEV
79 help 90 help
80 Provides an emulation for RTC_UIE if the underlaying rtc chip 91 Provides an emulation for RTC_UIE if the underlaying rtc chip
81 driver did not provide RTC_UIE ioctls. 92 driver does not expose RTC_UIE ioctls. Those requests generate
93 once-per-second update interrupts, used for synchronization.
82 94
83comment "RTC drivers" 95comment "RTC drivers"
84 depends on RTC_CLASS 96 depends on RTC_CLASS
diff --git a/drivers/rtc/Makefile b/drivers/rtc/Makefile
index e72d467ab214..3ba5ff6e6800 100644
--- a/drivers/rtc/Makefile
+++ b/drivers/rtc/Makefile
@@ -2,6 +2,10 @@
2# Makefile for RTC class/drivers. 2# Makefile for RTC class/drivers.
3# 3#
4 4
5ifeq ($(CONFIG_RTC_DEBUG),y)
6 EXTRA_CFLAGS += -DDEBUG
7endif
8
5obj-$(CONFIG_RTC_LIB) += rtc-lib.o 9obj-$(CONFIG_RTC_LIB) += rtc-lib.o
6obj-$(CONFIG_RTC_HCTOSYS) += hctosys.o 10obj-$(CONFIG_RTC_HCTOSYS) += hctosys.o
7obj-$(CONFIG_RTC_CLASS) += rtc-core.o 11obj-$(CONFIG_RTC_CLASS) += rtc-core.o