lib: add crc7 from Linux
authorThomas Chou <thomas@wytron.com.tw>
Tue, 11 Jan 2011 01:38:20 +0000 (09:38 +0800)
committerWolfgang Denk <wd@denx.de>
Tue, 18 Jan 2011 22:38:08 +0000 (23:38 +0100)
commited6ce67a2c7071cf5032848caa8bbf037e5ac51b
tree4af693e4e589c5d6c8043fa97439e116da828b90
parent5c4fa2eea0d68764766b5996baa5508f64f1f64b
lib: add crc7 from Linux

Crc7 is used to compute mmc spi command packet checksum.

Copy from linux-2.6 lib/crc7.c include/linux/crc7.h
commit ad241528c4919505afccb022acbab3eeb0db4d80

Signed-off-by: Thomas Chou <thomas@wytron.com.tw>
include/linux/crc7.h [new file with mode: 0644]
lib/Makefile
lib/crc7.c [new file with mode: 0644]