From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.187]) by ozlabs.org (Postfix) with ESMTP id C8689DDED6 for ; Mon, 14 Jul 2008 00:53:29 +1000 (EST) Received: by nf-out-0910.google.com with SMTP id b2so1400789nfb.43 for ; Sun, 13 Jul 2008 07:53:26 -0700 (PDT) Message-ID: <4ac2955e0807130753ydaf0d10n9d95d4d51baf660b@mail.gmail.com> Date: Sun, 13 Jul 2008 20:23:26 +0530 From: "mahendra varman" To: linuxppc-embedded@ozlabs.org., linux-kernel@vger.kernel.org, "linux-mips@linux-mips.org" Subject: rtc integration with hwclock MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_27287_27720679.1215960806080" List-Id: Linux on Embedded PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , ------=_Part_27287_27720679.1215960806080 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi Help me to solve the below point Hi have wrote a simple i2c based driver for rtc chip (x1226) in linux 2.6 with inbuilt i2c routines. In the get_rtc_time routine i can able to read the values from the rtc chip and store it in variables I need to know how to update those values into the rtc structure so that if i put hwclock it should display the read value.... Any example code depicting the above point is also welcome Thanks in advance ------=_Part_27287_27720679.1215960806080 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi

Help me to solve the below point

Hi have wrote a simple i2c based driver for rtc chip (x1226) in linux 2.6 with inbuilt i2c routines.

In the get_rtc_time routine i can able to read the values from the rtc chip and store it in variables

I need to know how to update those values into the rtc structure so that if i put hwclock it should display the read value....


Any example code depicting the above point is also welcome


Thanks in advance
------=_Part_27287_27720679.1215960806080--