From mboxrd@z Thu Jan 1 00:00:00 1970 From: sbabic at denx.de Date: Mon, 11 May 2020 12:18:16 +0200 (CEST) Subject: [PATCH 5/6] cmd: nandbcb: Reconstruct the nandbcb tool for all platforms In-Reply-To: <20200505140404.27407-6-peng.fan@nxp.com> Message-ID: <20200511101816.969FD819D7@phobos.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de > From: Han Xu > 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 > Signed-off-by: Peng Fan 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 =====================================================================