target-arm: Define and use ARM_FEATURE_CBAR
Some processors (notably A9 within Highbank) define and use theCP15 configuration base address (CBAR). This is vendor specificso its best implemented as a CPU property (otherwise we would needvendor specific child classes for every ARM implementation)....
target-arm/cpu: Convert reset CBAR to a property
The reset value of the CP15 CBAR is a vendor (machine) configurableproperty. If ARM_FEATURE_CBAR is set, add it as a property atpost_init time.
Signed-off-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com>...
Add max device width parameter for NOR devices
For handling CFI and device ID reads, we need to not only know thewidth that a NOR flash device is configured for, but also its maximumwidth. The maximum width addressing mode is used for multi-widthparts no matter which width they are configured for. The most common...
Fix CFI query responses for NOR flash
This change fixes the CFI query responses to handle NOR devicewidths that are different from the bank width. Support is alsoadded for multi-width devices in a x8 configuration. This istypically x8/x16 devices, but the CFI specification mentions...
Fix NOR flash device ID reading
Fix NOR flash manufacturer and device ID reading. This nowproperly takes into account device widths and device max widthsas required. The reading of these IDs uses the same max_widthdependent addressing as CFI queries....
target-arm/helper.c: Allow cp15.c15 dummy override
The cp15.c15 space is implementation defined. Currently there is adummy placeholder register RAZing it. Allow overriding of this RAZso implementations of specific registers can take precedence.
rename pflash_t member width to bank_width
Rename the 'width' member of the pflash_t structurein preparation for adding a bank_width member.
Signed-off-by: Roy Franz <roy.franz@linaro.org>Reviewed-by: Peter Maydell <peter.maydell@linaro.org>Message-id: 1386279359-32286-2-git-send-email-roy.franz@linaro.org...
Add device-width property to pflash_cfi01
The width of the devices that make up the flash interfaceis required to mask certain commands, in particular thewrite length for buffered writes. This length will be presentedto each device on the interface by the program writing the flash,...
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 codethat treats 32 bit wide banks as composed of two 16 bit devices as otherwisewe may break configurations that do not set the device_width propery....
Set proper device-width for vexpress flash
Create vexpress specific pflash registrationfunction which properly configures the device-widthof 16 bits (2 bytes) for the NOR flash on thevexpress platform. This change is required forbuffered flash writes to work properly....
View all revisions | View revisions
Also available in: Atom