diff options
author | Potin Lai <potin.lai@quantatw.com> | 2022-05-09 20:56:16 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2022-05-16 14:59:21 +0300 |
commit | 73ae97e3cabb580639f02f12a192324a53c4bebb (patch) | |
tree | 75993ead71b8c30e737fe692cd07ab4cf4a0920d /include/linux/backing-dev-defs.h | |
parent | eeaec1ea05c0e0f08e04c6844f20cc24a2fcc0f4 (diff) | |
download | linux-73ae97e3cabb580639f02f12a192324a53c4bebb.tar.xz |
mtd: spi-nor: aspeed: set the decoding size to at least 2MB for AST2600
In AST2600, the unit of SPI CEx decoding range register is 1MB, and end
address offset is set to the acctual offset - 1MB. If the flash only has
1MB, the end address will has same value as start address, which will
causing unexpected errors.
This patch set the decoding size to at least 2MB to avoid decoding errors.
Tested:
root@bletchley:~# dmesg | grep "aspeed-smc 1e631000.spi: CE0 window"
[ 59.328134] aspeed-smc 1e631000.spi: CE0 window resized to 2MB (AST2600 Decoding)
[ 59.343001] aspeed-smc 1e631000.spi: CE0 window [ 0x50000000 - 0x50200000 ] 2MB
root@bletchley:~# devmem 0x1e631030
0x00100000
Tested-by: Jae Hyun Yoo <quic_jaehyoo@quicinc.com>
Signed-off-by: Potin Lai <potin.lai@quantatw.com>
[ clg : Ported on new spi-mem driver ]
Signed-off-by: Cédric Le Goater <clg@kaod.org>
Link: https://lore.kernel.org/r/20220509175616.1089346-12-clg@kaod.org
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'include/linux/backing-dev-defs.h')
0 files changed, 0 insertions, 0 deletions