Skip to content
Snippets Groups Projects
Commit c75942c7 authored by Stephen Warren's avatar Stephen Warren Committed by Mike Frysinger
Browse files

sf: winbond: fix page_size


Commit a4ed3b65 "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: default avatarStephen Warren <swarren@nvidia.com>
Signed-off-by: default avatarMike Frysinger <vapier@gentoo.org>
parent d945ce97
No related branches found
No related tags found
No related merge requests found
...@@ -99,7 +99,7 @@ struct spi_flash *spi_flash_probe_winbond(struct spi_slave *spi, u8 *idcode) ...@@ -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->write = spi_flash_cmd_write_multi;
flash->erase = spi_flash_cmd_erase; flash->erase = spi_flash_cmd_erase;
flash->read = spi_flash_cmd_read_fast; flash->read = spi_flash_cmd_read_fast;
flash->page_size = 4096; flash->page_size = 256;
flash->sector_size = 4096; flash->sector_size = 4096;
flash->size = 4096 * 16 * params->nr_blocks; flash->size = 4096 * 16 * params->nr_blocks;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment