27 Jul, 2007

1 commit


18 Jul, 2007

3 commits

  • Convert the rtc-ds1307 driver into a "new style" driver.

    Also improve probe() checks: be more correct about switching out of
    AM/PM mode, and issue a (debug) diagnostic when failing due to bogus
    register values.

    Signed-off-by: David Brownell
    Cc: Andrew Victor
    Cc: Bill Gatliff
    Cc: Alessandro Zummo
    Cc: Paul Mackerras
    Cc: Benjamin Herrenschmidt
    Cc: Kumar Gala
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    David Brownell
     
  • When we find a ds1337 or ds1339 with the oscillator powered off, turn it
    on. If the oscillator fault flag was set, clear it and warn that the clock
    needs to be set.

    David Brownell: Bugfixes; provide corresponding update for ds1338, and the
    core of the fix for ds1340. Use a common warning message ("SET TIME!")
    whenever the clock needs to be set after oscillator fault (or oscillator
    enable, if fault is not a separate status).

    Signed-off-by: Rodolfo Giometti
    Signed-off-by: David Brownell
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Rodolfo Giometti
     
  • This updates the rtc-ds1307 driver so that converting it to a "new style"
    driver (driver model, not legacy i2c model) will involve fewer changes.

    - Use pointer to i2c_client almost everywhere, so that it's easy
    to let the i2c core create that object;

    - Avoid using i2c_client.adapter, since that field is redundant and
    thus may go away (same object as i2c_client.dev.parent).

    - Extend type enum to include various RTCs this is expected to
    work with, and include register support for them.

    It also cleans up the support for multiple chip types, and fixes a
    glitch that could appear with an un-initialized RTC.

    Signed-off-by: David Brownell
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    David Brownell
     

04 Oct, 2006

1 commit


01 Oct, 2006

1 commit


26 Jun, 2006

1 commit

  • This is an "RTC-framework" driver for DS1307 and similar RTC chips,

    It should be a full replacement for the existing ds1337.c driver (using the
    older RTC glue), giving a net increase in the number of RTC chips that work
    out-of-the-box. There's a whole cluster of RTCs that are very similar, but
    the 1337 driver was a bit too picky to work with most of them.

    Still no support for RTC alarm IRQs (on chips that support them).

    Signed-off-by: David Brownell
    Signed-off-by: James Chapman
    Signed-off-by: Alessandro Zummo
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    David Brownell