android_kernel_motorola_sm6225/drivers/rtc
David Brownell e07e232cd9 rtc-cmos: export nvram in sysfs
This makes rtc-cmos export its NVRAM, like several other RTC drivers.

It still works within the limits of the current CMOS_READ/CMOS_WRITE calls,
which don't understand how to access multiple register banks.  The primary
impact of that limitation is that Linux can't access the uppermost 128
bytes of NVRAM on many systems.

Note that this isn't aiming to be a drop-in replacement for the legacy
/dev/nvram support.  (Presumably that has real users, and isn't just
getting carried forward automatically?) Userspace handles more work:

 - When userspace code updates NVRAM, that will need to include
   updating any platform-specific checksums that may apply.

 - No /proc/driver/nvram file will parse and display NVRAM data
   according to whichever boot firmware your board expects.

Also minor pnp-related updates: update a comment, remove dead code.

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Alessandro Zummo <a.zummo@towertech.it>
Cc: Bjorn Helgaas <bjorn.helgaas@hp.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2008-02-06 10:41:13 -08:00
..
class.c RTC: periodic irq fix 2007-10-16 09:43:13 -07:00
hctosys.c rtc_hctosys expects RTCs in UTC (doc) 2007-11-14 18:45:36 -08:00
interface.c rtc: use class iteration api 2008-01-24 20:40:44 -08:00
Kconfig Cosmetic fixes to RTC subsystem's Kconfig 2008-02-06 10:41:13 -08:00
Makefile rtc: RTC class driver for the ds1374 2007-10-16 09:43:13 -07:00
rtc-at32ap700x.c rtc-at32ap700x: fix irq init oops 2007-12-17 19:28:15 -08:00
rtc-at91rm9200.c rtc: suspend()/resume() restores system clock 2007-05-08 11:15:18 -07:00
rtc-bfin.c Blackfin On-Chip RTC driver update for supporting BF54x 2007-07-15 02:33:26 +08:00
rtc-cmos.c rtc-cmos: export nvram in sysfs 2008-02-06 10:41:13 -08:00
rtc-core.h rtc: update to class device removal patches 2007-05-08 11:15:18 -07:00
rtc-dev.c RTC: assure proper memory ordering with respect to RTC_DEV_BUSY flag 2007-12-05 09:21:18 -08:00
rtc-ds1216.c RTC driver for DS1216 chips 2007-07-17 10:23:09 -07:00
rtc-ds1307.c rtc-ds1307 exports NVRAM 2007-11-14 18:45:36 -08:00
rtc-ds1374.c rtc: RTC class driver for the ds1374 2007-10-16 09:43:13 -07:00
rtc-ds1553.c RTCs: handle NVRAM better 2007-11-14 18:45:36 -08:00
rtc-ds1672.c i2c: normal_i2c can be made const (rtc drivers) 2008-01-27 18:14:47 +01:00
rtc-ds1742.c RTCs: handle NVRAM better 2007-11-14 18:45:36 -08:00
rtc-ep93xx.c [PATCH] constify rtc_class_ops: update drivers 2006-10-01 00:39:25 -07:00
rtc-isl1208.c i2c: normal_i2c can be made const (rtc drivers) 2008-01-27 18:14:47 +01:00
rtc-lib.c revert "rtc: Add rtc_merge_alarm()" 2007-05-08 11:15:18 -07:00
rtc-m41t80.c correct name for rtc-m41t80 2007-08-22 19:52:45 -07:00
rtc-m48t59.c RTCs: handle NVRAM better 2007-11-14 18:45:36 -08:00
rtc-m48t86.c [PATCH] constify rtc_class_ops: update drivers 2006-10-01 00:39:25 -07:00
rtc-max6900.c i2c: normal_i2c can be made const (rtc drivers) 2008-01-27 18:14:47 +01:00
rtc-max6902.c spi: use simplified spi_sync() calling convention 2007-12-05 09:21:19 -08:00
rtc-omap.c rtc-omap build fix 2007-05-17 05:23:05 -07:00
rtc-pcf8563.c i2c: normal_i2c can be made const (rtc drivers) 2008-01-27 18:14:47 +01:00
rtc-pcf8583.c rtc-pcf8583: Don't abuse I2C_M_NOSTART 2008-02-06 10:41:13 -08:00
rtc-pl031.c remove asm/bitops.h includes 2007-10-19 11:53:41 -07:00
rtc-proc.c rtc: remove rest of class_device 2007-05-08 11:15:18 -07:00
rtc-rs5c313.c rtc-rs5c313.c: add error handling to avoid hardware hangup 2007-05-11 08:29:35 -07:00
rtc-rs5c348.c [PATCH] rtc: Make rtc-rs5c348 driver hotplug-aware 2007-08-27 02:16:58 +01:00
rtc-rs5c372.c rtc-rs5c372 becomes a new-style i2c driver 2007-07-17 10:23:08 -07:00
rtc-s3c.c rtc-s3c: Use is_power_of_2() macro for simplicity. 2008-02-06 10:41:13 -08:00
rtc-sa1100.c [ARM] pxa/sa1100: replace wakeup support 2008-01-26 15:07:51 +00:00
rtc-sh.c rtc: rtc-sh: Split out the CPU defs to asm/cpu/. 2008-01-28 13:18:58 +09:00
rtc-stk17ta8.c RTCs: handle NVRAM better 2007-11-14 18:45:36 -08:00
rtc-sysfs.c Add missing newlines to some uses of dev_<level> messages 2007-10-18 14:37:28 -07:00
rtc-test.c rtc: rtc interfaces don't use class_device 2007-05-08 11:15:18 -07:00
rtc-v3020.c RTC v3020 fixes 2007-09-11 17:21:20 -07:00
rtc-vr41xx.c [MIPS] separate platform_device registration for VR41xx RTC 2007-07-12 17:41:15 +01:00
rtc-x1205.c i2c: normal_i2c can be made const (rtc drivers) 2008-01-27 18:14:47 +01:00