[Feature]add MT2731_MP2_MR2_SVN388 baseline version
Change-Id: Ief04314834b31e27effab435d3ca8ba33b499059
diff --git a/src/bsp/lk/include/lib/cksum.h b/src/bsp/lk/include/lib/cksum.h
new file mode 100644
index 0000000..130e095
--- /dev/null
+++ b/src/bsp/lk/include/lib/cksum.h
@@ -0,0 +1,32 @@
+#ifndef __CKSUM_H
+#define __CKSUM_H
+
+#include <compiler.h>
+
+__BEGIN_CDECLS
+
+ /*
+ * Computes the CRC-CCITT, starting with an initialization value.
+ * buf: the data on which to apply the checksum
+ * length: the number of bytes of data in 'buf' to be calculated.
+ */
+unsigned short crc16(const unsigned char *buf, unsigned int length);
+
+ /*
+ * Computes an updated version of the CRC-CCITT from existing CRC.
+ * crc: the previous values of the CRC
+ * buf: the data on which to apply the checksum
+ * length: the number of bytes of data in 'buf' to be calculated.
+ */
+unsigned short update_crc16(unsigned short crc, const unsigned char *buf, unsigned int len);
+
+unsigned long crc32(unsigned long crc, const unsigned char *buf, unsigned int len);
+
+unsigned long adler32(unsigned long adler, const unsigned char *buf, unsigned int len);
+
+uint32_t crc32_no_comp(uint32_t crc, const unsigned char *buf, unsigned int len);
+
+__END_CDECLS
+
+#endif
+