]> git.baikalelectronics.ru Git - uboot.git/commit
fix: nand: Replace hardcoded page chunk size with calculated one
authorKonstantin Porotchkin <kostap@marvell.com>
Wed, 29 Aug 2018 08:56:15 +0000 (11:56 +0300)
committerStefan Roese <sr@denx.de>
Wed, 19 Sep 2018 07:02:34 +0000 (09:02 +0200)
commit34d1ec18fd7a6e5fc8481c8a1bfb94745b5b9ec8
tree2243bf2d827d3de4e8cce3c31aafc1de2cd8ede2
parent84d77c54c11d86a9b4010d9640ab8c38ec286b98
fix: nand: Replace hardcoded page chunk size with calculated one

Replace the hardcoded value of page chink with value that
depends on flash page size and ECC strength.
This fixes nand access errors for 2K page flashes with 8-bit ECC.
Move the initial flash commannd function assignment past the ECC
structures initialization for eliminating usage of hardcoded page
chunk size value.

Signed-off-by: Konstantin Porotchkin <kostap@marvell.com>
Reviewed-by: Igal Liberman <igall@marvell.com>
Cc: Stefan Roese <sr@denx.de>
Cc: Simon Glass <sjg@chromium.org>
Signed-off-by: Stefan Roese <sr@denx.de>
drivers/mtd/nand/pxa3xx_nand.c