commit | 2e2693027d5f064281d6fac7afef430cee553691 | [log] [tgz] |
---|---|---|
author | Pali Rohár <pali@kernel.org> | Tue Apr 12 11:20:44 2022 +0200 |
committer | Tom Rini <trini@konsulko.com> | Thu Apr 21 14:32:40 2022 -0400 |
tree | b6cbe06ca61fb437f23cfe830951f8f4a8005fdc | |
parent | be4ee4eda3e3c920f296a7a4b9b0a711299eac01 [diff] |
misc: atsha204a: Remove duplicate CRC-16 implementation ATSHA204A uses bit-reversed checksum of standard CRC-16 with polynomial x^16 + x^15 + x^2 + 1. This ATSHA204A specific checksum can be calculated just by using common U-Boot functions bitrev16() and crc16(). So replace custom driver CRC-16 implementation by common U-Boot functions. Signed-off-by: Pali Rohár <pali@kernel.org> Reviewed-by: Stefan Roese <sr@denx.de>