summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2009-06-19 03:20:06 -0400
committerMike Frysinger <vapier@gentoo.org>2009-07-06 18:46:20 -0400
commit7d907f0ea993b179a197d8db2a36f122bc673c2d (patch)
tree54398a03e6a8212edd18f1028efa417f9839caf0
parent3e88337b225bf796f6df21d0a7f591530e9d4ce0 (diff)
downloadu-boot-imx-7d907f0ea993b179a197d8db2a36f122bc673c2d.zip
u-boot-imx-7d907f0ea993b179a197d8db2a36f122bc673c2d.tar.gz
u-boot-imx-7d907f0ea993b179a197d8db2a36f122bc673c2d.tar.bz2
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>
-rw-r--r--drivers/mtd/spi/sst.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/mtd/spi/sst.c b/drivers/mtd/spi/sst.c
index 62236d4..cf7bce8 100644
--- a/drivers/mtd/spi/sst.c
+++ b/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[] = {
{
.idcode1 = 0x01,
- .nr_sectors = 128,
+ .nr_sectors = 16,
.name = "SST25WF512",
},{
.idcode1 = 0x02,
- .nr_sectors = 256,
+ .nr_sectors = 32,
.name = "SST25WF010",
},{
.idcode1 = 0x03,
- .nr_sectors = 512,
+ .nr_sectors = 64,
.name = "SST25WF020",
},{
.idcode1 = 0x04,
- .nr_sectors = 1024,
+ .nr_sectors = 128,
.name = "SST25WF040",
},
};