[U-Boot] [PATCH 2/2 v1] sf: Update AT45DB021D flash chip parameters
Peng Fan
Peng.Fan at freescale.com
Wed Mar 25 15:11:11 CET 2015
Hi Haikun,
On 3/25/2015 8:36 PM, Haikun Wang wrote:
> From: Haikun Wang <Haikun.Wang at freescale.com>
>
> AT45DB021D flash size is 1024*page_size, page_size is 256bytes or 264bytes.
> In current params_table its size is 64*1024*8, recorrect it.
> Add AT45DB_CMD flag for AT45DB021D.
>
> Signed-off-by: Haikun Wang <Haikun.Wang at freescale.com>
> ---
>
> Changes in v1: None
>
> drivers/mtd/spi/sf_params.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/mtd/spi/sf_params.c b/drivers/mtd/spi/sf_params.c
> index c12e8c6..c6b68f8 100644
> --- a/drivers/mtd/spi/sf_params.c
> +++ b/drivers/mtd/spi/sf_params.c
> @@ -16,7 +16,8 @@
> const struct spi_flash_params spi_flash_params_table[] = {
> #ifdef CONFIG_SPI_FLASH_ATMEL /* ATMEL */
> {"AT45DB011D", 0x1f2200, 0x0, 64 * 1024, 4, RD_NORM, SECT_4K},
> - {"AT45DB021D", 0x1f2300, 0x0, 64 * 1024, 8, RD_NORM, SECT_4K},
> + {"AT45DB021D", 0x1f2300, 0x0, 64 * 1024, 4,
> + RD_NORM, AT45DB_CMD},
It's sector size is 32K, count is 8, right?
> {"AT45DB041D", 0x1f2400, 0x0, 64 * 1024, 8, RD_NORM, SECT_4K},
> {"AT45DB081D", 0x1f2500, 0x0, 64 * 1024, 16, RD_NORM, SECT_4K},
> {"AT45DB161D", 0x1f2600, 0x0, 64 * 1024, 32, RD_NORM, SECT_4K},
Regards,
Peng.
More information about the U-Boot
mailing list