From patchwork Thu Jun 16 04:05:17 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Priyanka Jain X-Patchwork-Id: 100587 Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from ozlabs.org (localhost [IPv6:::1]) by ozlabs.org (Postfix) with ESMTP id 6BFDFB70A1 for ; Thu, 16 Jun 2011 14:05:44 +1000 (EST) Received: from TX2EHSOBE004.bigfish.com (tx2ehsobe002.messaging.microsoft.com [65.55.88.12]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (Client CN "mail.global.frontbridge.com", Issuer "Cybertrust SureServer Standard Validation CA" (verified OK)) by ozlabs.org (Postfix) with ESMTPS id B259CB6F89 for ; Thu, 16 Jun 2011 14:05:33 +1000 (EST) Received: from mail197-tx2-R.bigfish.com (10.9.14.242) by TX2EHSOBE004.bigfish.com (10.9.40.24) with Microsoft SMTP Server id 14.1.225.22; Thu, 16 Jun 2011 04:05:23 +0000 Received: from mail197-tx2 (localhost.localdomain [127.0.0.1]) by mail197-tx2-R.bigfish.com (Postfix) with ESMTP id 9D3AA3483A5; Thu, 16 Jun 2011 04:05:23 +0000 (UTC) X-SpamScore: 0 X-BigFish: VS0(zzzz1202hzz8275bhz2dh87h2a8h668h839h61h) X-Spam-TCS-SCL: 0:0 X-Forefront-Antispam-Report: KIP:(null); UIP:(null); IPVD:NLI; H:mail.freescale.net; RD:none; EFVD:NLI X-FB-DOMAIN-IP-MATCH: fail Received: from mail197-tx2 (localhost.localdomain [127.0.0.1]) by mail197-tx2 (MessageSwitch) id 1308197123153572_12315; Thu, 16 Jun 2011 04:05:23 +0000 (UTC) Received: from TX2EHSMHS034.bigfish.com (unknown [10.9.14.251]) by mail197-tx2.bigfish.com (Postfix) with ESMTP id 1E61712F804E; Thu, 16 Jun 2011 04:05:23 +0000 (UTC) Received: from mail.freescale.net (70.37.183.190) by TX2EHSMHS034.bigfish.com (10.9.99.134) with Microsoft SMTP Server (TLS) id 14.1.225.22; Thu, 16 Jun 2011 04:05:23 +0000 Received: from az33smr02.freescale.net (10.64.34.200) by 039-SN1MMR1-002.039d.mgd.msft.net (10.84.1.15) with Microsoft SMTP Server id 14.1.289.8; Wed, 15 Jun 2011 23:05:22 -0500 Received: from nmglablinux21.freescale.com ([10.232.20.243]) by az33smr02.freescale.net (8.13.1/8.13.0) with ESMTP id p5G45Klp012369; Wed, 15 Jun 2011 23:05:20 -0500 (CDT) Received: by nmglablinux21.freescale.com (Postfix, from userid 65011109) id 9DEF85DC80; Thu, 16 Jun 2011 09:35:18 +0530 (IST) From: Priyanka Jain To: , , , , , , , , , , Subject: [PATCH][v3] Add support for RTC device: pt7c4338 in rtc-ds1307.c Date: Thu, 16 Jun 2011 09:35:17 +0530 Message-ID: <1308197117-3586-1-git-send-email-Priyanka.Jain@freescale.com> X-Mailer: git-send-email 1.6.5.6 MIME-Version: 1.0 X-OriginatorOrg: sigmatel.com Cc: Priyanka Jain X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org Sender: linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org 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 Acked-by: Timur Tabi Reviewed-by: Wolfram Sang --- Change for v3: Incorporting Timur Tabi's comments to drop Kconfig and copyright changes 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/rtc-ds1307.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/drivers/rtc/rtc-ds1307.c b/drivers/rtc/rtc-ds1307.c index 4724ba3..b2005b4 100644 --- a/drivers/rtc/rtc-ds1307.c +++ b/drivers/rtc/rtc-ds1307.c @@ -149,6 +149,7 @@ static const struct i2c_device_id ds1307_id[] = { { "ds1340", ds_1340 }, { "ds3231", ds_3231 }, { "m41t00", m41t00 }, + { "pt7c4338", ds_1307 }, { "rx8025", rx_8025 }, { } };