lkml.org 
[lkml]   [2008]   [Sep]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    SubjectRe: [PATCH] fix RTC_CLASS regression with PARISC
    From
    From: James Bottomley <James.Bottomley@HansenPartnership.com>
    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
    registered.

    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:120.472 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site