]> 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)
commitbff99185ae4b5f60aef99b743c19231b3b983443
tree2be242c29d4b38a788fdfd5d58a51805a54082f9
parenta6e82942883366dfe0000a783aa1c1e4e97b77f9
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