]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: OMAP2+: hwmod: add parent_hwmod support
authorTomi Valkeinen <tomi.valkeinen@ti.com>
Thu, 9 Oct 2014 14:03:14 +0000 (17:03 +0300)
committerPaul Walmsley <paul@pwsan.com>
Wed, 19 Nov 2014 21:48:12 +0000 (14:48 -0700)
commitef8e107d750afdd4a398297b426b809b134623bc
tree2be242c29d4b38a788fdfd5d58a51805a54082f9
parent4df742f7b949b2870446165485ee367b66ec4ed0
ARM: OMAP2+: hwmod: add parent_hwmod support

Add parent_hwmod pointer to omap_hwmod. This can be set to point to a
"parent" hwmod that needs to be enabled for the "child" hwmod to work.

This is used at hwmod setup time: when doing the initial setup and
reset, first enable the parent hwmod, and after setup and reset is done,
restore the parent hwmod to postsetup_state.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Reviewed-by: Archit Taneja <archit.taneja@gmail.com>
[paul@pwsan.com: add kerneldoc documentation for parent_hwmod; note that it
 is a temporary workaround]
Signed-off-by: Paul Walmsley <paul@pwsan.com>
arch/arm/mach-omap2/omap_hwmod.c
arch/arm/mach-omap2/omap_hwmod.h