diff options
author | Robert Lippert <roblip@gmail.com> | 2017-11-27 15:01:08 -0800 |
---|---|---|
committer | Joel Stanley <joel@jms.id.au> | 2018-02-13 15:00:32 +1030 |
commit | f88ff976e92b60a99cd8ff057cb87c4a74c1cd54 (patch) | |
tree | 1534c8596038305e84bc6a3242ce66ef94a069ee | |
parent | 16f997c564f873b4fdf12fc90ee8a9f6f6080961 (diff) | |
download | talos-obmc-uboot-f88ff976e92b60a99cd8ff057cb87c4a74c1cd54.tar.gz talos-obmc-uboot-f88ff976e92b60a99cd8ff057cb87c4a74c1cd54.zip |
aspeed/flash: fix buffersize of MX6651235F flash chip
The MX66L51235F had a wrong write buffersize of 512 bytes set which
causes issues when trying to write an environment block >256 bytes
as the SPI chip only "listens" to the last 256 bytes.
Signed-off-by: Robert Lippert <rlippert@google.com>
Signed-off-by: Joel Stanley <joel@jms.id.au>
-rw-r--r-- | arch/arm/mach-aspeed/flash.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-aspeed/flash.c b/arch/arm/mach-aspeed/flash.c index e1e3cf8d7f..907e785d8c 100644 --- a/arch/arm/mach-aspeed/flash.c +++ b/arch/arm/mach-aspeed/flash.c @@ -1009,7 +1009,7 @@ static ulong flash_get_size (ulong base, flash_info_t *info) info->readcmd = 0x0b; info->dualport = 0; info->dummybyte = 1; - info->buffersize = 512; + info->buffersize = 256; WriteClk = 50; EraseClk = 20; ReadClk = 50; |