summaryrefslogtreecommitdiff
path: root/drivers/crypto/caam
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/crypto/caam')
-rw-r--r--drivers/crypto/caam/ctrl.c12
-rw-r--r--drivers/crypto/caam/intern.h3
2 files changed, 13 insertions, 2 deletions
diff --git a/drivers/crypto/caam/ctrl.c b/drivers/crypto/caam/ctrl.c
index 3df6f232c799..2744acecb01a 100644
--- a/drivers/crypto/caam/ctrl.c
+++ b/drivers/crypto/caam/ctrl.c
@@ -2,7 +2,7 @@
* CAAM control-plane driver backend
* Controller-level driver, kernel property detection, initialization
*
- * Copyright (C) 2008-2013 Freescale Semiconductor, Inc.
+ * Copyright (C) 2008-2014 Freescale Semiconductor, Inc.
*/
#include "compat.h"
@@ -49,6 +49,7 @@ static int caam_remove(struct platform_device *pdev)
clk_disable(ctrlpriv->caam_ipg);
clk_disable(ctrlpriv->caam_mem);
clk_disable(ctrlpriv->caam_aclk);
+ clk_disable(ctrlpriv->caam_emi_slow);
#endif
kfree(ctrlpriv->jrdev);
@@ -321,6 +322,15 @@ static int caam_probe(struct platform_device *pdev)
return -ENODEV;
}
+ ctrlpriv->caam_emi_slow = devm_clk_get(&ctrlpriv->pdev->dev,
+ "caam_emi_slow");
+ ret = clk_prepare_enable(ctrlpriv->caam_emi_slow);
+ if (ret < 0) {
+ dev_err(&pdev->dev, "can't prepare CAAM emi"
+ " slow clock: %d\n", ret);
+ return -ENODEV;
+ }
+
ret = clk_prepare(ctrlpriv->caam_ipg);
if (ret < 0) {
dev_err(&pdev->dev, "can't prepare CAAM ipg clock: %d\n", ret);
diff --git a/drivers/crypto/caam/intern.h b/drivers/crypto/caam/intern.h
index 6bb12f3098fe..d544e6942d8e 100644
--- a/drivers/crypto/caam/intern.h
+++ b/drivers/crypto/caam/intern.h
@@ -2,7 +2,7 @@
* CAAM/SEC 4.x driver backend
* Private/internal definitions between modules
*
- * Copyright (C) 2008-2013 Freescale Semiconductor, Inc.
+ * Copyright (C) 2008-2014 Freescale Semiconductor, Inc.
*
*/
@@ -107,6 +107,7 @@ struct caam_drv_private {
struct clk *caam_ipg;
struct clk *caam_mem;
struct clk *caam_aclk;
+ struct clk *caam_emi_slow;
#endif
/*
* debugfs entries for developer view into driver/device