Steve Longerbeam <> [20080901 15:09:05 -0700]:
>
> 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.
>
It would probably be worth mainlining your rtc-ds1685.c independently.
> 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.
>
What 'TS7800' do you have, the RTC chip on mine is a M48T86PC1 affair that is
already supported via drivers/rtc/rtc-m48t86.c?
http://git.eu.kernel.org/?p=linux/kernel/git/nico/orion.git;a=commitdiff;h=7171d8672bb0bcb744935bd2c6108378b5c6c6ad;hp=530c854aa351b2c7b3b3b6bedae8143310875206
> 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.
>
Looking at the rtc-m48t86.c source I see at the top it is also the driver for
the "Dallas DS12887", I'm guessing there is some compatibility between the
lot that is working?
Alternatively you might have a different RTC chip on your board to me :(
This is going to make things annoying, if this is the case, unless TS have a
way to detect between the two if they are not effectively the same chip.
Cheers
Alex
--
______________________________________
/ The only reward of virtue is virtue. \
| |
\ -- Ralph Waldo Emerson /
--------------------------------------
\ ^__^
\ (oo)\_______
(__)\ )\/\
||----w |
|| ||
------------------------------------
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/ts-7000/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/ts-7000/join
(Yahoo! ID required)
<*> To change settings via email:
<*> To unsubscribe from this group, send an email to:
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|