ts-7000
[Top] [All Lists]

[ts-7000] DS1685/1687 RTC driver for TS7800

To:
Subject: [ts-7000] DS1685/1687 RTC driver for TS7800
From: Steve Longerbeam <>
Date: Mon, 1 Sep 2008 15:09:05 -0700 (PDT)
Hi, maybe someone has already done this, but attached is a RTC driver for the DS1685/1687 RTC chip. The main driver is platform-independent code at drivers/rtc/rtc-ds1685.c and /include/linux/ds1685.h. As usual, it requires a platform_device be registered by platform-specific code. The driver allows the platform to define its own read/write access to the chip via platform_data functions. If those are not implemented, the driver assumes the RTC chip is directly accessible via readb/writeb.

Attached is patch against 2.6.21-ts.jun102008. The DS1687 on the TS7800 is accessible indirectly via an indexed addressing mode, so the patch includes platform_data for accessing the chip.

I tested this on the TS7800 with hwclock and it works fine, I can set and read the clock, although some of the 242 bytes of NVRAM are not accessible for some reason which I'm looking into.

Steve

__._,_.___

Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: =Email Delivery: Digest | m("yahoogroups.com?subject","ts-7000-fullfeatured");=Change Delivery Format: Fully Featured">Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | =Unsubscribe

__,_._,___

Attachment: linux-2.6.21-ts.jun102008.jp.2.idiff
Description: Binary data

<Prev in Thread] Current Thread [Next in Thread>
Admin

Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU