diff options
author | oliver@schinagl.nl <oliver@schinagl.nl> | 2016-11-25 16:30:31 +0100 |
---|---|---|
committer | Joe Hershberger <joe.hershberger@ni.com> | 2017-02-07 10:54:32 -0600 |
commit | 1d3c5392396726915558e95e08947e44d994d9bb (patch) | |
tree | 7004c8afd67639f8eeeafadfeb9da0801ed8fd0d /include/u-boot | |
parent | 26d40b0a17f86f748803f3c60926e614177117b7 (diff) | |
download | u-boot-imx-1d3c5392396726915558e95e08947e44d994d9bb.zip u-boot-imx-1d3c5392396726915558e95e08947e44d994d9bb.tar.gz u-boot-imx-1d3c5392396726915558e95e08947e44d994d9bb.tar.bz2 |
tools: Allow crc8 to be used
This patch enables crc8 to be used from within the tools directory using
u-boot/crc.h.
Signed-off-by: Olliver Schinagl <o.schinagl@ultimaker.com>
Reviewed-by: Joe Hershberger <joe.hershberger@ni.com>
Signed-off-by: Olliver Schinagl <oliver@schinagl.nl>
Diffstat (limited to 'include/u-boot')
-rw-r--r-- | include/u-boot/crc.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/u-boot/crc.h b/include/u-boot/crc.h index 754ac72..6764d58 100644 --- a/include/u-boot/crc.h +++ b/include/u-boot/crc.h @@ -9,6 +9,9 @@ #ifndef _UBOOT_CRC_H #define _UBOOT_CRC_H +/* lib/crc8.c */ +unsigned int crc8(unsigned int crc_start, const unsigned char *vptr, int len); + /* lib/crc32.c */ uint32_t crc32 (uint32_t, const unsigned char *, uint); uint32_t crc32_wd (uint32_t, const unsigned char *, uint, uint); |