* [PATCH][v2] Add support for RTC device: pt7c4338 in rtc-ds1307.c
@ 2011-06-15 8:59 Priyanka Jain
2011-06-15 11:44 ` Tabi Timur-B04825
2011-06-15 15:05 ` Timur Tabi
0 siblings, 2 replies; 3+ messages in thread
From: Priyanka Jain @ 2011-06-15 8:59 UTC (permalink / raw)
To: akpm, w.sang, cbouatmailru, a.zummo, benh, galak, grant.likely,
b04825, linuxppc-dev, rtc-linux, p_gortmaker, linuxppc-release
Cc: Priyanka Jain
PT7C4338 chip is being manufactured by Pericom Technology Inc.
It is a serial real-time clock which provides:
1)Low-power clock/calendar.
2)Programmable square-wave output.
It has 56 bytes of nonvolatile RAM.
Its register set is same as that of rtc device: DS1307.
Signed-off-by: Priyanka Jain <Priyanka.Jain@freescale.com>
---
Change for v2:
Incorporting Andrew Morton's comments to shorten patch by using
hunk: { "pt7c4338", ds_1307 }
Changes :
This patch will supersede patch:
"RTC driver(Linux) for PT7C4338 chip"
Incorporting Wolfram Sang's comments to reuse ds1307 driver.
drivers/rtc/Kconfig | 6 +++---
drivers/rtc/rtc-ds1307.c | 3 +++
2 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/drivers/rtc/Kconfig b/drivers/rtc/Kconfig
index b8f4e9e..c6045dd 100644
--- a/drivers/rtc/Kconfig
+++ b/drivers/rtc/Kconfig
@@ -126,13 +126,13 @@ comment "I2C RTC drivers"
if I2C
config RTC_DRV_DS1307
- tristate "Dallas/Maxim DS1307/37/38/39/40, ST M41T00, EPSON RX-8025"
+ tristate "Dallas/Maxim DS1307/37/38/39/40, ST M41T00, EPSON RX-8025, PT7C4338"
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, DS1337, DS1338, DS1339, DS1340, ST M41T00,
- EPSON RX-8025 and probably other chips. In some cases the RTC
- must already have been initialized (by manufacturing or a
+ EPSON RX-8025, PT7C4338 and probably other chips. In some cases
+ the RTC must already have been initialized (by manufacturing or a
bootloader).
The first seven registers on these chips hold an RTC, and other
diff --git a/drivers/rtc/rtc-ds1307.c b/drivers/rtc/rtc-ds1307.c
index 4724ba3..e851394 100644
--- a/drivers/rtc/rtc-ds1307.c
+++ b/drivers/rtc/rtc-ds1307.c
@@ -4,6 +4,8 @@
* Copyright (C) 2005 James Chapman (ds1337 core)
* Copyright (C) 2006 David Brownell
* Copyright (C) 2009 Matthias Fuchs (rx8025 support)
+ * Copyright (C) 2011 Priyanka Jain (Priyanka.Jain@freescale.com)
+ * (pt7c4338 support)
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
@@ -149,6 +151,7 @@ static const struct i2c_device_id ds1307_id[] = {
{ "ds1340", ds_1340 },
{ "ds3231", ds_3231 },
{ "m41t00", m41t00 },
+ { "pt7c4338", ds_1307 },
{ "rx8025", rx_8025 },
{ }
};
--
1.6.5.6
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH][v2] Add support for RTC device: pt7c4338 in rtc-ds1307.c
2011-06-15 8:59 [PATCH][v2] Add support for RTC device: pt7c4338 in rtc-ds1307.c Priyanka Jain
@ 2011-06-15 11:44 ` Tabi Timur-B04825
2011-06-15 15:05 ` Timur Tabi
1 sibling, 0 replies; 3+ messages in thread
From: Tabi Timur-B04825 @ 2011-06-15 11:44 UTC (permalink / raw)
To: Jain Priyanka-B32167
Cc: a.zummo@towertech.it, linuxppc-release@linux.freescale.net,
rtc-linux@googlegroups.com, p_gortmaker@yahoo.com,
galak@gate.crashing.org, akpm@linux-foundation.org,
linuxppc-dev@lists.ozlabs.org
Priyanka Jain wrote:
> + * Copyright (C) 2011 Priyanka Jain (Priyanka.Jain@freescale.com)
> + * (pt7c4338 support)
You can't claim copyright just by adding one line of text.
--=20
Timur Tabi
Linux kernel developer at Freescale=
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH][v2] Add support for RTC device: pt7c4338 in rtc-ds1307.c
2011-06-15 8:59 [PATCH][v2] Add support for RTC device: pt7c4338 in rtc-ds1307.c Priyanka Jain
2011-06-15 11:44 ` Tabi Timur-B04825
@ 2011-06-15 15:05 ` Timur Tabi
1 sibling, 0 replies; 3+ messages in thread
From: Timur Tabi @ 2011-06-15 15:05 UTC (permalink / raw)
To: Priyanka Jain; +Cc: a.zummo, rtc-linux, p_gortmaker, galak, akpm, linuxppc-dev
Priyanka Jain wrote:
> config RTC_DRV_DS1307
> - tristate "Dallas/Maxim DS1307/37/38/39/40, ST M41T00, EPSON RX-8025"
> + tristate "Dallas/Maxim DS1307/37/38/39/40, ST M41T00, EPSON RX-8025, PT7C4338"
> 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, DS1337, DS1338, DS1339, DS1340, ST M41T00,
> - EPSON RX-8025 and probably other chips. In some cases the RTC
> - must already have been initialized (by manufacturing or a
> + EPSON RX-8025, PT7C4338 and probably other chips. In some cases
> + the RTC must already have been initialized (by manufacturing or a
> bootloader).
I think you should probably drop the Kconfig change, too. It already says, "and
probably other chips", and you're also just bloating the summary line. We can't
list every possible Dallas-compatible RTC chip here.
--
Timur Tabi
Linux kernel developer at Freescale
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-06-15 15:05 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-15 8:59 [PATCH][v2] Add support for RTC device: pt7c4338 in rtc-ds1307.c Priyanka Jain
2011-06-15 11:44 ` Tabi Timur-B04825
2011-06-15 15:05 ` Timur Tabi
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).