[PATCH 5/6] cmd: nandbcb: Reconstruct the nandbcb tool for all platforms

sbabic at denx.de
2020-05-11T10:18:16Z

> From: Han Xu <han.xu@nxp.com>
> The original nandbcb tool was designed for imx6 only, when trying to
> leverage it to replace the kobs-ng tool, we found the design is not
> friendly for supporting all platforms. To support all iMX6/7/8 platforms
> and for easy further maintain, I reconstruct the structure of the tool.
> The main changes including:
> 1. Use platform_data to determine the logic branches rather than simply
> use SOC name.
> 2. More data structures as parameter for functions.
> 3. Global variables to define the FCB/DBBT/FW locations.
> 4. Implement the kobs-ng default 4 FCB/4 DBBT/2 FW layout.
> 5. Support Hamming coding/ 40bit BCH/ 62bit BCH coding FCB.
> 6. Dump and compare all written FCB/DBBT to verify data integrity.
> The tool has been verified on iMX6Q/DL, 6SX, 7D, 6ULL, iMX8QX, iMX8MM.
> Signed-off-by: Han Xu <han.xu@nxp.com>
> Signed-off-by: Peng Fan <peng.fan@nxp.com>
Applied to u-boot-imx, master, thanks !

Best regards,
Stefano Babic

--
=====================================================================
DENX Software Engineering GmbH, Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de
=====================================================================