Commit 14772d11c4674adab8eea0132988a6f5e1f425dd
Committed by
Ye Li
1 parent
4886ec745e
Exists in
smarc_8mm-imx_v2019.04_4.19.35_1.1.0
and in
1 other branch
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 2 additions and 2 deletions Side-by-side Diff
drivers/mtd/nand/raw/mxs_nand.c
... | ... | @@ -858,7 +858,7 @@ |
858 | 858 | d->cmd.pio_words[4] = (dma_addr_t)nand_info->data_buf; |
859 | 859 | d->cmd.pio_words[5] = (dma_addr_t)nand_info->oob_buf; |
860 | 860 | |
861 | - if (is_mx7() && nand_info->en_randomizer) { | |
861 | + if ((is_mx7() && nand_info->en_randomizer) || (is_imx8m() && nand_info->en_randomizer)) { | |
862 | 862 | d->cmd.pio_words[2] |= GPMI_ECCCTRL_RANDOMIZER_ENABLE | |
863 | 863 | GPMI_ECCCTRL_RANDOMIZER_TYPE2; |
864 | 864 | /* |
... | ... | @@ -1457,7 +1457,7 @@ |
1457 | 1457 | } |
1458 | 1458 | #endif |
1459 | 1459 | |
1460 | -#if CONFIG_IS_ENABLED(MX7) || CONFIG_IS_ENABLED(MX6) | |
1460 | +#if defined(CONFIG_MX6) || defined(CONFIG_MX7) || defined(CONFIG_IMX8M) | |
1461 | 1461 | /* |
1462 | 1462 | * Read NAND layout for FCB block generation. |
1463 | 1463 | */ |