diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2016-08-05 09:48:22 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2016-08-05 09:48:22 -0400 |
| commit | 6c84239d595dc6ffe39f0f03dae2f64ed200db95 (patch) | |
| tree | 3aea4368a644be16e44612c964aa26152854e1ae /include/linux | |
| parent | d4c06c708123c652025d04fe77b7e39448077395 (diff) | |
| parent | 6f367788d6333a41fefd013975b0b160d5c0a1c8 (diff) | |
Merge tag 'rtc-4.8' of git://git.kernel.org/pub/scm/linux/kernel/git/abelloni/linux
Pull RTC updates from Alexandre Belloni:
"RTC for 4.8
Cleanups:
- huge cleanup of rtc-generic and char/genrtc this allowed to cleanup
rtc-cmos, rtc-sh, rtc-m68k, rtc-powerpc and rtc-parisc
- move mn10300 to rtc-cmos
Subsystem:
- fix wakealarms after hibernate
- multiples fixes for rctest
- simplify implementations of .read_alarm
New drivers:
- Maxim MAX6916
Drivers:
- ds1307: fix weekday
- m41t80: add wakeup support
- pcf85063: add support for PCF85063A variant
- rv8803: extend i2c fix and other fixes
- s35390a: fix alarm reading, this fixes instant reboot after
shutdown for QNAP TS-41x
- s3c: clock fixes"
* tag 'rtc-4.8' of git://git.kernel.org/pub/scm/linux/kernel/git/abelloni/linux: (65 commits)
rtc: rv8803: Clear V1F when setting the time
rtc: rv8803: Stop the clock while setting the time
rtc: rv8803: Always apply the I²C workaround
rtc: rv8803: Fix read day of week
rtc: rv8803: Remove the check for valid time
rtc: rv8803: Kconfig: Indicate rx8900 support
rtc: asm9260: remove .owner field for driver
rtc: at91sam9: Fix missing spin_lock_init()
rtc: m41t80: add suspend handlers for alarm IRQ
rtc: m41t80: make it a real error message
rtc: pcf85063: Add support for the PCF85063A device
rtc: pcf85063: fix year range
rtc: hym8563: in .read_alarm set .tm_sec to 0 to signal minute accuracy
rtc: explicitly set tm_sec = 0 for drivers with minute accurancy
rtc: s3c: Add s3c_rtc_{enable/disable}_clk in s3c_rtc_setfreq()
rtc: s3c: Remove unnecessary call to disable already disabled clock
rtc: abx80x: use devm_add_action_or_reset()
rtc: m41t80: use devm_add_action_or_reset()
rtc: fix a typo and reduce three empty lines to one
rtc: s35390a: improve two comments in .set_alarm
...
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/ds17287rtc.h | 66 | ||||
| -rw-r--r-- | include/linux/mc146818rtc.h | 5 | ||||
| -rw-r--r-- | include/linux/platform_data/rtc-ds2404.h (renamed from include/linux/rtc-ds2404.h) | 0 | ||||
| -rw-r--r-- | include/linux/platform_data/rtc-m48t86.h (renamed from include/linux/m48t86.h) | 0 | ||||
| -rw-r--r-- | include/linux/platform_data/rtc-v3020.h (renamed from include/linux/rtc-v3020.h) | 0 | ||||
| -rw-r--r-- | include/linux/rtc/ds1286.h (renamed from include/linux/ds1286.h) | 0 |
6 files changed, 5 insertions, 66 deletions
diff --git a/include/linux/ds17287rtc.h b/include/linux/ds17287rtc.h deleted file mode 100644 index d85d3f497b96..000000000000 --- a/include/linux/ds17287rtc.h +++ /dev/null | |||
| @@ -1,66 +0,0 @@ | |||
| 1 | /* | ||
| 2 | * ds17287rtc.h - register definitions for the ds1728[57] RTC / CMOS RAM | ||
| 3 | * | ||
| 4 | * This file is subject to the terms and conditions of the GNU General Public | ||
| 5 | * License. See the file "COPYING" in the main directory of this archive | ||
| 6 | * for more details. | ||
| 7 | * | ||
| 8 | * (C) 2003 Guido Guenther <agx@sigxcpu.org> | ||
| 9 | */ | ||
| 10 | #ifndef __LINUX_DS17287RTC_H | ||
| 11 | #define __LINUX_DS17287RTC_H | ||
| 12 | |||
| 13 | #include <linux/rtc.h> /* get the user-level API */ | ||
| 14 | #include <linux/mc146818rtc.h> | ||
| 15 | |||
| 16 | /* Register A */ | ||
| 17 | #define DS_REGA_DV2 0x40 /* countdown chain */ | ||
| 18 | #define DS_REGA_DV1 0x20 /* oscillator enable */ | ||
| 19 | #define DS_REGA_DV0 0x10 /* bank select */ | ||
| 20 | |||
| 21 | /* bank 1 registers */ | ||
| 22 | #define DS_B1_MODEL 0x40 /* model number byte */ | ||
| 23 | #define DS_B1_SN1 0x41 /* serial number byte 1 */ | ||
| 24 | #define DS_B1_SN2 0x42 /* serial number byte 2 */ | ||
| 25 | #define DS_B1_SN3 0x43 /* serial number byte 3 */ | ||
| 26 | #define DS_B1_SN4 0x44 /* serial number byte 4 */ | ||
| 27 | #define DS_B1_SN5 0x45 /* serial number byte 5 */ | ||
| 28 | #define DS_B1_SN6 0x46 /* serial number byte 6 */ | ||
| 29 | #define DS_B1_CRC 0x47 /* CRC byte */ | ||
| 30 | #define DS_B1_CENTURY 0x48 /* Century byte */ | ||
| 31 | #define DS_B1_DALARM 0x49 /* date alarm */ | ||
| 32 | #define DS_B1_XCTRL4A 0x4a /* extendec control register 4a */ | ||
| 33 | #define DS_B1_XCTRL4B 0x4b /* extendec control register 4b */ | ||
| 34 | #define DS_B1_RTCADDR2 0x4e /* rtc address 2 */ | ||
| 35 | #define DS_B1_RTCADDR3 0x4f /* rtc address 3 */ | ||
| 36 | #define DS_B1_RAMLSB 0x50 /* extended ram LSB */ | ||
| 37 | #define DS_B1_RAMMSB 0x51 /* extended ram MSB */ | ||
| 38 | #define DS_B1_RAMDPORT 0x53 /* extended ram data port */ | ||
| 39 | |||
| 40 | /* register details */ | ||
| 41 | /* extended control register 4a */ | ||
| 42 | #define DS_XCTRL4A_VRT2 0x80 /* valid ram and time */ | ||
| 43 | #define DS_XCTRL4A_INCR 0x40 /* increment progress status */ | ||
| 44 | #define DS_XCTRL4A_BME 0x20 /* burst mode enable */ | ||
| 45 | #define DS_XCTRL4A_PAB 0x08 /* power active bar ctrl */ | ||
| 46 | #define DS_XCTRL4A_RF 0x04 /* ram clear flag */ | ||
| 47 | #define DS_XCTRL4A_WF 0x02 /* wake up alarm flag */ | ||
| 48 | #define DS_XCTRL4A_KF 0x01 /* kickstart flag */ | ||
| 49 | |||
| 50 | /* interrupt causes */ | ||
| 51 | #define DS_XCTRL4A_IFS (DS_XCTRL4A_RF|DS_XCTRL4A_WF|DS_XCTRL4A_KF) | ||
| 52 | |||
| 53 | /* extended control register 4b */ | ||
| 54 | #define DS_XCTRL4B_ABE 0x80 /* auxiliary battery enable */ | ||
| 55 | #define DS_XCTRL4B_E32K 0x40 /* enable 32.768 kHz Output */ | ||
| 56 | #define DS_XCTRL4B_CS 0x20 /* crystal select */ | ||
| 57 | #define DS_XCTRL4B_RCE 0x10 /* ram clear enable */ | ||
| 58 | #define DS_XCTRL4B_PRS 0x08 /* PAB resec select */ | ||
| 59 | #define DS_XCTRL4B_RIE 0x04 /* ram clear interrupt enable */ | ||
| 60 | #define DS_XCTRL4B_WFE 0x02 /* wake up alarm interrupt enable */ | ||
| 61 | #define DS_XCTRL4B_KFE 0x01 /* kickstart interrupt enable */ | ||
| 62 | |||
| 63 | /* interrupt enable bits */ | ||
| 64 | #define DS_XCTRL4B_IFES (DS_XCTRL4B_RIE|DS_XCTRL4B_WFE|DS_XCTRL4B_KFE) | ||
| 65 | |||
| 66 | #endif /* __LINUX_DS17287RTC_H */ | ||
diff --git a/include/linux/mc146818rtc.h b/include/linux/mc146818rtc.h index 433e0c74d643..a585b4b5fa0e 100644 --- a/include/linux/mc146818rtc.h +++ b/include/linux/mc146818rtc.h | |||
| @@ -14,6 +14,8 @@ | |||
| 14 | #include <asm/io.h> | 14 | #include <asm/io.h> |
| 15 | #include <linux/rtc.h> /* get the user-level API */ | 15 | #include <linux/rtc.h> /* get the user-level API */ |
| 16 | #include <asm/mc146818rtc.h> /* register access macros */ | 16 | #include <asm/mc146818rtc.h> /* register access macros */ |
| 17 | #include <linux/bcd.h> | ||
| 18 | #include <linux/delay.h> | ||
| 17 | 19 | ||
| 18 | #ifdef __KERNEL__ | 20 | #ifdef __KERNEL__ |
| 19 | #include <linux/spinlock.h> /* spinlock_t */ | 21 | #include <linux/spinlock.h> /* spinlock_t */ |
| @@ -120,4 +122,7 @@ struct cmos_rtc_board_info { | |||
| 120 | #define RTC_IO_EXTENT_USED RTC_IO_EXTENT | 122 | #define RTC_IO_EXTENT_USED RTC_IO_EXTENT |
| 121 | #endif /* ARCH_RTC_LOCATION */ | 123 | #endif /* ARCH_RTC_LOCATION */ |
| 122 | 124 | ||
| 125 | unsigned int mc146818_get_time(struct rtc_time *time); | ||
| 126 | int mc146818_set_time(struct rtc_time *time); | ||
| 127 | |||
| 123 | #endif /* _MC146818RTC_H */ | 128 | #endif /* _MC146818RTC_H */ |
diff --git a/include/linux/rtc-ds2404.h b/include/linux/platform_data/rtc-ds2404.h index 22c53825528f..22c53825528f 100644 --- a/include/linux/rtc-ds2404.h +++ b/include/linux/platform_data/rtc-ds2404.h | |||
diff --git a/include/linux/m48t86.h b/include/linux/platform_data/rtc-m48t86.h index 915d6b4f0f89..915d6b4f0f89 100644 --- a/include/linux/m48t86.h +++ b/include/linux/platform_data/rtc-m48t86.h | |||
diff --git a/include/linux/rtc-v3020.h b/include/linux/platform_data/rtc-v3020.h index e55d82cebf80..e55d82cebf80 100644 --- a/include/linux/rtc-v3020.h +++ b/include/linux/platform_data/rtc-v3020.h | |||
diff --git a/include/linux/ds1286.h b/include/linux/rtc/ds1286.h index 45ea0aa0aeb9..45ea0aa0aeb9 100644 --- a/include/linux/ds1286.h +++ b/include/linux/rtc/ds1286.h | |||
