21 Aug, 2008

1 commit


25 Jul, 2008

2 commits

  • Support the Dallas/Maxim DS1305 and DS1306 RTC chips. These use SPI, and
    support alarms, NVRAM, and a trickle charger for use when their backup
    power supply is a supercap or rechargeable cell.

    This basic driver doesn't yet support suspend/resume or wakealarms.

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

    David Brownell
     
  • This patch adds kernel driver for M41T94 RTC chip connected via SPI.
    I've tested it on two different AT91-based hardwares.

    This is third revision of the patch: some comments made by
    Alessandro Zummo fixed.

    Revision two added support for century bit and fixes.

    Signed-off-by: Kim B. Heino
    Signed-off-by: Alessandro Zummo
    Cc: David Brownell
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Kim B. Heino
     

10 Jul, 2008

1 commit


13 Jun, 2008

1 commit

  • Ramtron FM3130 is a chip with two separate devices inside, RTC clock and
    FRAM. This driver provides only RTC functionality.

    This chip is met in lots of custom boards with AT91SAMXXXX CPU I work
    with, is cheap and in no way better or worse than any other RTC on market.
    While it is mostly met on much smaller devices, I think it is great to
    have it supported in Linux.

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

    Sergey Lapin
     

07 Jun, 2008

1 commit

  • This hooks up the platform-specific [gs]et_rtc_time functions so that
    kernels using CONFIG_RTC_CLASS have RTC support on most PowerPC platforms.

    A new driver, and one which we've been shipping in Fedora for a while
    already, since otherwise RTC support breaks.

    [akpm@linux-foundation.org: fix Kconfig indenting]
    Signed-off-by: David Woodhouse
    Signed-off-by: Paul Mackerras
    Acked-by: Alessandro Zummo
    Acked-by: David Brownell
    Cc: Benjamin Herrenschmidt
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    David Woodhouse
     

02 Jun, 2008

1 commit


22 May, 2008

1 commit


28 Apr, 2008

1 commit

  • Kconfig tweaks to help reduce RTC configuration bugs, by avoiding
    legacy RTC drivers when the generic RTC framework is enabled:

    - If rtc-cmos is selected, disable the legacy rtc driver;

    - When using generic RTC on x86, enable rtc-cmos by default;

    - In the old "chardev RTC" section of Kconfig, add a comment
    warning people off these (seven) legacy RTC drivers when
    the generic framework is in use.

    People can still use the legacy drivers if they want (or need) to.

    This doesn't fix the broken dependencies for the legacy "CMOS" RTC driver.
    Ideally it would be a full list of platforms where it works, not a partial
    list of ones where it won't. Or better yet, it would depend on a
    "HAVE_CMOS_RTC" flag defined by various platforms ... surely there's a
    Kconfig style guideline lurking there.

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

    David Brownell
     

11 Apr, 2008

1 commit

  • rtc-s35390a uses BITREVERSE functions so it needs to select that config symbol
    to ensure that the functions are built.

    drivers/built-in.o: In function `s35390a_set_datetime':
    linux-2.6.25-rc8-git7/drivers/rtc/rtc-s35390a.c:144: undefined reference to `byte_rev_table'
    drivers/built-in.o: In function `s35390a_get_datetime':
    linux-2.6.25-rc8-git7/drivers/rtc/rtc-s35390a.c:163: undefined reference to `byte_rev_table'

    Signed-off-by: Randy Dunlap
    Acked-by: Alessandro Zummo
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Randy Dunlap
     

20 Mar, 2008

1 commit


05 Mar, 2008

1 commit

  • This adds basic get/set time support for the Seiko Instruments S-35390A.
    This chip communicates using I2C and is used on the QNAP TS-109/TS-209 NAS
    devices.

    [akpm@linux-foundation.org: coding-style fixes]
    Signed-off-by: Byron Bradley
    Acked-by: Jean Delvare
    Acked-by: David Brownell
    Tested-by: Tim Ellis
    Cc: Alessandro Zummo
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Byron Bradley
     

07 Feb, 2008

5 commits

  • AT91sam9 RTC support, primarily in the form of an RTT-as-RTC driver that was
    extracted from 2.6.23-at91 patch and updated:

    - Relies on now-merged platform updates, which associate the RTT
    hardware address with each RTT and use the "at91_rtt" name.

    - RTC framework related fixes and cleanups, notably:
    * removed now-needless suspend/resume clock offset logic
    * alarm read/write now respects the "enabled" flag
    * suspend always disables update irqs
    * shutdown (and startup) disables all irqs

    - Misc cleanup:
    * use dev_*() messaging
    * add comments
    * remove globals,
    * ... etc

    - Don't force use of RTT0 and GPBR0. Either resource may need
    to be used for other purposes (like NO_HZ support).

    - Update "AT91RM9200 RTC" Kconfig to allow it on SAM9RL chips
    (it has both RTT and RTC).

    Driver binding uses bus_find_device() to avoid needing any kind of "timer
    library" code when there's more than one RTT module. (This timer can be used
    as an RTC, to support NO_HZ operation, or potentially for other stuff. The
    choice is a per-system policy.)

    Signed-off-by: David Brownell
    Cc: Michel Benoit
    Cc: Nicolas Ferre
    Cc: Andrew Victor
    Cc: Russell King
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    David Brownell
     
  • Add support for the Epson RTC-9701JE SPI RTC device.

    Signed-off-by: Magnus Damm
    Acked-by: Alessandro Zummo
    Acked-by: David Brownell
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Magnus Damm
     
  • Add RTC support for DS1511 RTC/WDT chip.

    Signed-off-by: Andy Sharp
    Cc: Alessandro Zummo
    Cc: David Brownell
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Andrew Sharp
     
  • This adds a basic ds1302 RTC driver, which is basically a cleanup and move
    of the in-tree SH SecureEdge5410 code (which is currently located in
    arch/sh/board/snapgear/rtc.c) to drivers/rtc.

    This aims to be a building block that the M32R and CRIS code can be worked
    on top of, so we can get rid of drivers/char/ds1302.c and
    arch/cris/arch-v10/drivers/ds1302.c respectively, though more work is
    needed for this.

    [akpm@linux-foundation.org: coding-style fixes]
    Signed-off-by: Paul Mundt
    Signed-off-by: Alessandro Zummo
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Paul Mundt
     
  • Add adds a warning if a potentially conflicting RTC option has been
    selected and makes some other cosmetic fixes to the Kconfig.

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

    Alessandro Zummo
     

28 Jan, 2008

2 commits


23 Nov, 2007

1 commit


15 Nov, 2007

2 commits

  • Export the NVRAM on DS1307 and DS1338 chips, like several of the
    other drivers do for such combination RTC-and-NVRAM chips.

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

    David Brownell
     
  • The RTC "hctosys" mechanism expects that RTC clock will use UTC, not local
    time (e.g. PST). Say so in Kconfig and in the kernel message.

    (Strictly speaking, the RTC clock should be tracking the POSIX epoch. That's
    not worth going into here. Goofing timezones means clocks are wrong by many
    hours; the POSIX-v-UTC differences just cost seconds.)

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

    David Brownell
     

20 Oct, 2007

1 commit

  • Most of these fixes were already submitted for old kernel versions, and were
    approved, but for some reason they never made it into the releases.

    Because this is a consolidation of a couple old missed patches, it touches both
    Kconfigs and documentation texts.

    Signed-off-by: Matt LaPlante
    Acked-by: Randy Dunlap
    Signed-off-by: Adrian Bunk

    Matt LaPlante
     

17 Oct, 2007

1 commit

  • This patch adds an RTC class driver for the Maxim/Dallas 1374 RTC chip,
    based on drivers/i2c/chips/ds1374.c. It supports alarm functionality.

    Signed-off-by: Scott Wood
    Acked-by: Alessandro Zummo
    Cc: David Brownell
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Scott Wood
     

01 Aug, 2007

2 commits

  • Change Kconfig objects from "menu, config" into "menuconfig" so that the
    user can disable the whole feature without having to enter the menu first.

    Signed-off-by: Jan Engelhardt
    Cc: David Brownell
    Cc: Alessandro Zummo
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Jan Engelhardt
     
  • The arm26 port has been in a state where it was far from even compiling
    for quite some time.

    Ian Molton agreed with the removal.

    Signed-off-by: Adrian Bunk
    Cc: Ian Molton
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Adrian Bunk
     

22 Jul, 2007

2 commits

  • This patch adds support for the Simtek STK17TA8 timekeeping chip.

    The STK17TA8 is quite similar to the DS1553, but differs in register layout
    and in various control bits in the registers. I chose to make this a new
    driver to avoid confusion in the code and to not get lost in #ifdefs.

    Signed-off-by: Thomas Hommel
    Cc: Alessandro Zummo
    Cc: David Brownell
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Thomas Hommel
     
  • Various people have expressed surprise that their modular RTC drivers don't
    seem to work for initializing the system time at boot. To help avoid such
    unpleasantness, make the Kconfig text point out that the driver probably
    needs to be statically linked.

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

    David Brownell
     

20 Jul, 2007

1 commit


18 Jul, 2007

9 commits

  • Add Texas Instruments TWL92330/Menelaus Power Management chip driver. This
    includes voltage regulators, Dual slot memory card tranceivers and
    real-time clock(RTC).

    The support for RTC is integrated with this driver only; it is not separate
    module. Passes 'rtctest' on OMAP H4 EVM, other than lack of "periodic"
    (1/N second) IRQs. System wakeup alarms (from suspend-to-RAM) work too.

    The battery keeps the RTC active over power off, so once you set clock
    (rdate/ntpdate/etc, then "hwclock -w") then RTC_HCTOSYS at boot time will
    behave as expected.

    Cc: "Jean Delvare"
    Cc: "Tony Lindgren"
    Cc: "David Brownell"
    Signed-off-by: Trilok Soni
    Acked-by: Alessandro Zummo
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Tony Lindgren
     
  • RTC driver for Dallas/Maxim DS126 chips used in SNI RM200/RM400

    [akpm@linux-foundation.org: cleanups]
    Signed-off-by: Thomas Bogendoerfer
    Acked-by: Alessandro Zummo
    Cc: David Brownell
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Thomas Bogendoerfer
     
  • [akpm@linux-foundation.org: x86_64 build fix]
    [akpm@linux-foundation.org: The acpi guys changed the bin_attribute code]
    Signed-off-by: Mark Zhan
    Cc: Alessandro Zummo
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Mark Zhan
     
  • Add a watchdog driver interface to rtc-m41t80 driver. This is derived from
    works by Alexander Bigga

    Signed-off-by: Atsushi Nemoto
    Signed-off-by: Alexander Bigga
    Cc: David Brownell
    Acked-by: Alessandro Zummo
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Atsushi Nemoto
     
  • This is a new-style i2c driver for ST M41T80 series RTC chip, derived from
    works by Alexander Bigga who wrote the original
    rtc-m41txx.c based on drivers/i2c/chips/m41t00.c driver.

    This driver supports M41T8[0-4] and M41ST8[457]. The old m41t00 driver
    supports M41T00, M41T81 and M41T85(M41ST85). While the M41T00 chip is now
    supported by rtc-ds1307 driver, this driver does not include support for
    the chip.

    [akpm@linux-foundation.org: remove bogus `static']
    Signed-off-by: Atsushi Nemoto
    Signed-off-by: Alexander Bigga
    Acked-by: Mark A. Greer
    Cc: David Brownell
    Acked-by: Alessandro Zummo
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Atsushi Nemoto
     
  • Minor fix to the Kconfig for RTCs: don't display section headers for I2C or
    SPI unless they're configured. And depend on SPI_MASTER; having slave
    support wouldn't help.

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

    David Brownell
     
  • RTC class is mature enough.

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

    Alessandro Zummo
     
  • Tested on the AT32AP7000/ATSTK1000. Driver does only suport time, wake up
    and a very simple alarm, because of hardware limitations.

    Hardware documentation can be found in the AT32AP7000 data sheet, which can
    be downloaded from

    http://www.atmel.com/dyn/products/datasheets.asp?family_id=682

    From: David Brownell

    - Strike some alarm setup code that's no longer needed.
    (This patch seems to have gotten lost somewhere...)

    - Make the driver name (and its module alias) match what
    the platform setup code uses, so the driver can bind
    and hotplug.

    [akpm@linux-foundation.org: fix several checkpatch.pl warnings]
    Signed-off-by: Hans-Christian Egtvedt
    Signed-off-by: Haavard Skinnemoen
    Cc: Alessandro Zummo
    Signed-off-by: David Brownell
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Hans-Christian Egtvedt
     
  • Convert rtc-rs5c372 to be a "new style" I2C driver, and update the
    Kconfig text to be more complete..

    Verified on an OMAP H4 development platform, along with a board
    init patch to declare its rv5c387a device.

    Only one defconfig -- powerpc/linkstation -- uses this driver; but
    several other platforms use it, just without defconfig support.

    Such platforms need to be converted so (a) their I2C adapter driver
    supports new-style drivers, and (b) board init code declares this
    I2C device.

    Signed-off-by: David Brownell
    Cc: Voipio Riku
    Acked-by: Guennadi Liakhovetski
    Cc: Martin Michlmayr
    Cc: Jean Delvare
    Cc: Alessandro Zummo
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    David Brownell
     

10 Jul, 2007

1 commit


17 May, 2007

1 commit

  • Make drivers/rtc/Kconfig be clearer about what the various "interfaces"
    actually mean, by showing path names.

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

    David Brownell