diff options
author | Tom Rini <trini@konsulko.com> | 2025-02-03 16:01:44 -0600 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2025-02-03 16:01:44 -0600 |
commit | 3e69c75e86e1c32c8c0fd6153bcc10aa00fb3616 (patch) | |
tree | 676898552baf386cc0c4119ee4bf7edc1ba8aee0 /lib/crc8.c | |
parent | 752321b62530dcbd6e8b5872aff4cf761809d76b (diff) | |
parent | f1eb367d76c9b28053b3adcb6bdeb865c6eda5fd (diff) |
Merge patch series "vbe: Series part G"
Simon Glass <sjg@chromium.org> says:
This includes the VBE ABrec (A/B/recovery) implementation as well as a
number of patches needed to make it work:
- marking some code as used by SPL_RELOC
- selection of images from a FIT based on the boot phase
- removal of unwanted hash code which increases code-size too much
- a few Kconfig-related additions for VPL
Note: The goal for the next series (part H) is to enable VBE on
rk3399-generic, i.e. able to boot on multiple rk3399-based boards with
only the TPL phase being different for each board.
Link: https://lore.kernel.org/r/20250126184333.4058848-1-sjg@chromium.org/
Diffstat (limited to 'lib/crc8.c')
-rw-r--r-- | lib/crc8.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/crc8.c b/lib/crc8.c index 811e19917b4..bbb229c3892 100644 --- a/lib/crc8.c +++ b/lib/crc8.c @@ -6,11 +6,12 @@ #ifdef USE_HOSTCC #include <arpa/inet.h> #endif +#include <asm/sections.h> #include <u-boot/crc.h> #define POLY (0x1070U << 3) -static unsigned char _crc8(unsigned short data) +__rcode static unsigned char _crc8(unsigned short data) { int i; @@ -23,7 +24,7 @@ static unsigned char _crc8(unsigned short data) return (unsigned char)(data >> 8); } -unsigned int crc8(unsigned int crc, const unsigned char *vptr, int len) +__rcode unsigned int crc8(unsigned int crc, const unsigned char *vptr, int len) { int i; |