Statistics
| Branch: | Revision:

root / hw / block / pflash_cfi01.c @ feature-archipelago

History | View | Annotate | Download (30.2 kB)

# Date Author Comment
fa21a7b1 12/17/2013 09:42 pm Roy Franz

Add max device width parameter for NOR devices

For handling CFI and device ID reads, we need to not only know the
width that a NOR flash device is configured for, but also its maximum
width. The maximum width addressing mode is used for multi-width
parts no matter which width they are configured for. The most common...

4433e660 12/17/2013 09:42 pm Roy Franz

Fix CFI query responses for NOR flash

This change fixes the CFI query responses to handle NOR device
widths that are different from the bank width. Support is also
added for multi-width devices in a x8 configuration. This is
typically x8/x16 devices, but the CFI specification mentions...

0163a2dc 12/17/2013 09:42 pm Roy Franz

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....

4b6fedca 12/17/2013 09:42 pm Roy Franz

rename pflash_t member width to bank_width

Rename the 'width' member of the pflash_t structure
in preparation for adding a bank_width member.

Signed-off-by: Roy Franz <>
Reviewed-by: Peter Maydell <>
Message-id: ...

1997b485 12/17/2013 09:42 pm Roy Franz

Add device-width property to pflash_cfi01

The width of the devices that make up the flash interface
is required to mask certain commands, in particular the
write length for buffered writes. This length will be presented
to each device on the interface by the program writing the flash,...

2003889f 12/17/2013 09:42 pm Roy Franz

return status for each NOR flash device

Now that we know how wide each flash device that makes up the bank is,
return status for each device in the bank. Leave existing code
that treats 32 bit wide banks as composed of two 16 bit devices as otherwise
we may break configurations that do not set the device_width propery....

bc72ad67 08/22/2013 08:14 pm Alex Bligh

aio / timers: Switch entire codebase to the new timer API

This is an autogenerated patch using scripts/switch-timer-api.

Switch the entire code base to using the new timer API.

Note this patch may introduce some line length issues.

Signed-off-by: Alex Bligh <>...

125ee0ed 07/29/2013 06:37 pm Marcel Apfelbaum

devices: Associate devices to their logical category

The category will be used to sort the devices displayed in
the command line help.

Signed-off-by: Marcel Apfelbaum <>
Message-id: ...

ea0a4f34 07/28/2013 08:59 pm Paul Burton

pflash_cfi01: duplicate status byte from bits 23:16 for 32bit reads

The firmware commonly used with MIPS Malta boards (YAMON) reads the
status of the pflash with a 32bit memory access. On real hardware
this results in the status byte being mirrored in the upper 16 bits...

e40b5f3e 07/23/2013 01:37 am Hu Tao

pflash_cfi01: Use QOM realize for pflash_cfi01

Signed-off-by: Hu Tao <>
[AF: Renamed argument]
Signed-off-by: Andreas Färber <>

f1b44f0e 07/23/2013 01:37 am Hu Tao

pflash-cfi01: QOM'ify some more

Introduce type constant and replace FROM_SYSBUS().

Signed-off-by: Hu Tao <>
[AF: Renamed parent field]
Signed-off-by: Andreas Färber <>

2d256e6f 07/04/2013 06:42 pm Paolo Bonzini

hw/block: pass owner to memory_region_init* functions

Signed-off-by: Paolo Bonzini <>

2c9b15ca 07/04/2013 06:42 pm Paolo Bonzini

memory: add owner argument to initialization functions

Signed-off-by: Paolo Bonzini <>

5f9a5ea1 05/24/2013 07:42 pm Jan Kiszka

memory: Rename readable flag to romd_mode

"Readable" is a very unfortunate name for this flag because even a
rom_device region will always be readable from the guest POV. What
differs is the mapping, just like the comments had to explain already.
Also, readable could currently be understood as being a generic region...

49ab747f 04/08/2013 07:13 pm Paolo Bonzini

hw: move target-independent files to subdirectories

This patch tackles all files that are compiled once, moving
them to subdirectories of hw/.

Signed-off-by: Paolo Bonzini <>