author | Alex Waterman <awaterman@dawning.com> | |
Wed, 6 Apr 2011 20:01:52 +0000 (16:01 -0400) | ||
committer | Scott Wood <scottwood@freescale.com> | |
Fri, 15 Apr 2011 20:53:11 +0000 (15:53 -0500) | ||
commit | 65a9db7be0868be91ba81b9b5bf821de82e6d9b0 | |
tree | 72b55838665f15e88417bd482503ed60b94fb651 | tree | snapshot (tar.xz tar.gz zip) |
parent | 62974546888c1f9abfdb4ba9f66465a5d102d4d3 | commit | diff |
nand_spl: Fix large page nand_command()
This patch changes the large page nand_command() routine to use a word
offset instead of a byte offset. The 'offs' argument gets divided by 2
so that the offset passed to nand_command() is still by byte offset.
Originally, the offset was not shifted and when too high an offset was
requested the nand chip would attempt to read non-existent data.
Signed-off-by: Alex Waterman <awaterman@dawning.com>
This patch changes the large page nand_command() routine to use a word
offset instead of a byte offset. The 'offs' argument gets divided by 2
so that the offset passed to nand_command() is still by byte offset.
Originally, the offset was not shifted and when too high an offset was
requested the nand chip would attempt to read non-existent data.
Signed-off-by: Alex Waterman <awaterman@dawning.com>
nand_spl/nand_boot.c | diff | blob | history |