summaryrefslogtreecommitdiffstats
path: root/drivers/rtc/Kconfig
diff options
context:
space:
mode:
authorAntony Pavlov <antonynpavlov@gmail.com>2014-07-30 00:10:19 +0400
committerSascha Hauer <s.hauer@pengutronix.de>2014-08-02 06:45:43 +0200
commit686df208b304ea6a8970005aa58c9e112dd68cb3 (patch)
tree4307320cf18cb670b4750ffc8830c14a1c52b32f /drivers/rtc/Kconfig
parent14963b8c461b9d1c310554b414238a6e97d1a8c0 (diff)
downloadbarebox-686df208b304ea6a8970005aa58c9e112dd68cb3.tar.gz
barebox-686df208b304ea6a8970005aa58c9e112dd68cb3.tar.xz
rtc: import ds1307 driver from linux-3.15
Current ds1307 rtc driver supports only ds1307 and ds1338 chips; it has no nvram support at the moment. Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/rtc/Kconfig')
-rw-r--r--drivers/rtc/Kconfig22
1 files changed, 22 insertions, 0 deletions
diff --git a/drivers/rtc/Kconfig b/drivers/rtc/Kconfig
index 540150373d..c2b3764a3d 100644
--- a/drivers/rtc/Kconfig
+++ b/drivers/rtc/Kconfig
@@ -13,3 +13,25 @@ menuconfig RTC_CLASS
Generic RTC class support. If you say yes here, you will
be allowed to plug one or more RTCs to your system. You will
probably want to enable one or more of the interfaces below.
+
+if RTC_CLASS
+
+comment "I2C RTC drivers"
+ depends on I2C
+
+if I2C
+
+config RTC_DRV_DS1307
+ tristate "Dallas/Maxim DS1307/38"
+ help
+ If you say yes here you get support for various compatible RTC
+ chips (often with battery backup) connected with I2C. This driver
+ should handle DS1307, DS1338 and probably other chips.
+
+ The first seven registers on these chips hold an RTC, and other
+ registers may add features such as NVRAM, a trickle charger for
+ the RTC/NVRAM backup power, and alarms.
+
+endif # I2C
+
+endif # RTC_CLASS