aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Engelhardt <jengelh@computergmbh.de>2007-07-31 03:39:46 -0400
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-07-31 18:39:44 -0400
commitbb35fb20b591833fe4205def1338e0e808be3216 (patch)
tree21b47b83cb619ac58d3c100f3eb8316137ba7d7b
parent732781daa4fcb31f96028bf26a219e53d256ddd2 (diff)
Use menuconfig objects: RTC
Change Kconfig objects from "menu, config" into "menuconfig" so that the user can disable the whole feature without having to enter the menu first. Signed-off-by: Jan Engelhardt <jengelh@gmx.de> Cc: David Brownell <david-b@pacbell.net> 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>
-rw-r--r--drivers/rtc/Kconfig78
1 files changed, 31 insertions, 47 deletions
diff --git a/drivers/rtc/Kconfig b/drivers/rtc/Kconfig
index 9ed0a98bf565..ff9e35cb308d 100644
--- a/drivers/rtc/Kconfig
+++ b/drivers/rtc/Kconfig
@@ -2,15 +2,13 @@
2# RTC class/drivers configuration 2# RTC class/drivers configuration
3# 3#
4 4
5menu "Real Time Clock"
6 depends on !S390
7
8config RTC_LIB 5config RTC_LIB
9 tristate 6 tristate
10 7
11config RTC_CLASS 8menuconfig RTC_CLASS
12 tristate "RTC class" 9 tristate "Real Time Clock"
13 default n 10 default n
11 depends on !S390
14 select RTC_LIB 12 select RTC_LIB
15 help 13 help
16 Generic RTC class support. If you say yes here, you will 14 Generic RTC class support. If you say yes here, you will
@@ -20,6 +18,8 @@ config RTC_CLASS
20 This driver can also be built as a module. If so, the module 18 This driver can also be built as a module. If so, the module
21 will be called rtc-class. 19 will be called rtc-class.
22 20
21if RTC_CLASS
22
23config RTC_HCTOSYS 23config RTC_HCTOSYS
24 bool "Set system time from RTC on startup and resume" 24 bool "Set system time from RTC on startup and resume"
25 depends on RTC_CLASS = y 25 depends on RTC_CLASS = y
@@ -58,11 +58,10 @@ config RTC_DEBUG
58 and individual RTC drivers. 58 and individual RTC drivers.
59 59
60comment "RTC interfaces" 60comment "RTC interfaces"
61 depends on RTC_CLASS
62 61
63config RTC_INTF_SYSFS 62config RTC_INTF_SYSFS
64 boolean "/sys/class/rtc/rtcN (sysfs)" 63 boolean "/sys/class/rtc/rtcN (sysfs)"
65 depends on RTC_CLASS && SYSFS 64 depends on SYSFS
66 default RTC_CLASS 65 default RTC_CLASS
67 help 66 help
68 Say yes here if you want to use your RTCs using sysfs interfaces, 67 Say yes here if you want to use your RTCs using sysfs interfaces,
@@ -73,7 +72,7 @@ config RTC_INTF_SYSFS
73 72
74config RTC_INTF_PROC 73config RTC_INTF_PROC
75 boolean "/proc/driver/rtc (procfs for rtc0)" 74 boolean "/proc/driver/rtc (procfs for rtc0)"
76 depends on RTC_CLASS && PROC_FS 75 depends on PROC_FS
77 default RTC_CLASS 76 default RTC_CLASS
78 help 77 help
79 Say yes here if you want to use your first RTC through the proc 78 Say yes here if you want to use your first RTC through the proc
@@ -85,7 +84,6 @@ config RTC_INTF_PROC
85 84
86config RTC_INTF_DEV 85config RTC_INTF_DEV
87 boolean "/dev/rtcN (character devices)" 86 boolean "/dev/rtcN (character devices)"
88 depends on RTC_CLASS
89 default RTC_CLASS 87 default RTC_CLASS
90 help 88 help
91 Say yes here if you want to use your RTCs using the /dev 89 Say yes here if you want to use your RTCs using the /dev
@@ -107,7 +105,6 @@ config RTC_INTF_DEV_UIE_EMUL
107 105
108config RTC_DRV_TEST 106config RTC_DRV_TEST
109 tristate "Test driver/device" 107 tristate "Test driver/device"
110 depends on RTC_CLASS
111 help 108 help
112 If you say yes here you get support for the 109 If you say yes here you get support for the
113 RTC test driver. It's a software RTC which can be 110 RTC test driver. It's a software RTC which can be
@@ -121,11 +118,12 @@ config RTC_DRV_TEST
121 will be called rtc-test. 118 will be called rtc-test.
122 119
123comment "I2C RTC drivers" 120comment "I2C RTC drivers"
124 depends on RTC_CLASS && I2C 121 depends on I2C
122
123if I2C
125 124
126config RTC_DRV_DS1307 125config RTC_DRV_DS1307
127 tristate "Dallas/Maxim DS1307/37/38/39/40, ST M41T00" 126 tristate "Dallas/Maxim DS1307/37/38/39/40, ST M41T00"
128 depends on RTC_CLASS && I2C
129 help 127 help
130 If you say yes here you get support for various compatible RTC 128 If you say yes here you get support for various compatible RTC
131 chips (often with battery backup) connected with I2C. This driver 129 chips (often with battery backup) connected with I2C. This driver
@@ -143,7 +141,6 @@ config RTC_DRV_DS1307
143 141
144config RTC_DRV_DS1672 142config RTC_DRV_DS1672
145 tristate "Dallas/Maxim DS1672" 143 tristate "Dallas/Maxim DS1672"
146 depends on RTC_CLASS && I2C
147 help 144 help
148 If you say yes here you get support for the 145 If you say yes here you get support for the
149 Dallas/Maxim DS1672 timekeeping chip. 146 Dallas/Maxim DS1672 timekeeping chip.
@@ -153,7 +150,6 @@ config RTC_DRV_DS1672
153 150
154config RTC_DRV_MAX6900 151config RTC_DRV_MAX6900
155 tristate "Maxim 6900" 152 tristate "Maxim 6900"
156 depends on RTC_CLASS && I2C
157 help 153 help
158 If you say yes here you will get support for the 154 If you say yes here you will get support for the
159 Maxim MAX6900 I2C RTC chip. 155 Maxim MAX6900 I2C RTC chip.
@@ -163,7 +159,6 @@ config RTC_DRV_MAX6900
163 159
164config RTC_DRV_RS5C372 160config RTC_DRV_RS5C372
165 tristate "Ricoh RS5C372A/B, RV5C386, RV5C387A" 161 tristate "Ricoh RS5C372A/B, RV5C386, RV5C387A"
166 depends on RTC_CLASS && I2C
167 help 162 help
168 If you say yes here you get support for the 163 If you say yes here you get support for the
169 Ricoh RS5C372A, RS5C372B, RV5C386, and RV5C387A RTC chips. 164 Ricoh RS5C372A, RS5C372B, RV5C386, and RV5C387A RTC chips.
@@ -173,7 +168,6 @@ config RTC_DRV_RS5C372
173 168
174config RTC_DRV_ISL1208 169config RTC_DRV_ISL1208
175 tristate "Intersil 1208" 170 tristate "Intersil 1208"
176 depends on RTC_CLASS && I2C
177 help 171 help
178 If you say yes here you get support for the 172 If you say yes here you get support for the
179 Intersil 1208 RTC chip. 173 Intersil 1208 RTC chip.
@@ -183,7 +177,6 @@ config RTC_DRV_ISL1208
183 177
184config RTC_DRV_X1205 178config RTC_DRV_X1205
185 tristate "Xicor/Intersil X1205" 179 tristate "Xicor/Intersil X1205"
186 depends on RTC_CLASS && I2C
187 help 180 help
188 If you say yes here you get support for the 181 If you say yes here you get support for the
189 Xicor/Intersil X1205 RTC chip. 182 Xicor/Intersil X1205 RTC chip.
@@ -193,7 +186,6 @@ config RTC_DRV_X1205
193 186
194config RTC_DRV_PCF8563 187config RTC_DRV_PCF8563
195 tristate "Philips PCF8563/Epson RTC8564" 188 tristate "Philips PCF8563/Epson RTC8564"
196 depends on RTC_CLASS && I2C
197 help 189 help
198 If you say yes here you get support for the 190 If you say yes here you get support for the
199 Philips PCF8563 RTC chip. The Epson RTC8564 191 Philips PCF8563 RTC chip. The Epson RTC8564
@@ -204,7 +196,6 @@ config RTC_DRV_PCF8563
204 196
205config RTC_DRV_PCF8583 197config RTC_DRV_PCF8583
206 tristate "Philips PCF8583" 198 tristate "Philips PCF8583"
207 depends on RTC_CLASS && I2C
208 help 199 help
209 If you say yes here you get support for the Philips PCF8583 200 If you say yes here you get support for the Philips PCF8583
210 RTC chip found on Acorn RiscPCs. This driver supports the 201 RTC chip found on Acorn RiscPCs. This driver supports the
@@ -217,7 +208,6 @@ config RTC_DRV_PCF8583
217 208
218config RTC_DRV_M41T80 209config RTC_DRV_M41T80
219 tristate "ST M41T80 series RTC" 210 tristate "ST M41T80 series RTC"
220 depends on RTC_CLASS && I2C
221 help 211 help
222 If you say Y here you will get support for the 212 If you say Y here you will get support for the
223 ST M41T80 RTC chips series. Currently following chips are 213 ST M41T80 RTC chips series. Currently following chips are
@@ -236,19 +226,21 @@ config RTC_DRV_M41T80_WDT
236 226
237config RTC_DRV_TWL92330 227config RTC_DRV_TWL92330
238 boolean "TI TWL92330/Menelaus" 228 boolean "TI TWL92330/Menelaus"
239 depends on RTC_CLASS && I2C && MENELAUS 229 depends on MENELAUS
240 help 230 help
241 If you say yes here you get support for the RTC on the 231 If you say yes here you get support for the RTC on the
242 TWL92330 "Menelaus" power mangement chip, used with OMAP2 232 TWL92330 "Menelaus" power mangement chip, used with OMAP2
243 platforms. The support is integrated with the rest of 233 platforms. The support is integrated with the rest of
244 the Menelaus driver; it's not separate module. 234 the Menelaus driver; it's not separate module.
245