summaryrefslogtreecommitdiff
path: root/include/u-boot
diff options
context:
space:
mode:
authorTom Rini <[email protected]>2022-04-21 19:55:38 -0400
committerTom Rini <[email protected]>2022-04-21 19:55:38 -0400
commitea5583b90f9c162af6f2025718dc50ffbb6e4552 (patch)
tree91f01f0434711bb9c31a311c0ba0e876c9627a8f /include/u-boot
parente50f66e364be80e02dd0834b84b830f3aade82ea (diff)
parent151a030063898e5c8b03b40c3a96b073db0b0dc7 (diff)
Merge branch '2022-04-21-further-cleanups'
- Fix SPL_SYS_MALLOC_SIMPLE and non-SPL_FRAMEWORK boards (a large number of PowerPC platforms) - Remove duplication of crc16 functionality - Migrate COUNTER_FREQUENCY to CONFIG_COUNTER_FREQUENCY and have it in Kconfig
Diffstat (limited to 'include/u-boot')
-rw-r--r--include/u-boot/crc.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/u-boot/crc.h b/include/u-boot/crc.h
index 52ec6a9e2d4..5174bd7ac41 100644
--- a/include/u-boot/crc.h
+++ b/include/u-boot/crc.h
@@ -25,7 +25,10 @@
*/
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) */
+/* lib/crc16.c - 16 bit CRC with polynomial x^16 + x^15 + x^2 + 1 */
+uint16_t crc16(uint16_t crc, const unsigned char *buffer, size_t len);
+
+/* lib/crc16-ccitt.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);
/**
* crc16_ccitt_wd_buf - Perform CRC16-CCIT on an input buffer and return the