summaryrefslogtreecommitdiff
path: root/drivers/crypto
diff options
context:
space:
mode:
authorTerry Lv <r65388@freescale.com>2012-07-16 15:48:11 +0800
committerTerry Lv <r65388@freescale.com>2012-07-25 13:11:00 +0800
commit751d7a160ed0fc4b6587102d868766e3f667f973 (patch)
tree460425ef21de866cae9307d17f540f93f34d5122 /drivers/crypto
parentad537f734b64e47fb890a87db54108f2b35a9815 (diff)
ENGR00217306-1: Add DCP/RNGB driver support
This patch will add driver menu support. And also, for rng don't need to enable clock, we add operation when no clock is specified for rng. Signed-off-by: Terry Lv <r65388@freescale.com>
Diffstat (limited to 'drivers/crypto')
-rw-r--r--drivers/crypto/Kconfig10
-rw-r--r--drivers/crypto/dcp.c4
2 files changed, 7 insertions, 7 deletions
diff --git a/drivers/crypto/Kconfig b/drivers/crypto/Kconfig
index 626b132278f6..ed37f0a758d8 100644
--- a/drivers/crypto/Kconfig
+++ b/drivers/crypto/Kconfig
@@ -294,13 +294,13 @@ config CRYPTO_DEV_S5P
algorithms execution.
config CRYPTO_DEV_DCP
tristate "Support for the DCP engine"
- depends on SOC_IMX28 || SOC_IMX23 || SOC_IMX50
+ depends on SOC_IMX28 || SOC_IMX23 || SOC_IMX50 || SOC_IMX6SL
select CRYPTO_ALGAPI
select CRYPTO_BLKCIPHER
help
- Say 'Y' here to use the DCP AES and SHA
- engine for the CryptoAPI algorithms.
- To compile this driver as a module, choose M here: the module
- will be called geode-aes.
+ Say 'Y' here to use the DCP AES and SHA
+ engine for the CryptoAPI algorithms.
+ To compile this driver as a module, choose M here: the module
+ will be called geode-aes.
endif # CRYPTO_HW
diff --git a/drivers/crypto/dcp.c b/drivers/crypto/dcp.c
index 7ab595587970..cfc486d5b28c 100644
--- a/drivers/crypto/dcp.c
+++ b/drivers/crypto/dcp.c
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2008-2011 Freescale Semiconductor, Inc.
+ * Copyright (C) 2008-2012 Freescale Semiconductor, Inc.
*/
/*
@@ -1317,7 +1317,7 @@ static irqreturn_t dcp_irq(int irq, void *context)
}
/* DCP bootstream verification interface: uses OTP key for crypto */
-static int dcp_bootstream_ioctl(struct inode *inode, struct file *file,
+static long dcp_bootstream_ioctl(struct file *file,
unsigned int cmd, unsigned long arg)
{
struct dcp *sdcp = global_sdcp;