UPSTREAM: mtd/spi: fix block count for is25lq040b

This spi-nor is 4Mbit/512KB

Fixes: b4fbcbc5a5 ("mtd/spi: add support for is25lq040b")
Change-Id: I0f7204f031a01c3954c1e2186e1b658c35048239
Signed-off-by: Sean Nyekjaer <sean.nyekjaer@prevas.dk>
Reviewed-by: Jagan Teki <jagan@openedev.com>
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
(cherry picked from commit 065592b40b41b11ee66d8ff71a55156bf1b35088)
This commit is contained in:
Sean Nyekjaer 2017-12-15 08:51:54 +01:00 committed by Kever Yang
parent 0cced741cf
commit d359f29f6b
1 changed files with 1 additions and 1 deletions

View File

@ -68,10 +68,10 @@ const struct spi_flash_info spi_flash_ids[] = {
{"GD25Q256", INFO(0xc84019, 0x0, 64 * 1024, 512, RD_FULL | WR_QPP | SECT_4K)},
#endif
#ifdef CONFIG_SPI_FLASH_ISSI /* ISSI */
{"is25lq040b", INFO(0x9d4013, 0x0, 64 * 1024, 8, 0) },
{"is25lp032", INFO(0x9d6016, 0x0, 64 * 1024, 64, 0) },
{"is25lp064", INFO(0x9d6017, 0x0, 64 * 1024, 128, 0) },
{"is25lp128", INFO(0x9d6018, 0x0, 64 * 1024, 256, 0) },
{"is25lq040b", INFO(0x9d4013, 0x0, 64 * 1024, 64, 0) },
#endif
#ifdef CONFIG_SPI_FLASH_MACRONIX /* MACRONIX */
{"mx25l2006e", INFO(0xc22012, 0x0, 64 * 1024, 4, 0) },