]> git.ipfire.org Git - people/ms/u-boot.git/commit
tools: mxsboot: calculate ECC block level dynamically
authorJörg Krause <joerg.krause@embedded.rocks>
Tue, 11 Aug 2015 11:44:26 +0000 (13:44 +0200)
committerStefano Babic <sbabic@denx.de>
Wed, 2 Sep 2015 13:26:11 +0000 (15:26 +0200)
commitcef9f020c1fa123577bcd54596e54fd3a79a1b38
treeb0e4b2de841283e8155671adb7967a6a9c018287
parent422dc9a6d6c169c4b68db2dcdb9d5e0fb8af0581
tools: mxsboot: calculate ECC block level dynamically

For pages of 2048 bytes the current setting of the ECC Error Correction Level
is only true for an oob size of 64 bytes and wrong for all others.

Instead of hard-coding every possible combination of page size and oob size use
the dynamic calculation of the ECC strength introduced in commit
6121560d7714d6d8e41ce1687a1388a1a8fea4cb.

Cc: Marek Vasut <marex@denx.de>
Signed-off-by: Jörg Krause <joerg.krause@embedded.rocks>
Acked-by: Marek Vasut <marex@denx.de>
Reviewed-by: Stefano Babic <sbabic@denx.de>
tools/mxsboot.c