27 Sep, 2006

1 commit


28 Aug, 2006

2 commits

  • Fix the year check on setting the time with the S3C24XX RTC driver. Also
    move the debug to before the set to see what is going on if it does fail.

    Signed-off-by: Ben Dooks
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Ben Dooks
     
  • In the cleanups of drivers/rtc/s3c-rtc.c, the base address for the
    registers got broken. This patch fixes that by ensuring the readb/writeb
    are all prefixed with the base returned from ioremap()ing the registers.

    Also fix check for valid year range, which was the wrong way around.

    Signed-off-by: Ben Dooks
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Ben Dooks
     

15 Jul, 2006

1 commit


14 Jul, 2006

1 commit


03 Jul, 2006

1 commit


02 Jul, 2006

1 commit

  • This is a renamed and tested version of the previous S3C24XX RTC class
    driver.

    The driver has been renamed from the original s3c2410-rtc, which is now too
    narrow for the range of devices supported.

    The rtc-s3c has been chosen as there is the distinct possibility of this
    driver being carried forward into newer Samsung SoC silicon.

    Signed-off-by: Ben Dooks
    Cc: Alessandro Zummo
    Cc: Russell King
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Ben Dooks
     

01 Jul, 2006

1 commit


29 Jun, 2006

1 commit


28 Jun, 2006

3 commits

  • We need to serialize access to the global rtc_idr even in this error path.

    Signed-off-by: Sonny Rao
    Acked-by: Alessandro Zummo
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Sonny Rao
     
  • Signed-off-by: Atsushi Nemoto
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Atsushi Nemoto
     
  • locking init cleanups:

    - convert " = SPIN_LOCK_UNLOCKED" to spin_lock_init() or DEFINE_SPINLOCK()
    - convert rwlocks in a similar manner

    this patch was generated automatically.

    Motivation:

    - cleanliness
    - lockdep needs control of lock initialization, which the open-coded
    variants do not give
    - it's also useful for -rt and for lock debugging in general

    Signed-off-by: Ingo Molnar
    Signed-off-by: Arjan van de Ven
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Ingo Molnar
     

26 Jun, 2006

13 commits

  • Add an RTC driver for the Dallas DS1742 RTC chip.

    [akpm@osdl.org: cleanups, compile fix]
    Signed-off-by: Atsushi Nemoto
    Cc: Alessandro Zummo
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Atsushi Nemoto
     
  • Add an RTC driver for the Dallas DS1553 RTC chip.

    [akpm@osdl.org: cleanups, compile fix]
    Signed-off-by: Atsushi Nemoto
    Cc: Alessandro Zummo
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Atsushi Nemoto
     
  • - whitespace fixes (80-col display)

    - one unneeded cast of void*

    Cc: Andrew Victor
    Cc: Alessandro Zummo
    Cc: Russell King
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Andrew Morton
     
  • Adds support for the RTC integrated in the Atmel AT91RM9200 SoC.

    Driver was originally written for 2.4 by Rick Bronson. Then converted to
    2.6 ARM RTC API by Steven Scholz. Now converted to the RTC class model.

    Signed-off-by: Andrew Victor
    Signed-off-by: Alessandro Zummo
    Cc: Russell King
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Andrew Victor
     
  • RTC: Add exported function rtc_year_days() to calculate the tm_yday value.

    Signed-off-by: Andrew Victor
    Signed-off-by: Alessandro Zummo
    Cc: Russell King
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Andrew Victor
     
  • This patch adds support for the v3020 RTC from EM Microelectronic.

    The v3020 RTC is designed to be connected on a bus using only one data bit.
    Since any data bit may be used, it is necessary to specify this to the
    driver by passing a struct v3020_platform_data pointer (see
    include/linux/rtc-v3020.h) to the driver.

    Part of the following code comes from the kernel patchs produced by
    Compulab for their products. The original file (available here:
    http://raph.people.8d.com/misc/emv3020.c) was released under the terms of
    the GPL license.

    [akpm@osdl.org: cleanups]
    Signed-off-by: Raphael Assenat
    Cc: Alessandro Zummo
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Raphael Assenat
     
  • Add support for the MAX6902 SPI RTC chip. Tested on a pxa2xx cpu.

    The compulab code comes from the kernel patch the produce for their
    cn-x255 board. (inside a zip file on the
    http://www.compulab.co.il/x255/html/x255-developer.htm)

    The original file (drivers/char/max6902.c) was GPL, which is of course
    an appropriate licence:

    /*
    * max6902.c
    *
    * Driver for MAX6902 RTC
    *
    * Copyright (C) 2004 Compulab Ltd.
    *
    *
    * This program is free software; you can redistribute it and/or modify
    * it under the terms of the GNU General Public License version 2 as
    * published by the Free Software Foundation.
    *
    *
    */

    For reference, you can get the original file here:
    http://raph.people.8d.com/misc/max6902.c

    [akpm@osdl.org: cleanups]
    Signed-off-by: Raphael Assenat
    Cc: Alessandro Zummo
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Raphael Assenat
     
  • Centralize CAP_SYS_XXX checks to avoid duplicate code and missing checks in
    the drivers.

    Signed-off-by: Alessandro Zummo
    Cc: Richard Purdie
    Cc: Yoichi Yuasa
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Alessandro Zummo
     
  • Remove commented capability checks and add some others.

    Signed-off-by: Alessandro Zummo
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Alessandro Zummo
     
  • A port of the driver for the pcf8583 i2c rtc controller to the generic RTC
    framework by Alessandro Zummo. Based on
    drivers/acorn/char/{pcf8583.[hc],i2c.c}. Hopefully, acorn can be converted
    too to use this driver in the future.

    Signed-off-by: G. Liakhovetski
    Signed-off-by: Alessandro Zummo
    Cc: Russell King
    Cc: Jean Delvare
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    G. Liakhovetski
     
  • Import genrtc's RTC UIE emulation (CONFIG_GEN_RTC_X) to rtc-dev driver with
    slight adjustments/refinements. This makes UIE-less rtc drivers work
    better with programs doing read/poll on /dev/rtc, such as hwclock. This
    emulation should not harm rtc drivers with UIE support, since
    rtc_dev_ioctl() calls underlaying rtc driver's ioctl() first.

    Signed-off-by: Atsushi Nemoto
    Acked-by: Alessandro Zummo
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Atsushi Nemoto
     
  • 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
     
  • Add a driver for the ARM PL031 RTC found on some ARM SOCs. The driver is
    fairly trivial as the RTC only provides a read/write and alarm capability.

    [akpm@osdl.org: compile fix]
    Signed-off-by: Deepak
    Acked-by: Alessandro Zummo
    Cc: Russell King
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Deepak Saxena
     

06 Jun, 2006

1 commit

  • From: Andrew Morton

    drivers/rtc/rtc-m48t86.c: In function `m48t86_rtc_read_time':
    drivers/rtc/rtc-m48t86.c:51: error: structure has no member named `ia64_mv'
    drivers/rtc/rtc-m48t86.c:55: error: structure has no member named `ia64_mv'
    drivers/rtc/rtc-m48t86.c:56: error: structure has no member named `ia64_mv'
    drivers/rtc/rtc-m48t86.c:57: error: structure has no member named `ia64_mv'
    drivers/rtc/rtc-m48t86.c:58: error: structure has no member named `ia64_mv'
    drivers/rtc/rtc-m48t86.c:60: error: structure has no member named `ia64_mv'

    readb() and writeb() are macros on ia64.

    Cc: Alessandro Zummo
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Andrew Morton
     

22 May, 2006

1 commit


06 May, 2006

1 commit


02 May, 2006

1 commit

  • Make rtc-dev work well on 64-bit platforms with 32-bit userland. On those
    platforms, users might try to read 32-bit integer value. This patch make
    rtc-dev's read() work well for both "int" and "long" size. This tweak is came
    from genrtc driver.

    Signed-off-by: Atsushi Nemoto
    Cc: Alessandro Zummo
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Atsushi Nemoto
     

11 Apr, 2006

10 commits


28 Mar, 2006

1 commit

  • Add a driver for the ST M48T86 / Dallas DS12887 RTC.

    This is a platform driver. The platform device must provide I/O routines to
    access the RTC.

    Signed-off-by: Alessandro Zummo
    Cc: Greg KH
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Alessandro Zummo