[lkml]   [2008]   [Sep]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH] fix RTC_CLASS regression with PARISC
From: James Bottomley <>
Date: Mon, 08 Sep 2008 18:23:06 -0500

> But realistically that's all we need. Our RTC is controlled by two
> calls into firmware: a get and a set; nothing else. We don't have the
> docs to get at the clock without the firmware calls.

I wrote RTC layer drivers on sparc64 that make the firmware calls in
the Niagara system case, exactly like your case.

Really, this is the way to do this.

Since you're not reading what I implemented, I'll read it for you :-/

See drivers/rtc/rtc-sun4v.c, that's the driver

Code in arch/sparc64/kernel/time.c creates and registers the
appropriate platform_device object once the correct system type is
detected, and then rtc-sun4v.c attaches when such objects have been

Likewise for all the other RTC types that can be found on Sparc machines.

 \ /
  Last update: 2008-09-09 01:45    [W:0.043 / U:2.904 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site