summaryrefslogtreecommitdiffstats
path: root/drivers/media/platform/atmel/atmel-isc-regs.h
diff options
context:
space:
mode:
authorWenyou Yang <wenyou.yang@microchip.com>2017-10-10 04:46:37 +0200
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>2017-10-27 13:56:05 +0200
commit64f6306a5af21561ad6b9a3247fc68126b8be88a (patch)
tree5446eeb015fd6ac2cbbcba362c75cf5b4f71d74d /drivers/media/platform/atmel/atmel-isc-regs.h
parentcab1dea3be2e51578032c5aee6ac13ff7b4aaeb4 (diff)
downloadlinux-64f6306a5af21561ad6b9a3247fc68126b8be88a.tar.bz2
media: atmel-isc: Add prepare and unprepare ops
A software write operation to the ISC_CLKEN or ISC_CLKDIS register requires double clock domain synchronization and is not permitted when the ISC_SR.SIP is asserted. So add the .prepare and .unprepare ops to make sure the ISC_CLKSR.SIP is unasserted before the write operation to the ISC_CLKEN or ISC_CLKDIS register. Signed-off-by: Wenyou Yang <wenyou.yang@microchip.com> Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Diffstat (limited to 'drivers/media/platform/atmel/atmel-isc-regs.h')
-rw-r--r--drivers/media/platform/atmel/atmel-isc-regs.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/media/platform/atmel/atmel-isc-regs.h b/drivers/media/platform/atmel/atmel-isc-regs.h
index 6936ac467609..93e58fcf1d5f 100644
--- a/drivers/media/platform/atmel/atmel-isc-regs.h
+++ b/drivers/media/platform/atmel/atmel-isc-regs.h
@@ -42,6 +42,7 @@
/* ISC Clock Status Register */
#define ISC_CLKSR 0x00000020
+#define ISC_CLKSR_SIP BIT(31)
#define ISC_CLK(n) BIT(n)