]> git.baikalelectronics.ru Git - kernel.git/commit
OMAP: hwmod: Fix softreset for modules with optional clocks
authorBenoit Cousson <b-cousson@ti.com>
Tue, 21 Sep 2010 16:57:58 +0000 (18:57 +0200)
committerPaul Walmsley <paul@pwsan.com>
Tue, 21 Sep 2010 21:28:30 +0000 (15:28 -0600)
commit1f9e3c22f53326e387ea644113ac3c5a83dc00d3
tree5251098665c477c9ce6f7a0215ca04493140fa47
parent1587a138d65dcf0bb46cb004e41f4d7375592150
OMAP: hwmod: Fix softreset for modules with optional clocks

Some modules (like GPIO, DSS...) require optionals clock to be enabled
in order to complete the sofreset properly.
Add a HWMOD_CONTROL_OPT_CLKS_IN_RESET flag to force all optional clocks
to be enabled before reset. Disabled them once the reset is done.

TODO:
For the moment it is very hard to understand from the HW spec, which
optional clock is needed and which one is not. So the current approach
will enable all the optional clocks.
Paul proposed a much finer approach that will allow to tag only the needed
clock in the optional clock table. This might be doable as soon as we have
a clear understanding of these dependencies.

Reported-by: Partha Basak <p-basak2@ti.com>
Signed-off-by: Benoit Cousson <b-cousson@ti.com>
Signed-off-by: Paul Walmsley <paul@pwsan.com>
Cc: Kevin Hilman <khilman@deeprootsystems.com>
arch/arm/mach-omap2/omap_hwmod.c
arch/arm/plat-omap/include/plat/omap_hwmod.h