From 39c56dd3a0e0b4d67a3d08f2e22e76e178792929 Mon Sep 17 00:00:00 2001 From: Md Sadre Alam Date: Wed, 22 May 2019 12:48:50 +0530 Subject: [PATCH] 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 --- drivers/mtd/spi/sf_params.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/mtd/spi/sf_params.c b/drivers/mtd/spi/sf_params.c index 62956990c6..4608cbafd1 100644 --- a/drivers/mtd/spi/sf_params.c +++ b/drivers/mtd/spi/sf_params.c @@ -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},