diff options
Diffstat (limited to 'drivers/crypto/atmel-i2c.c')
| -rw-r--r-- | drivers/crypto/atmel-i2c.c | 12 | 
1 files changed, 12 insertions, 0 deletions
diff --git a/drivers/crypto/atmel-i2c.c b/drivers/crypto/atmel-i2c.c index dc876fab2882..1d3355913b40 100644 --- a/drivers/crypto/atmel-i2c.c +++ b/drivers/crypto/atmel-i2c.c @@ -21,6 +21,18 @@  #include <linux/workqueue.h>  #include "atmel-i2c.h" +static const struct { +	u8 value; +	const char *error_text; +} error_list[] = { +	{ 0x01, "CheckMac or Verify miscompare" }, +	{ 0x03, "Parse Error" }, +	{ 0x05, "ECC Fault" }, +	{ 0x0F, "Execution Error" }, +	{ 0xEE, "Watchdog about to expire" }, +	{ 0xFF, "CRC or other communication error" }, +}; +  /**   * atmel_i2c_checksum() - Generate 16-bit CRC as required by ATMEL ECC.   * CRC16 verification of the count, opcode, param1, param2 and data bytes.  |