summaryrefslogtreecommitdiff
path: root/drivers/mxc/hantro_845_h1
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/mxc/hantro_845_h1')
-rwxr-xr-xdrivers/mxc/hantro_845_h1/hx280enc.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/mxc/hantro_845_h1/hx280enc.c b/drivers/mxc/hantro_845_h1/hx280enc.c
index fca529060535..6523d6cfac51 100755
--- a/drivers/mxc/hantro_845_h1/hx280enc.c
+++ b/drivers/mxc/hantro_845_h1/hx280enc.c
@@ -71,6 +71,8 @@ static struct clk *hantro_clk_h1_bus;
#define IRQF_DISABLED 0x0
#endif
+#include <linux/delay.h>
+
/* module description */
MODULE_LICENSE("GPL");
MODULE_AUTHOR("Google Finland Oy");
@@ -188,6 +190,11 @@ static int hantro_h1_ctrlblk_reset(struct device *dev)
iobase = (volatile u8 *)ioremap_nocache(BLK_CTL_BASE, 0x10000);
val = ioread32(iobase);
+ val &= (~0x4);
+ iowrite32(val, iobase); // assert soft reset
+ udelay(2);
+
+ val = ioread32(iobase);
val |= 0x4;
iowrite32(val, iobase); // release soft reset