[PATCH u-boot] aspeed/flash: fix buffersize of MX6651235F flash chip
Robert Lippert
roblip at gmail.com
Tue Nov 28 10:01:08 AEDT 2017
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 at google.com>
---
arch/arm/mach-aspeed/flash.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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;
--
2.15.0.417.g466bffb3ac-goog
More information about the openbmc
mailing list