qemu-e2k/hw/arm
Roy Franz 0163a2dc80 Fix NOR flash device ID reading
Fix NOR flash manufacturer and device ID reading.  This now
properly takes into account device widths and device max widths
as required.  The reading of these IDs uses the same max_width
dependent addressing as CFI queries.

The old code remains for chips that don't specify a device width,
as the new code relies on a device width being set in order to
properly operate.  The existing code seems very broken.

Only ident0 and ident1 are used in the new code, as other fields
relate to the lock state of blocks in flash.

The VExpress flash configuration has been updated to match
the new code, as the existing definition was 'wrong' in order
to return the expected results with the broken device ID code.

Signed-off-by: Roy Franz <roy.franz@linaro.org>
Message-id: 1386279359-32286-8-git-send-email-roy.franz@linaro.org
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
2013-12-17 19:42:27 +00:00
..
armv7m.c armv7m: Don't enforce use of kernel for qtest 2013-11-05 17:47:29 +01:00
boot.c hw/arm/boot: Allow boards to provide an fdt blob 2013-12-10 13:28:30 +00:00
collie.c hw: Clean up bogus default boot order 2013-08-28 10:16:47 +03:00
exynos4_boards.c exynos4_boards: Silence lack of -smp 2 warning for qtest 2013-11-05 17:47:29 +01:00
exynos4210.c hw/arm/exynos4210: Don't use arm_pic_init_cpu() 2013-08-20 14:54:28 +01:00
gumstix.c gumstix: Don't enforce use of -pflash for qtest 2013-11-05 17:47:28 +01:00
highbank.c hw: Clean up bogus default boot order 2013-08-28 10:16:47 +03:00
integratorcp.c integrator/cp: add support for REFCNT register 2013-12-10 13:24:51 +00:00
kzm.c hw: Clean up bogus default boot order 2013-08-28 10:16:47 +03:00
mainstone.c mainstone: Don't enforce use of -pflash for qtest 2013-11-05 17:47:28 +01:00
Makefile.objs hw/arm: Add 'virt' platform 2013-12-10 13:28:30 +00:00
musicpal.c hw: Clean up bogus default boot order 2013-08-28 10:16:47 +03:00
nseries.c hw: Clean up bogus default boot order 2013-08-28 10:16:47 +03:00
omap1.c aio / timers: Switch entire codebase to the new timer API 2013-08-22 19:14:24 +02:00
omap2.c hw/arm/omap*: Don't use arm_pic_init_cpu() 2013-08-20 14:54:29 +01:00
omap_sx1.c omap_sx1: Don't enforce use of kernel or flash for qtest 2013-11-05 17:47:29 +01:00
palm.c palm: Don't enforce loading ROM or kernel for qtest 2013-11-05 17:47:29 +01:00
pxa2xx_gpio.c pxa2xx_gpio: QOM cast cleanup for PXA2xxGPIOInfo 2013-07-29 21:06:26 +02:00
pxa2xx_pic.c pxa2xx_pic: QOM cast cleanup for PXA2xxPICState 2013-07-29 21:06:26 +02:00
pxa2xx.c aio / timers: Switch entire codebase to the new timer API 2013-08-22 19:14:24 +02:00
realview.c hw: Clean up bogus default boot order 2013-08-28 10:16:47 +03:00
spitz.c pc,pci,virtio fixes and cleanups 2013-09-03 12:31:07 -05:00
stellaris.c pc,pci,virtio fixes and cleanups 2013-09-03 12:31:07 -05:00
strongarm.c aio / timers: Switch entire codebase to the new timer API 2013-08-22 19:14:24 +02:00
strongarm.h hw: move private headers to hw/ subdirectories. 2013-04-08 18:13:16 +02:00
tosa.c hw: Clean up bogus default boot order 2013-08-28 10:16:47 +03:00
versatilepb.c hw: Clean up bogus default boot order 2013-08-28 10:16:47 +03:00
vexpress.c Fix NOR flash device ID reading 2013-12-17 19:42:27 +00:00
virt.c hw/arm/virt: Support -cpu host 2013-12-10 13:28:49 +00:00
xilinx_zynq.c hw: Clean up bogus default boot order 2013-08-28 10:16:47 +03:00
z2.c z2: Don't enforce use of -pflash for qtest 2013-11-05 17:47:28 +01:00