linux-mips
[Top] [All Lists]

rtc integration with hwclock

To: linuxppc-embedded@ozlabs.org., linux-kernel@vger.kernel.org, "linux-mips@linux-mips.org" <linux-mips@linux-mips.org>
Subject: rtc integration with hwclock
From: "mahendra varman" <mahendravarman15@gmail.com>
Date: Sun, 13 Jul 2008 20:23:26 +0530
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type; bh=48JWKRe8dDL+PLf05G6l8JwK1/FR6lYTWzJBrZ0O89s=; b=RqDtHaLzrf2L/kcoiw8LOhQQnQjmWStzomnMLpeO5pKIhtsXa9u1eaZ0R5iHNscKuH utQGyBJ7ezUacW9eqVQXX4ZdqV1yqeMxsh85jepngChW4NfoOmkiNInFt4HDSFYaVLEO +CSUL/Fz/zUwhsN7p8wvnOwx5S3KjlHsLZNaU=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type; b=pDM4+JfDTN6zDxQu0c2m1QSXRuTRnEWy1rPLL4j9iYSoDmbOVd/nxYLvfumDYkdpUC amBgI7py6o2kc6yAUg8EUKMx0/FjjkhS7tAyl1mKNt3l1Gy/BGrhZQ0GuH8LBy4VUQCR SvBdBkepNyEC+QbvOXwnvEwkv3RKqJcJYKkbM=
Original-recipient: rfc822;linux-mips@linux-mips.org
Sender: linux-mips-bounce@linux-mips.org
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
<Prev in Thread] Current Thread [Next in Thread>
  • rtc integration with hwclock, mahendra varman <=