summaryrefslogtreecommitdiff
path: root/drivers/mtd/spi/spi_flash.c
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2016-06-04 08:49:08 -0400
committerTom Rini <trini@konsulko.com>2016-06-04 08:49:08 -0400
commitc41c649c2fdec7bf6ef84173597cc3feabdb7828 (patch)
treea6b7e3d25eb9d62e5b9989040aa39ddd1c00a83a /drivers/mtd/spi/spi_flash.c
parentf15715afea3e7b576fad1f6877a073b65576a335 (diff)
parentff78aa2ba19cda755b01818fb3caf2aca9236865 (diff)
downloadu-boot-imx-c41c649c2fdec7bf6ef84173597cc3feabdb7828.zip
u-boot-imx-c41c649c2fdec7bf6ef84173597cc3feabdb7828.tar.gz
u-boot-imx-c41c649c2fdec7bf6ef84173597cc3feabdb7828.tar.bz2
Merge branch 'master' of git://git.denx.de/u-boot-fsl-qoriq
Diffstat (limited to 'drivers/mtd/spi/spi_flash.c')
-rw-r--r--drivers/mtd/spi/spi_flash.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/mtd/spi/spi_flash.c b/drivers/mtd/spi/spi_flash.c
index fa0e799..64d4e0f 100644
--- a/drivers/mtd/spi/spi_flash.c
+++ b/drivers/mtd/spi/spi_flash.c
@@ -1072,7 +1072,8 @@ int spi_flash_scan(struct spi_flash *flash)
* sector that is not overlaid by the parameter sectors.
* The uniform sector erase command has no effect on parameter sectors.
*/
- if (jedec == 0x0219 && (ext_jedec & 0xff00) == 0x4d00) {
+ if ((jedec == 0x0219 || (jedec == 0x0220)) &&
+ (ext_jedec & 0xff00) == 0x4d00) {
int ret;
u8 id[6];
@@ -1146,7 +1147,7 @@ int spi_flash_scan(struct spi_flash *flash)
* have 256b pages.
*/
if (ext_jedec == 0x4d00) {
- if ((jedec == 0x0215) || (jedec == 0x216))
+ if ((jedec == 0x0215) || (jedec == 0x216) || (jedec == 0x220))
flash->page_size = 256;
else
flash->page_size = 512;