]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
ARM: OMAP2+: hwmod: add support for lock and unlock hooks
authorLokesh Vutla <lokeshvutla@ti.com>
Wed, 10 Jun 2015 09:26:24 +0000 (14:56 +0530)
committerPaul Walmsley <paul@pwsan.com>
Thu, 16 Jul 2015 00:16:16 +0000 (18:16 -0600)
commitaaf2c0fbbbb1ec56936e726eec6c253bc4bd469f
tree831f8fcc7dac140a0db9a2e7c961e35935e4d8d1
parentb9e23f321940d2db2c9def8ff723b8464fb86343
ARM: OMAP2+: hwmod: add support for lock and unlock hooks

Some IP blocks like RTC, needs an additional setting for writing to its
registers. This is to prevent any spurious writes from changing the
register values.

This patch adds optional lock and unlock function pointers to
the IP block's hwmod data. These unlock and lock function pointers
are called by hwmod code before and after writing sysconfig registers.

Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
[paul@pwsan.com: fixed indentation level to conform with the rest of the
 structure members]
Reviewed-by: Paul Walmsley <paul@pwsan.com>
Signed-off-by: Paul Walmsley <paul@pwsan.com>
arch/arm/mach-omap2/omap_hwmod.c
arch/arm/mach-omap2/omap_hwmod.h