MLK-22582-1: nand: enable the Randomizer module for mx7 and mx8 when call
authorAlice Guo <alice.guo@nxp.com>
Thu, 24 Oct 2019 15:49:50 +0000 (23:49 +0800)
committerYe Li <ye.li@nxp.com>
Mon, 28 Oct 2019 08:11:52 +0000 (01:11 -0700)
commitb01b7e1d591de90be780449b26ff7e542dd545e9
tree2614179401b5197eddcae29798e7234a4a58ab87
parent0e90d909442d8cdbd6d7fa7d967ac6009a2eb52a
MLK-22582-1: nand: enable the Randomizer module for mx7 and mx8 when call
the function named mxs_nand_ecc_read_page

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>
(cherry picked from commit e8271a1c7621cc3607d3e9c7b0a872342b5f4c95)
drivers/mtd/nand/raw/mxs_nand.c