u-boot-brain/drivers/tpm
Stefan Roese 456ecd08ec lib/crc8: Add crc start value
To make the usage of this function more flexible, lets add the CRC start
value as parameter to this function. This way it can be used by other
functions requiring different start values than 0 as well.

For non-zero CRC start values to work, I've reworked the function a bit.
The new implementation is copied from the Linux version in
drivers/i2c/i2c-core.c / i2c_smbus_pec(). Which supports non-zero
CRC stating values.

I've double-checked that the results for zero starting values are
identical to the results from the original version of this function.

Signed-off-by: Stefan Roese <sr@denx.de>
Cc: Simon Glass <sjg@chromium.org>
Reviewed-by: Simon Glass <sjg@chromium.org>
2016-04-11 20:48:26 -04:00
..
Kconfig tpm: st33zp24: Add tpm st33zp24 spi support 2016-01-28 21:01:22 -07:00
Makefile tpm: st33zp24: Add tpm st33zp24 spi support 2016-01-28 21:01:22 -07:00
tpm_atmel_twi.c dm: tpm: Add Driver Model support for tpm_atmel_twi driver 2015-10-23 09:42:28 -06:00
tpm_internal.h dm: tpm: Add a uclass for Trusted Platform Modules 2015-08-31 07:57:28 -06:00
tpm_tis_infineon.c tpm: Rename tpm_tis_infineon.h to tpm_tis.h and move infineon specific stuff in tpm_infineon.c 2016-01-28 21:01:22 -07:00
tpm_tis_lpc.c dm: tpm: Remove every compilation switch for TPM driver model 2015-10-23 09:42:28 -06:00
tpm_tis_sandbox.c lib/crc8: Add crc start value 2016-04-11 20:48:26 -04:00
tpm_tis_st33zp24_i2c.c tpm: st33zp24: Add tpm st33zp24 support with i2c 2016-01-28 21:01:22 -07:00
tpm_tis_st33zp24_spi.c tpm: st33zp24: Add tpm st33zp24 spi support 2016-01-28 21:01:22 -07:00
tpm_tis.h tpm: Rename tpm_tis_infineon.h to tpm_tis.h and move infineon specific stuff in tpm_infineon.c 2016-01-28 21:01:22 -07:00
tpm-uclass.c dm: tpm: Add a uclass for Trusted Platform Modules 2015-08-31 07:57:28 -06:00