diff options
author | Alex Porosanu <alexandru.porosanu@freescale.com> | 2013-08-14 11:56:46 -0400 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2013-08-21 07:08:37 -0400 |
commit | d4d8edf88544e4df694d32594c3dde63f82be960 (patch) | |
tree | b88b60e29fdf1223c5451c8a82753494c0fbaec5 /drivers/crypto | |
parent | 514df2816ffb176c76c344f7d1b83e79a490e4d0 (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/Kconfig | 8 | ||||
-rw-r--r-- | drivers/crypto/caam/Makefile | 3 |
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 | |||
102 | config 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 | # |
4 | ifeq ($(CONFIG_CRYPTO_DEV_FSL_CAAM_DEBUG), y) | ||
5 | EXTRA_CFLAGS := -DDEBUG | ||
6 | endif | ||
4 | 7 | ||
5 | obj-$(CONFIG_CRYPTO_DEV_FSL_CAAM) += caam.o | 8 | obj-$(CONFIG_CRYPTO_DEV_FSL_CAAM) += caam.o |
6 | obj-$(CONFIG_CRYPTO_DEV_FSL_CAAM_CRYPTO_API) += caamalg.o | 9 | obj-$(CONFIG_CRYPTO_DEV_FSL_CAAM_CRYPTO_API) += caamalg.o |