[U-Boot] [PATCH 2/2 v1] sf: Update AT45DB021D flash chip parameters

Haikun.Wang at freescale.com Haikun.Wang at freescale.com
Thu Mar 26 03:21:40 CET 2015


On 3/25/2015 10:11 PM, Fan Peng-B51431 wrote:
> 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?
Fine, will update next version.
-- 

Best regards,
Wang Haikun
>>    	{"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