From: Ulf Samuelsson <ulf.samuelsson@atmel.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] spi/atmel: add AT45DB321D support
Date: Wed, 07 Jan 2009 20:40:30 +0100 [thread overview]
Message-ID: <1231357230.32308.433.camel@elrond.atmel.com> (raw)
In-Reply-To: <f47cd1b50901061448k5ca946f4tf15cfa8c4a6ae0a8@mail.gmail.com>
tis 2009-01-06 klockan 14:48 -0800 skrev Brad Bozarth:
> 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)
>
The dataflash is normally 528/1056 bytes per page.
D versions can be configured to have a 512/1024 bytes per page
but that is wasting a couple of percent of the dataflash.
Best Regards
Ulf Samuelsson
> 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@jcrosoft.com> wrote:
> > On 02:59 Tue 30 Dec , Mike Frysinger wrote:
> >> From: Brad Bozarth <bflinux@yumbrad.com>
> >>
> >> Signed-off-by: Brad Bozarth <bflinux@yumbrad.com>
> >> Signed-off-by: Mike Frysinger <vapier@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.
> >
> _______________________________________________
> U-Boot mailing list
> U-Boot at lists.denx.de
> http://lists.denx.de/mailman/listinfo/u-boot
next prev parent reply other threads:[~2009-01-07 19:40 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-12-30 7:59 [U-Boot] [PATCH] spi/atmel: add AT45DB321D support Mike Frysinger
2009-01-04 6:36 ` Jean-Christophe PLAGNIOL-VILLARD
2009-01-04 6:44 ` [U-Boot] [PATCH 1/1] mtd: add some at45 spi flash support Jean-Christophe PLAGNIOL-VILLARD
2009-03-19 7:18 ` Mike Frysinger
2009-03-19 9:03 ` Jean-Christophe PLAGNIOL-VILLARD
2009-01-06 22:48 ` [U-Boot] [PATCH] spi/atmel: add AT45DB321D support Brad Bozarth
2009-01-07 19:40 ` Ulf Samuelsson [this message]
2009-01-08 10:51 ` Mike Frysinger
2009-01-08 20:33 ` Brad Bozarth
2009-01-08 20:39 ` Mike Frysinger
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1231357230.32308.433.camel@elrond.atmel.com \
--to=ulf.samuelsson@atmel.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox