diff options
Diffstat (limited to 'include/linux/rtc')
-rw-r--r-- | include/linux/rtc/ds1307.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/include/linux/rtc/ds1307.h b/include/linux/rtc/ds1307.h new file mode 100644 index 000000000000..291b1c490367 --- /dev/null +++ b/include/linux/rtc/ds1307.h | |||
@@ -0,0 +1,22 @@ | |||
1 | /* | ||
2 | * ds1307.h - platform_data for the ds1307 (and variants) rtc driver | ||
3 | * (C) Copyright 2012 by Wolfram Sang, Pengutronix e.K. | ||
4 | * same license as the driver | ||
5 | */ | ||
6 | |||
7 | #ifndef _LINUX_DS1307_H | ||
8 | #define _LINUX_DS1307_H | ||
9 | |||
10 | #include <linux/types.h> | ||
11 | |||
12 | #define DS1307_TRICKLE_CHARGER_250_OHM 0x01 | ||
13 | #define DS1307_TRICKLE_CHARGER_2K_OHM 0x02 | ||
14 | #define DS1307_TRICKLE_CHARGER_4K_OHM 0x03 | ||
15 | #define DS1307_TRICKLE_CHARGER_NO_DIODE 0x04 | ||
16 | #define DS1307_TRICKLE_CHARGER_DIODE 0x08 | ||
17 | |||
18 | struct ds1307_platform_data { | ||
19 | u8 trickle_charger_setup; | ||
20 | }; | ||
21 | |||
22 | #endif /* _LINUX_DS1307_H */ | ||