summaryrefslogtreecommitdiffstats
path: root/drivers/crypto/sunxi-ss/sun4i-ss.h
diff options
context:
space:
mode:
authorChen-Yu Tsai2015-08-11 07:32:56 +0200
committerHerbert Xu2015-08-13 09:13:23 +0200
commit7ab64628bb4ab139aea9f1238ce6f945be580773 (patch)
treee7cc8e5098409c68bfa79d2f27d3b91524fffcab /drivers/crypto/sunxi-ss/sun4i-ss.h
parentcrypto: sunxi-ss - Document optional reset control bindings (diff)
downloadkernel-qcow2-linux-7ab64628bb4ab139aea9f1238ce6f945be580773.tar.gz
kernel-qcow2-linux-7ab64628bb4ab139aea9f1238ce6f945be580773.tar.xz
kernel-qcow2-linux-7ab64628bb4ab139aea9f1238ce6f945be580773.zip
crypto: sunxi-ss - Add optional reset control support
On sun6i and later platforms, the reset control is split out of the clock gates. Add support for an optional reset control. Signed-off-by: Chen-Yu Tsai <wens@csie.org> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto/sunxi-ss/sun4i-ss.h')
-rw-r--r--drivers/crypto/sunxi-ss/sun4i-ss.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/crypto/sunxi-ss/sun4i-ss.h b/drivers/crypto/sunxi-ss/sun4i-ss.h
index db18b2554e6f..8e9c05f6e4d4 100644
--- a/drivers/crypto/sunxi-ss/sun4i-ss.h
+++ b/drivers/crypto/sunxi-ss/sun4i-ss.h
@@ -18,6 +18,7 @@
#include <linux/module.h>
#include <linux/of.h>
#include <linux/platform_device.h>
+#include <linux/reset.h>
#include <crypto/scatterwalk.h>
#include <linux/scatterlist.h>
#include <linux/interrupt.h>
@@ -129,6 +130,7 @@ struct sun4i_ss_ctx {
int irq;
struct clk *busclk;
struct clk *ssclk;
+ struct reset_control *reset;
struct device *dev;
struct resource *res;
spinlock_t slock; /* control the use of the device */