]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
sf: winbond: fix page_size
authorStephen Warren <swarren@nvidia.com>
Mon, 13 Aug 2012 22:46:21 +0000 (16:46 -0600)
committerMike Frysinger <vapier@gentoo.org>
Tue, 14 Aug 2012 15:34:30 +0000 (11:34 -0400)
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>
drivers/mtd/spi/winbond.c

index 6d9b3affb0ddb4ab426bc68904455fa68df772b0..f6aab3d32f459d82d0a9e606f4382fe67981160f 100644 (file)
@@ -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;