[U-Boot] [PATCH] spi/atmel: add AT45DB321D support
Brad Bozarth
prettygood at cs.stanford.edu
Tue Jan 6 23:48:05 CET 2009
Hmm... looking in the datasheet I have, it says:
Flexible Erase Options
– Page Erase (512 Bytes)
– Block Erase (4 Kbytes)
– Sector Erase (64 Kbytes)
– Chip Erase (32 Mbits)
which would indicate a third combo, different from mine and yours :)
--- 16 blocks/sector and 64 sectors... The code only does page based
so far, so I didn't catch this.
-brad
On Sat, Jan 3, 2009 at 10:36 PM, Jean-Christophe PLAGNIOL-VILLARD
<plagnioj at jcrosoft.com> wrote:
> On 02:59 Tue 30 Dec , Mike Frysinger wrote:
>> From: Brad Bozarth <bflinux at yumbrad.com>
>>
>> Signed-off-by: Brad Bozarth <bflinux at yumbrad.com>
>> Signed-off-by: Mike Frysinger <vapier at gentoo.org>
>> ---
>> drivers/mtd/spi/atmel.c | 8 ++++++++
>> 1 files changed, 8 insertions(+), 0 deletions(-)
>>
>> diff --git a/drivers/mtd/spi/atmel.c b/drivers/mtd/spi/atmel.c
>> index 10fcf0c..581b710 100644
>> --- a/drivers/mtd/spi/atmel.c
>> +++ b/drivers/mtd/spi/atmel.c
>> @@ -52,6 +52,14 @@ to_atmel_spi_flash(struct spi_flash *flash)
>>
>> static const struct atmel_spi_flash_params atmel_spi_flash_table[] = {
>> {
>> + .idcode1 = 0x27,
>> + .l2_page_size = 9,
>> + .pages_per_block = 8,
>> + .blocks_per_sector = 32,
>> + .nr_sectors = 32,
>> + .name = "AT45DB321D",
> the AT45DB321D is supposed to be 64 block per sector and 64 sectors
>
> Best Regards,
> J.
>
More information about the U-Boot
mailing list