diff options
author | Chen-Yu Tsai <wens@csie.org> | 2015-08-11 13:32:56 +0800 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2015-08-13 15:13:23 +0800 |
commit | 7ab64628bb4ab139aea9f1238ce6f945be580773 (patch) | |
tree | e7cc8e5098409c68bfa79d2f27d3b91524fffcab /drivers/crypto/sunxi-ss/sun4i-ss.h | |
parent | ca6bc691b1b7cf45862410952806f73c1aa62fe6 (diff) | |
download | blackbird-op-linux-7ab64628bb4ab139aea9f1238ce6f945be580773.tar.gz blackbird-op-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.h | 2 |
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 */ |