diff --git a/board/8dtech/eco5pk/eco5pk.c b/board/8dtech/eco5pk/eco5pk.c index e05928f3222794dc755016aee6fa6772f1079b44..dcbd4835b39779753d63c38366925e81cec259a4 100644 --- a/board/8dtech/eco5pk/eco5pk.c +++ b/board/8dtech/eco5pk/eco5pk.c @@ -16,7 +16,7 @@ #include #include #include -#include +#include #include #include "eco5pk.h" diff --git a/board/armadeus/apf27/apf27.c b/board/armadeus/apf27/apf27.c index 0f0c8a4a97d2f29d2a039fa844f532bad1bd3829..bf2586d326aa9845e7976476ab00d1e445416cb5 100644 --- a/board/armadeus/apf27/apf27.c +++ b/board/armadeus/apf27/apf27.c @@ -16,8 +16,8 @@ #include #include #include +#include #include "apf27.h" -#include "crc.h" #include "fpga.h" DECLARE_GLOBAL_DATA_PTR; diff --git a/board/sunxi/board.c b/board/sunxi/board.c index 26284db1112bf1b176d350b53acd77375067b1d5..8e20dc7e436b36124c99c45436ca90cc4e32bd4c 100644 --- a/board/sunxi/board.c +++ b/board/sunxi/board.c @@ -28,7 +28,7 @@ #endif #include #include -#include +#include #include #include #include diff --git a/common/xyzModem.c b/common/xyzModem.c index 830fca8387536f372f9988fe7f9ee2b6f0c6acc3..e5c65b480a2b64837f18b41cfef3c59aa74a40bd 100644 --- a/common/xyzModem.c +++ b/common/xyzModem.c @@ -24,7 +24,7 @@ #include #include #include -#include +#include /* Assumption - run xyzModem protocol over the console port */ diff --git a/drivers/mmc/mmc_spi.c b/drivers/mmc/mmc_spi.c index a9d95fbd7470fa8bbca2e87d511486c255311c65..4f57990d9c4e5bd7426bc2726bd8c3fc8e0d4074 100644 --- a/drivers/mmc/mmc_spi.c +++ b/drivers/mmc/mmc_spi.c @@ -10,7 +10,7 @@ #include #include #include -#include +#include #include #include diff --git a/drivers/net/phy/aquantia.c b/drivers/net/phy/aquantia.c index 37749e01852833ba12e02e33a2d16d21bb3b399c..a0abb23299236ef1d29dbdc2a977ca46fc0d1521 100644 --- a/drivers/net/phy/aquantia.c +++ b/drivers/net/phy/aquantia.c @@ -8,7 +8,7 @@ #include #include #include -#include +#include #include #include #include diff --git a/include/crc.h b/include/crc.h deleted file mode 100644 index 2a00af5be467c7ec30b4615fc7f64bf61bb548b3..0000000000000000000000000000000000000000 --- a/include/crc.h +++ /dev/null @@ -1,43 +0,0 @@ -/* SPDX-License-Identifier: eCos-2.0 */ -/* - *========================================================================== - * - * crc.h - * - * Interface for the CRC algorithms. - * - *========================================================================== - *========================================================================== - *#####DESCRIPTIONBEGIN#### - * - * Author(s): Andrew Lunn - * Contributors: Andrew Lunn - * Date: 2002-08-06 - * Purpose: - * Description: - * - * This code is part of eCos (tm). - * - *####DESCRIPTIONEND#### - * - *========================================================================== - */ - -#ifndef _SERVICES_CRC_CRC_H_ -#define _SERVICES_CRC_CRC_H_ - -#include - -#ifndef __externC -# ifdef __cplusplus -# define __externC extern "C" -# else -# define __externC extern -# endif -#endif - -/* 16 bit CRC with polynomial x^16+x^12+x^5+1 (CRC-CCITT) */ - -uint16_t crc16_ccitt(uint16_t crc_start, unsigned char *s, int len); - -#endif /* _SERVICES_CRC_CRC_H_ */ diff --git a/include/u-boot/crc.h b/include/u-boot/crc.h index e98cb46c90d781060ffc25578f4a3c0831a332bc..111b22c4b646a54eae0df68246ad1df10e83e66c 100644 --- a/include/u-boot/crc.h +++ b/include/u-boot/crc.h @@ -11,6 +11,9 @@ /* lib/crc8.c */ unsigned int crc8(unsigned int crc_start, const unsigned char *vptr, int len); +/* lib/crc16.c - 16 bit CRC with polynomial x^16+x^12+x^5+1 (CRC-CCITT) */ +uint16_t crc16_ccitt(uint16_t crc_start, const unsigned char *s, 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); diff --git a/lib/crc16.c b/lib/crc16.c index 763ae33f3414a93d013a73947d7b9e34914c28d4..25bdfd8e72f450bcd613acaa8025776dd4a3fe0d 100644 --- a/lib/crc16.c +++ b/lib/crc16.c @@ -22,7 +22,7 @@ *========================================================================== */ -#include "crc.h" +#include /* Table of CRC constants - implements x^16+x^12+x^5+1 */ static const uint16_t crc16_tab[] = {