From: Andrzej Wolski <awolski@poczta.fm>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] atmel_df_pow2: standalone to convert dataflashes to pow2
Date: Mon, 20 Jul 2009 23:12:01 +0200 [thread overview]
Message-ID: <4A64DDA1.4090400@poczta.fm> (raw)
In-Reply-To: <1247981518-16441-1-git-send-email-vapier@gentoo.org>
> Atmel DataFlashes by default operate with pages with 1056 byte pages. They
> also have a "power of 2" mode where the pages are 1024 bytes in size.
Page size is not always 1056/1024 bytes, it is depended on total memory
size.
> + if (flash_set_pow2(slave)) {
> + puts("setting pow2 mode failed\n");
> + goto done;
> + }
> +
> + puts("OK!\n");
> +
> + done:
> + spi_release_bus(slave);
> + spi_free_slave(slave);
> + }
> +}
DafaFlash documentation says that "The device must be power cycled after
the completion of the program cycle to set the power of 2 page size", so
it would be good to print that information at the end of programming.
Regards,
Andrzej Wolski
----------------------------------------------------------------------
Daj odpoczac plecom - zmien auto na rower
Sprawdz >>>http://link.interia.pl/f2255
next prev parent reply other threads:[~2009-07-20 21:12 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-19 5:31 [U-Boot] [PATCH] atmel_df_pow2: standalone to convert dataflashes to pow2 Mike Frysinger
2009-07-20 21:12 ` Andrzej Wolski [this message]
2009-07-22 2:39 ` [U-Boot] [PATCH v2] " Mike Frysinger
2009-07-22 3:52 ` Peter Tyser
2009-07-22 4:38 ` Mike Frysinger
2009-07-22 4:52 ` Peter Tyser
2009-07-22 5:25 ` Mike Frysinger
2009-07-22 5:31 ` Mike Frysinger
2009-07-22 5:53 ` Peter Tyser
2009-07-22 5:58 ` Mike Frysinger
-- strict thread matches above, loose matches on Subject: below --
2009-07-23 20:37 [U-Boot] [PATCH] " Mike Frysinger
2009-07-24 0:17 ` Mike Frysinger
2009-09-04 19:31 ` Wolfgang Denk
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=4A64DDA1.4090400@poczta.fm \
--to=awolski@poczta.fm \
--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