commit | 0cbaa44841db3d06d2a21ae4ab679882033f3dbe | [log] [tgz] |
---|---|---|
author | Jeremy Kerr <jk@ozlabs.org> | Tue Jun 06 16:08:39 2017 -0500 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Fri Jun 09 11:52:07 2017 +0200 |
tree | c400ed524386505865c81fe8f11396f98e529c48 | |
parent | 414c1026319bc10796a868c1fa0ba312c4ca9e67 [diff] |
lib: Add crc4 module Add a little helper for crc4 calculations. This works 4-bits-at-a-time, using a simple table approach. We will need this in the FSI core code, as well as any master implementations that need to calculate CRCs in software. Signed-off-by: Jeremy Kerr <jk@ozlabs.org> Signed-off-by: Chris Bostic <cbostic@linux.vnet.ibm.com> Signed-off-by: Joel Stanley <joel@jms.id.au> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>