]> git.sur5r.net Git - u-boot/commit
mtd: nand: am335x: spl: Fix copying of image
authorLokesh Vutla <lokeshvutla@ti.com>
Tue, 24 May 2016 05:04:41 +0000 (10:34 +0530)
committerTom Rini <trini@konsulko.com>
Fri, 27 May 2016 19:41:41 +0000 (15:41 -0400)
commit0985294604bb713d56c8dbedf1da462c7f86f90f
treef7c4116895d247932996a6f5c27d2c7fc589c1af
parent00d559561ea7f774a7758c70b79e1e7e38b62459
mtd: nand: am335x: spl: Fix copying of image

When offset is not aligned to page address, it is possible that extra offset
will be read from nand. Adjust the image such that first byte of the image
is at load address after the first page is read.

Reviewed-by: Tom Rini <trini@konsulko.com>
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
drivers/mtd/nand/am335x_spl_bch.c