Skip to contentSkip to conversation

aspeed/flash: fix definition of the MT25QL01GB chip

PATCH In review Cédric Le Goater 2 participants 2 messages May 16, 2019 – May 17, 2019

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 aspeed/flash: fix definition of the MT25QL01GB chip

Fixes 3c33d1e84ebb ("aspeed/flash: Add MT25QL01GB chip")

---

It should fix https://github.com/openbmc/u-boot/issues/18

 arch/arm/mach-aspeed/flash.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
arch/arm/mach-aspeed/flash.c +2 -1
index 54a6059f4216..db69d514952f 100644
@@ -1149,10 +1149,11 @@ static ulong flash_get_size (ulong base, flash_info_t *info)
 			info->readcmd = 0x0b;
 			info->dualport = 0;
 			info->dummybyte = 1;
-			info->buffersize = 1;
+			info->buffersize = 256;
 			WriteClk = 50;
 			EraseClk = 25;
 			ReadClk  = 50;
+			info->address32 = 1;
 			break;
 
 		default:	/* use JEDEC ID */
Signature · 1 line
2.20.1
Tested-by on v1 1/1
#1 lore raw
Quoted 1 line · Cédric Le Goater
Quoted 26 lines
Fixes 3c33d1e84ebb ("aspeed/flash: Add MT25QL01GB chip")

---

It should fix https://github.com/openbmc/u-boot/issues/18

 arch/arm/mach-aspeed/flash.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
arch/arm/mach-aspeed/flash.c +2 -1
index 54a6059f4216..db69d514952f 100644
@@ -1149,10 +1149,11 @@ static ulong flash_get_size (ulong base,
 flash_info_t *info)
 			info->readcmd = 0x0b;
 			info->dualport = 0;
 			info->dummybyte = 1;
-			info->buffersize = 1;
+			info->buffersize = 256;
 			WriteClk = 50;
 			EraseClk = 25;
 			ReadClk  = 50;
+			info->address32 = 1;
 			break;
 

default: /* use JEDEC ID */