[PATCH 5/5] misc: atsha204a: Remove duplicate CRC-16 implementation

Tom Rini trini at konsulko.com
Fri Apr 22 01:57:13 CEST 2022


On Tue, Apr 12, 2022 at 11:20:44AM +0200, Pali Rohár wrote:

> 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 at kernel.org>
> Reviewed-by: Stefan Roese <sr at denx.de>

Applied to u-boot/master, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20220421/06f394fa/attachment.sig>


More information about the U-Boot mailing list