rtc-m48t59: add support for M48T02 and M48T59 chips
PATCH 2/2 rtc-m48t59: add support for M48T02 and M48T59 chips
From: Krzysztof Helt <[email protected]>
Add support for two compatible RTC:
- M48T08 which does not have alarm part,
- M48T08 which does not have alarm part and has only 2KB of NVRAM
These types covers all Mostek's RTC used in Sun UltraSparc workstations.
Tested on Sun Ultra60 with M48T59 RTC.
---
drivers/rtc/Kconfig | 7 +++-- drivers/rtc/rtc-m48t59.c | 47 +++++++++++++++++++++++++++++------ include/linux/rtc/m48t59.h | 45 ++++++++++++++++++--------------- 3 files changed, 69 insertions(+), 30 deletions(-)
drivers/rtc/Kconfig renamed from drivers/rtc/Kconfig~rtc-m48t59-add-support-for-m48t02-and-m48t59-chips-2nd-rev +5 -2
@@ -415,10 +415,13 @@ config RTC_DRV_M48T86 will be called rtc-m48t86. config RTC_DRV_M48T59 - tristate "ST M48T59" + tristate "ST M48T59/M48T08/M48T02" help If you say Y here you will get support for the - ST M48T59 RTC chip. + ST M48T59 RTC chip and compatible ST M48T08 and M48T02. + + These chips are usually found in Sun SPARC and UltraSPARC + workstations. This driver can also be built as a module, if so, the module will be called "rtc-m48t59".
drivers/rtc/rtc-m48t59.c renamed from drivers/rtc/rtc-m48t59.c~rtc-m48t59-add-support-for-m48t02-and-m48t59-chips-2nd-rev +39 -8
105 lines not on this page · raw message
include/linux/rtc/m48t59.h renamed from include/linux/rtc/m48t59.h~rtc-m48t59-add-support-for-m48t02-and-m48t59-chips-2nd-rev +25 -20
65 lines not on this page · raw message
_
From: [email protected]
Date: Wed, 03 Sep 2008 14:54:44 -0700
Quoted 5 lines
Add support for two compatible RTC:
- M48T08 which does not have alarm part,
- M48T08 which does not have alarm part and has
only 2KB of NVRAM
Quoted 7 lines
These types covers all Mostek's RTC used in Sun UltraSparc workstations.
Tested on Sun Ultra60 with M48T59 RTC.
Signed-off-by Krzysztof Helt <[email protected]>Signed-off-by Alessandro Zummo <[email protected]>Signed-off-by Andrew Morton <[email protected]>
Also applied to sparc-next-2.6