[U-Boot] [PATCH 0/2] iMX6 SPL NAND flash detection fixes

Andrea Scian andrea.scian at dave.eu
Tue Jan 29 14:33:29 UTC 2019


While working on different iMX6 platforms, I've encountered some issue
with a couple of NAND device while booting from SPL.

It seems that there's a NAND protocol violation in ONFI detection: I try a
naive fix, which works only for LP NAND. However, AFAIK, all the mxs_nand_spl code
is minimalistic and assume it's working with a LP NAND. A more generic approach
will have a bigger impact and requires more tests.

I've also changed mxs_flash_ident() code so, when legacy full-ident detection
is enabled, this one is used only as fall back when ONFI detection fails.

This is closer to standard MTD implementation than the previous solution,
where ONFI and full-ident detection where mutually exclusive.

This has been originally developed on old v2017.03 but ported on current master.

Kind Regards,

Andrea Scian

Andrea Scian (2):
  mtd: mxs_nand_spl: fix nand_command protocol violation
  mtd: mxs_nand_spl: use legacy probe only if ONFI fails

 drivers/mtd/nand/raw/mxs_nand_spl.c | 26 +++++++++++++++++++-------
 1 file changed, 19 insertions(+), 7 deletions(-)

-- 
2.19.2



More information about the U-Boot mailing list