diff options
author | Peter Maydell <peter.maydell@linaro.org> | 2014-06-19 18:06:25 +0100 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2014-06-19 18:06:25 +0100 |
commit | a0289b8af3b05fe47bee8e434d1c978382a5a8cc (patch) | |
tree | 9b2904efa9fee5697120cbb9c6078f502b9ff3f3 /kvm-all.c | |
parent | 476e75ab9d2cf2ad8ac8dfd9530c9fee148c2c7a (diff) |
hw/block/pflash_cfi01: Report correct size info for parallel configs
If the flash device is configured with a device-width which is
not equal to the bank-width, indicating that it is actually several
narrow flash devices in parallel, the CFI table should report the
number of blocks and the size of a single device, not of the whole
combined setup. This stops Linux from complaining:
"NOR chip too large to fit in mapping. Attempting to cope..."
As usual, we retain the old broken but backwards compatible behaviour
when the device-width is not specified.
Reviewed-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Message-id: 1402409025-25694-1-git-send-email-peter.maydell@linaro.org
Diffstat (limited to 'kvm-all.c')
0 files changed, 0 insertions, 0 deletions