]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
[MTD] CFI: Use 16-bit access to autoselect/read device id data
authorTodd Poynor <tpoynor@mvista.com>
Tue, 15 Nov 2005 23:28:20 +0000 (23:28 +0000)
committerThomas Gleixner <tglx@mtd.linutronix.de>
Tue, 29 Nov 2005 18:27:24 +0000 (19:27 +0100)
commit987d24018dc83d27e491674c50ff2272f51eb719
tree3cef69b2a161db4a194cec81b9f3bd28b009dc0c
parent3eb8ceac486ed9b6eceed098423f1ca6b180ec9d
[MTD] CFI: Use 16-bit access to autoselect/read device id data

Recent models of Intel/Sharp and Spansion CFI flash now have significant
bits in the upper byte of device ID codes, read via what Spansion calls
"autoselect" and Intel calls "read device identifier".  Currently these
values are truncated to the low 8 bits in the mtd data structures, as
all CFI read query info has previously been read one byte at a time.
Add a new method for reading 16-bit info, currently just manufacturer
and device codes; datasheets hint at future uses for upper bytes in
other fields.

Signed-off-by: Todd Poynor <tpoynor@mvista.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
drivers/mtd/chips/cfi_probe.c
include/linux/mtd/cfi.h