driver: spi: Add support for Macronix-(MX25U51245G) nor flash.

This change is to add support for Macronix-(MX25U51245G) nor
flash device.

The total density of this device is 64 MiB. Sector size 64K.
64K sector we are cosidering due to 64K sector size works with
CMD_ERASE_64K.

Total number of sector for this device will 1024 because,

64K * 1024 = 64MiB.

Change-Id: Ia1f2117bc42457e4b3c25934ff1fdcb798e4ea6f
Signed-off-by: Md Sadre Alam <mdalam@codeaurora.org>
This commit is contained in:
Md Sadre Alam 2019-05-22 12:48:50 +05:30
parent 648bdc897b
commit 39c56dd3a0

View file

@ -60,6 +60,7 @@ const struct spi_flash_params spi_flash_params_table[] = {
{"MX25U12835F", 0xc22538, 0x0, 64 * 1024, 256, RD_NORM, 0},
{"MX25U25635F", 0xc22539, 0x0, 64 * 1024, 512, RD_NORM, 0},
{"MX66U1G45GM", 0xc2253b, 0x0, 64 * 1024, 2048, RD_FULL, 0},
{"MX25U51245G", 0xc2253a, 0x0, 64 * 1024, 1024, RD_FULL, 0},
#endif
#ifdef CONFIG_SPI_FLASH_SPANSION /* SPANSION */
{"S25FL008A", 0x010213, 0x0, 64 * 1024, 16, RD_NORM, 0},