Commit 7ff2063388f6e4e49842ad846dbd155e29858dd4
Committed by
Ye Li
1 parent
ca581bdeff
Exists in
smarc_8mq_lf_v2020.04
and in
4 other branches
MLK-22580-1: nand: mxs_nand: make imx8mm-evk can use hardware BCH and
randomizer imx8mm-evk needs to BCH encode and set NAND page number needed to be randomized modify conditional compilation Should use CONFIG_IMX8M, it should apply to imx8mq/mm/mn Signed-off-by: Alice Guo <alice.guo@nxp.com> (cherry picked from commit da40cd99e4b3a78d2609ee777d60d651d6dbc313)
Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff
drivers/mtd/nand/raw/mxs_nand.c
... | ... | @@ -859,7 +859,7 @@ |
859 | 859 | d->cmd.pio_words[4] = (dma_addr_t)nand_info->data_buf; |
860 | 860 | d->cmd.pio_words[5] = (dma_addr_t)nand_info->oob_buf; |
861 | 861 | |
862 | - if (is_mx7() && nand_info->en_randomizer) { | |
862 | + if ((is_mx7() && nand_info->en_randomizer) || (is_imx8m() && nand_info->en_randomizer)) { | |
863 | 863 | d->cmd.pio_words[2] |= GPMI_ECCCTRL_RANDOMIZER_ENABLE | |
864 | 864 | GPMI_ECCCTRL_RANDOMIZER_TYPE2; |
865 | 865 | /* |