aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/crypto
diff options
context:
space:
mode:
authorAlex Porosanu <alexandru.porosanu@freescale.com>2013-08-14 11:56:46 -0400
committerHerbert Xu <herbert@gondor.apana.org.au>2013-08-21 07:08:37 -0400
commitd4d8edf88544e4df694d32594c3dde63f82be960 (patch)
treeb88b60e29fdf1223c5451c8a82753494c0fbaec5 /drivers/crypto
parent514df2816ffb176c76c344f7d1b83e79a490e4d0 (diff)
crypto: caam - add option for enabling DEBUG mode
This patch adds an option to the Kconfig file for SEC which enables the user to see the debug messages that are printed inside the SEC driver. Signed-off-by: Alex Porosanu <alexandru.porosanu@freescale.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto')
-rw-r--r--drivers/crypto/caam/Kconfig8
-rw-r--r--drivers/crypto/caam/Makefile3
2 files changed, 11 insertions, 0 deletions
diff --git a/drivers/crypto/caam/Kconfig b/drivers/crypto/caam/Kconfig
index b44091c47f75..ca89f6b84b06 100644
--- a/drivers/crypto/caam/Kconfig
+++ b/drivers/crypto/caam/Kconfig
@@ -98,3 +98,11 @@ config CRYPTO_DEV_FSL_CAAM_RNG_API
98 98
99 To compile this as a module, choose M here: the module 99 To compile this as a module, choose M here: the module
100 will be called caamrng. 100 will be called caamrng.
101
102config CRYPTO_DEV_FSL_CAAM_DEBUG
103 bool "Enable debug output in CAAM driver"
104 depends on CRYPTO_DEV_FSL_CAAM
105 default n
106 help
107 Selecting this will enable printing of various debug
108 information in the CAAM driver.
diff --git a/drivers/crypto/caam/Makefile b/drivers/crypto/caam/Makefile
index b1eb44838db5..d56bd0ec65d8 100644
--- a/drivers/crypto/caam/Makefile
+++ b/drivers/crypto/caam/Makefile
@@ -1,6 +1,9 @@
1# 1#
2# Makefile for the CAAM backend and dependent components 2# Makefile for the CAAM backend and dependent components
3# 3#
4ifeq ($(CONFIG_CRYPTO_DEV_FSL_CAAM_DEBUG), y)
5 EXTRA_CFLAGS := -DDEBUG
6endif
4 7
5obj-$(CONFIG_CRYPTO_DEV_FSL_CAAM) += caam.o 8obj-$(CONFIG_CRYPTO_DEV_FSL_CAAM) += caam.o
6obj-$(CONFIG_CRYPTO_DEV_FSL_CAAM_CRYPTO_API) += caamalg.o 9obj-$(CONFIG_CRYPTO_DEV_FSL_CAAM_CRYPTO_API) += caamalg.o