summaryrefslogtreecommitdiff
path: root/drivers/mtd/nand/mxs_nand.h
diff options
context:
space:
mode:
authorKonstantin Porotchkin <kostap@marvell.com>2018-08-29 11:56:15 +0300
committerStefan Roese <sr@denx.de>2018-09-19 09:02:34 +0200
commit2057eb0b163ac31fee00ae6ef9e8e27dcca65fd5 (patch)
tree2243bf2d827d3de4e8cce3c31aafc1de2cd8ede2 /drivers/mtd/nand/mxs_nand.h
parentb0d7c106c9703498f12bb1254b02574c803874a0 (diff)
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>
Diffstat (limited to 'drivers/mtd/nand/mxs_nand.h')
0 files changed, 0 insertions, 0 deletions