From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrzej Wolski Date: Mon, 20 Jul 2009 23:12:01 +0200 Subject: [U-Boot] [PATCH] atmel_df_pow2: standalone to convert dataflashes to pow2 In-Reply-To: <1247981518-16441-1-git-send-email-vapier@gentoo.org> References: <1247981518-16441-1-git-send-email-vapier@gentoo.org> Message-ID: <4A64DDA1.4090400@poczta.fm> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de > 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