]> err.no Git - linux-2.6/commit
[MTD] MAPS: Add parameter to amd76xrom to override rom window size
authorRyan Jackson <rjackson@lnxi.com>
Fri, 20 Oct 2006 21:41:01 +0000 (14:41 -0700)
committerDavid Woodhouse <dwmw2@infradead.org>
Sat, 21 Oct 2006 15:15:43 +0000 (16:15 +0100)
commitc9073ce02adfa273a3d6d53eac8c4c035510ad9c
tree6191b00b2241ff73c6139a7a513b17073e10c46a
parent1ef93a0f668c8736cb6b6c3a43a5b8101efa24af
[MTD] MAPS: Add parameter to amd76xrom to override rom window size

The 2 bits controlling the window size are often set to allow reading the
BIOS, but too small to allow writing, since the lock registers are 4MiB
lower in the address space than the data.  This is intended to prevent
flashing the bios, perhaps accidentally.

The bits are 6 and 7.  If both bits are set, it is a 5MiB window. If only
the 7 Bit is set, it is a 4MiB window.  Otherwise, it is a 64KiB window.

This parameter allows the driver to override the BIOS settings.

Signed-off-by: Ryan Jackson <rjackson@lnxi.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
drivers/mtd/maps/amd76xrom.c