nand: enable the Randomizer module for i.mx7 and i.mx8
authorAlice Guo <alice.guo@nxp.com>
Mon, 4 May 2020 14:09:03 +0000 (22:09 +0800)
committerStefano Babic <sbabic@denx.de>
Sun, 10 May 2020 18:55:20 +0000 (20:55 +0200)
commitfe04bcd7e86ba2b9ccbcf83b5afc278e69115756
tree37d31e59fae56922b75b4e5d60c48bd97e8af0df
parentf7bb012ab7e19d3ede6c0e9a39edd6a37bd598ff
nand: enable the Randomizer module for i.mx7 and i.mx8

To enable the Randomizer module, set GPMI_ECCCTRL[RANDOMIZER_ENABLE] to
1, then set GPMI_ECCCOUNT[RANDOMIZER_PAGE] to select randomizer page
number needed to be randomized.

Signed-off-by: Alice Guo <alice.guo@nxp.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
drivers/mtd/nand/raw/mxs_nand.c