rtc-cmos: export second NVRAM bank
commitbb93d802ae5c1949977cc6da247b218240677f11
authorDavid Brownell <dbrownell@users.sourceforge.net>
Sun, 19 Oct 2008 03:27:47 +0000 (18 20:27 -0700)
committerThomas Gleixner <tglx@linutronix.de>
Mon, 20 Oct 2008 10:56:57 +0000 (20 12:56 +0200)
treecca340364d38836fd1904da6479bd68113ad2211
parent0cfd81031a26717fe14380d18275f8e217571615
rtc-cmos: export second NVRAM bank

Teach rtc-cmos about the second bank of registers found on most modern x86
systems, giving access to 128 bytes more NVRAM.

This version only sees that extra NVRAM when both register banks are
provided as part of *one* PNP resource.  Since BIOS on some systems
presents them using two IO resources, and nothing merges them, this can't
always show all the NVRAM.  (We're supposed to be able to use PNP id
PNP0b01 too, but BIOS tables doesn't often seem to use that particular
option.)

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Cc: torvalds@linux-foundation.org
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Bjorn Helgaas <bjorn.helgaas@hp.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
drivers/rtc/rtc-cmos.c