From: Tom Rini Date: Fri, 25 Jul 2014 21:25:47 -0400 Subject: [U-Boot] [U-Boot, U-boot, v2, 1/3] mtd: nand: davinci: add opportunity to write keystone U-boot image In-Reply-To: <1404475407-4486-2-git-send-email-ivan.khoronzhuk@ti.com> References: <1404475407-4486-2-git-send-email-ivan.khoronzhuk@ti.com> Message-ID: <20140726012547.GW1847@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Fri, Jul 04, 2014 at 03:03:25PM +0300, Khoronzhuk, Ivan wrote: > The Keystone SoCs use the same NAND driver as Davinci. > This patch adds opportunity to write Keystone U-boot image to NAND > device using appropriate RBL ECC layout. This is needed only if RBL > boots U-boot from NAND device and that's supposed that raw u-boot > partition is used only for writing image. > > The main problem is that default Davinci ECC layout is different from > Keystone RBL layout. To read U-boot image the RBL needs that image was > written using RBL ECC layout. > > The BBT table is written using default Davinci layout and has to > be updated using one. The BBT can be updated only while erasing > chip or by forced bad block assigning, so erase function has to > use native ecc layout in order to be able to write BBT correctly. > So if we're writing to NAND U-boot address we use RBL layout for > others we use default ECC layout. > > Also remove definition for CONFIG_CMD_NAND_ECCLAYOUT as there is no > reasons to use ECC layout commands. It was added by mistake. > > Signed-off-by: Ivan Khoronzhuk Applied to u-boot-ti/master, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: