Bläddra i källkod

sf: sst: fix sector size

Looks like when I was encoding the sector sizes, I forgot to divide by 8
(due to the stupid marketing driven process that declares all sizes in
useless megabits and not megabytes).

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Mike Frysinger 16 år sedan
förälder
incheckning
7d907f0ea9
1 ändrade filer med 4 tillägg och 4 borttagningar
  1. 4 4
      drivers/mtd/spi/sst.c

+ 4 - 4
drivers/mtd/spi/sst.c

@@ -56,19 +56,19 @@ static inline struct sst_spi_flash *to_sst_spi_flash(struct spi_flash *flash)
 static const struct sst_spi_flash_params sst_spi_flash_table[] = {
 static const struct sst_spi_flash_params sst_spi_flash_table[] = {
 	{
 	{
 		.idcode1 = 0x01,
 		.idcode1 = 0x01,
-		.nr_sectors = 128,
+		.nr_sectors = 16,
 		.name = "SST25WF512",
 		.name = "SST25WF512",
 	},{
 	},{
 		.idcode1 = 0x02,
 		.idcode1 = 0x02,
-		.nr_sectors = 256,
+		.nr_sectors = 32,
 		.name = "SST25WF010",
 		.name = "SST25WF010",
 	},{
 	},{
 		.idcode1 = 0x03,
 		.idcode1 = 0x03,
-		.nr_sectors = 512,
+		.nr_sectors = 64,
 		.name = "SST25WF020",
 		.name = "SST25WF020",
 	},{
 	},{
 		.idcode1 = 0x04,
 		.idcode1 = 0x04,
-		.nr_sectors = 1024,
+		.nr_sectors = 128,
 		.name = "SST25WF040",
 		.name = "SST25WF040",
 	},
 	},
 };
 };