From 94844727a86e6445c878ebfa0ade907610248ced Mon Sep 17 00:00:00 2001 From: Steffen Trumtrar Date: Fri, 12 Feb 2016 14:12:38 +0100 Subject: crypto: add i.MX6 CAAM support Add the i.MX6 crypto core CAAM with support for the random number generator. The core itself works with jobrings in which descriptors can be queued/dequeued for processing. Depending on descriptor type the CAAM unit then either produces random numbers or decrypts/encrypts data. The code is based on the Linux v4.1 driver of the same name without all the crypto/hashing components. Signed-off-by: Steffen Trumtrar Signed-off-by: Sascha Hauer --- drivers/crypto/caam/error.h | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 drivers/crypto/caam/error.h (limited to 'drivers/crypto/caam/error.h') diff --git a/drivers/crypto/caam/error.h b/drivers/crypto/caam/error.h new file mode 100644 index 0000000000..4ea908977e --- /dev/null +++ b/drivers/crypto/caam/error.h @@ -0,0 +1,11 @@ +/* + * CAAM Error Reporting code header + * + * Copyright 2009-2011 Freescale Semiconductor, Inc. + */ + +#ifndef CAAM_ERROR_H +#define CAAM_ERROR_H +#define CAAM_ERROR_STR_MAX 302 +void caam_jr_strstatus(struct device_d *jrdev, u32 status); +#endif /* CAAM_ERROR_H */ -- cgit v1.2.3