summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Warren <swarren@nvidia.com>2012-08-13 16:46:21 -0600
committerMike Frysinger <vapier@gentoo.org>2012-08-14 11:34:30 -0400
commitc75942c7b792f420d1bf41e15cb1c00189f26ccd (patch)
tree24b2e6ae8cb0fe4940caf6d84f5e19c82804df0a
parentd945ce970414673f895ac2b2449d7b7a9edf58d0 (diff)
downloadu-boot-imx-c75942c7b792f420d1bf41e15cb1c00189f26ccd.zip
u-boot-imx-c75942c7b792f420d1bf41e15cb1c00189f26ccd.tar.gz
u-boot-imx-c75942c7b792f420d1bf41e15cb1c00189f26ccd.tar.bz2
sf: winbond: fix page_size
Commit a4ed3b6 "sf: inline data constants" modified winbond.c's page_size from 256 to 4096. This prevents either/both of "sf write" writing the correct data, or "sf read" from reading the correct data back. This allows U-Boot running on Compulab Tegra to upgrade itself. Signed-off-by: Stephen Warren <swarren@nvidia.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
-rw-r--r--drivers/mtd/spi/winbond.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/spi/winbond.c b/drivers/mtd/spi/winbond.c
index 6d9b3af..f6aab3d 100644
--- a/drivers/mtd/spi/winbond.c
+++ b/drivers/mtd/spi/winbond.c
@@ -99,7 +99,7 @@ struct spi_flash *spi_flash_probe_winbond(struct spi_slave *spi, u8 *idcode)
flash->write = spi_flash_cmd_write_multi;
flash->erase = spi_flash_cmd_erase;
flash->read = spi_flash_cmd_read_fast;
- flash->page_size = 4096;
+ flash->page_size = 256;
flash->sector_size = 4096;
flash->size = 4096 * 16 * params->nr_blocks;