onenand: Handle various ID fields separately
authorJuha Riihimäki <juha.riihimaki@nokia.com>
Fri, 29 Jul 2011 15:35:26 +0000 (16:35 +0100)
committerAndrzej Zaborowski <andrew.zaborowski@intel.com>
Sat, 30 Jul 2011 04:42:16 +0000 (06:42 +0200)
commit5923ba424b4754a60ea5f6dc7777684e018648e6
tree1edf879ac432e8a72e29c33a22225fa9e5673a84
parentaf5a75f41c2fd172ceaa1cabd4bec99de8dde83a
onenand: Handle various ID fields separately

Handle the manufacturer, device and version IDs separately rather than
smooshing them all together into a single uint32_t. Note that the ID
registers are actually 16 bit, even though typically the top bits are 0
and the Read Identification Data command only returns the bottom 8 bits.

Signed-off-by: Juha Riihimäki <juha.riihimaki@nokia.com>
[Riku Voipio: Fixes and restructuring patchset]
Signed-off-by: Riku Voipio <riku.voipio@iki.fi>
[Peter Maydell: More fixes and cleanups for upstream submission]
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Andrzej Zaborowski <andrew.zaborowski@intel.com>
hw/flash.h
hw/nseries.c
hw/onenand.c