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
     

12 May, 2007

1 commit

  • * 'upstream' of git://ftp.linux-mips.org/pub/scm/upstream-linus: (28 commits)
    [MIPS] Rework cobalt_board_id
    [MIPS] Use RTC_CMOS for Cobalt
    [MIPS] Use platform_device for Cobalt UART
    [MIPS] Separate Alchemy processor based boards config
    [MIPS] Fix build error in atomic64_cmpxchg
    [MIPS] Run checksyscalls for N32 and O32 ABI
    [MIPS] tlbex: use __maybe_unused
    [MIPS] excite: use __maybe_unused
    [MIPS] Add extern cobalt_board_id
    [MIPS] Remove unused CONFIG_TOSHIBA_BOARDS
    [MIPS] Rename tb0229_defconfig to tb0219_defconfig
    [MIPS] Update tb0229_defconfig; add CONFIG_GPIO_TB0219.
    [MIPS] Add minimum defconfig for RBHMA4200
    [MIPS] SB1: Build fix.
    [MIPS] Drop __devinit tag from allocate_irqno() and free_irqno()
    [MIPS] clocksource: use CLOCKSOURCE_MASK() macro
    [MIPS] Remove LIMITED_DMA support
    [MIPS] Remove Momenco Jaguar ATX support
    [MIPS] Remove Momenco Ocelot G support
    [MIPS] FPU hazard handling
    ...

    Linus Torvalds
     

11 May, 2007

2 commits


10 May, 2007

1 commit


09 May, 2007

8 commits

  • Fix several typos in help text in Kconfig* files.

    Signed-off-by: David Sterba
    Signed-off-by: Adrian Bunk

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

    Alessandro Zummo
     
  • RTC class suspend/resume support, re-initializing the system clock on resume
    from the clock used to initialize it at boot time.

    - The reinit-on-resume is hooked to the existing RTC_HCTOSYS config
    option, on the grounds that a clock good enough for init must also
    be good enough for re-init.

    - Inlining a version of the code used by ARM, to save and restore the
    delta between a selected RTC and the current system wall-clock time.

    - Removes calls to that ARM code from AT91, OMAP1, and S3C RTCs. This
    means that systems using those RTCs across suspend/resume will likely
    want to change their kernel configs to enable RTC_HCTOSYS.

    If HCTOSYS isn't using a second RTC (with battery?), this changes the
    system's initial date from Jan 1970 to the epoch this hardware uses:
    1998 for AT91, 2000 for OMAP1 (assuming no split power mode), etc.

    This goes on top of the patch series removing "struct class_device" usage
    from the RTC framework. That's all needed for class suspend()/resume().

    Signed-off-by: David Brownell
    Acked-by: Greg Kroah-Hartman
    Acked-By: Alessandro Zummo
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    David Brownell
     
  • This simplifies the RTC procfs support by removing the class_interface that
    hooks it into the rtc core. If it's configured, then sysfs support is now
    part of the RTC core, and is never a separate module.

    It also removes the class_interface hook, now that its last remaining user is
    gone. (That API is usable only with a "struct class_device".)

    It's another step towards being able to remove "struct class_device".

    Signed-off-by: David Brownell
    Acked-by: Greg Kroah-Hartman
    Acked-By: Alessandro Zummo
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    David Brownell
     
  • This simplifies the RTC sysfs support by removing the class_interface that
    hooks it into the rtc core. If it's configured, then sysfs support is now
    part of the RTC core, and is never a separate module.

    It's another step towards being able to remove "struct class_device".

    Signed-off-by: David Brownell
    Acked-by: Greg Kroah-Hartman
    Acked-By: Alessandro Zummo
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    David Brownell
     
  • This simplifies the /dev support by removing a superfluous class_device (the
    /sys/class/rtc-dev stuff) and the class_interface that hooks it into the rtc
    core. Accordingly, if it's configured then /dev support is now part of the
    RTC core, and is never a separate module.

    It's another step towards being able to remove "struct class_device".

    [bunk@stusta.de: drivers/rtc/rtc-dev.c should #include "rtc-core.h"]
    Signed-off-by: David Brownell
    Acked-by: Greg Kroah-Hartman
    Acked-By: Alessandro Zummo
    Signed-off-by: Adrian Bunk
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    David Brownell
     
  • Signed-off-by: Dale Farnsworth.org
    Cc: Alessandro Zummo
    Cc: David Brownell
    Cc: Jean Delvare
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Dale Farnsworth
     
  • Add an RTC driver for Ricoh RS5C313 RTC chip.

    [akpm@linux-foundation.org: Zillions of coding-style fixes]
    [akpm@linux-foundation.org: build fixes]
    Signed-off-by: Nobuhiro Iwamatsu
    Cc: Alessandro Zummo
    Cc: David Brownell
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Nobuhiro Iwamatsu
     

08 May, 2007

1 commit

  • This patch implements the driver necessary use the Analog Devices Blackfin
    processor's on-chip RTC controller.

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

    Wu, Bryan
     

05 Mar, 2007

1 commit

  • Replace the I2C bus address, as per drivers/acorn/char/pcf8583.c.

    Also, since this driver also contains Acorn RiscPC specific code
    for obtaining the current year from the SRAM (and updating the
    platform specific checksum when writing new data back) this is
    NOT a platform independent driver.

    Document it as such, and update the dependencies to reflect this
    fact.

    Signed-off-by: Russell King

    Russell King
     

21 Feb, 2007

1 commit


12 Feb, 2007

1 commit

  • This is an "RTC framework" driver for the "CMOS" RTCs which are standard on
    PCs and some other platforms. That's MC146818 compatible silicon.
    Advantages of this vs. drivers/char/rtc.c (use one _or_ the other, only
    one will be able to claim the RTC irq) include:

    - This leverages both the new RTC framework and the driver model; both
    PNPACPI and platform device modes are supported. (A separate patch
    creates a platform device on PCs where PNPACPI isn't configured.)

    - It supports common extensions like longer alarms. (A separate patch
    exports that information from ACPI through platform_data.)

    - Likewise, system wakeup events use "real driver model support", with
    policy control via sysfs "wakeup" attributes and and using normal rtc
    ioctls to manage wakeup. (Patch in the works. The ACPI hooks are
    known; /proc/acpi/alarm can vanish. Making it work with EFI will
    be a minor challenge to someone with e.g. a MiniMac.)

    It's not yet been tested on non-x86 systems, without ACPI, or with HPET.
    And the RTC framework will surely have teething pains on "mainstream"
    PC-based systems (though must embedded Linux systems use it heavily), not
    limited to sorting out the "/dev/rtc0" issue (udev easily tweaked). Also,
    the ALSA rtctimer code doesn't use the new RTC API.

    Otherwise, this should be a no-known-regressions replacement for the old
    drivers/char/rtc.c driver, and should help the non-embedded distros (and
    the new timekeeping code) start to switch to the framework.

    Note also that any systems using "rtc-m48t86" are candidates to switch over
    to this more functional driver; the platform data is different, and the way
    bytes are read is different, but otherwise those chips should be compatible.

    [akpm@osdl.org: sparc32 fix]
    [akpm@osdl.org: sparc64 fix]
    Signed-off-by: David Brownell
    Cc: Woody Suwalski
    Cc: Alessandro Zummo
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    David Brownell
     

11 Dec, 2006

1 commit

  • The new Atmel AT91SAM9261 and AT91SAM9260 processors do not have the
    internal RTC peripheral. This RTC driver is therefore
    AT91RM9200-specific.

    This patch renames rtc-at91.c to rtc-at91rm9200.c, and changes the name
    of the configuration option.

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

    Andrew Victor
     

08 Dec, 2006

2 commits

  • The real time clocks ds1742 and ds1743 differs only in the size of the
    nvram. This patch changes the existing ds1742 driver to support also
    ds1743. The main change is that the nvram size is determined from the
    resource attached to the device.

    The patch have benefitted from suggestions from Atsushi Nemeto, who is the
    author of the ds1742 driver.

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

    Torsten Ertbjerg Rasmussen
     
  • This creates a new RTC-framework driver for the RTC/calendar module found
    in various OMAP1 chips. (OMAP2 and OMAP3 use external RTCs, like those in
    TI's multifunction PM companion chips.) It's been in the Linux-OMAP tree
    for several months now, and other trees before that, so it's quite stable.
    The most notable issue is that the OMAP IRQ code doesn't yet support the
    RTC IRQ as a wakeup event. Once that's fixed, a patch will be needed.

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

    David Brownell