ARM: OMAP2+: hwmod: Add hwmod flag for HWMOD_OPT_CLKS_NEEDED
authorPeter Ujfalusi <peter.ujfalusi@ti.com>
Thu, 12 Nov 2015 07:32:58 +0000 (09:32 +0200)
committerSasha Levin <sasha.levin@oracle.com>
Tue, 22 Mar 2016 15:10:28 +0000 (11:10 -0400)
commit6991aaf3004c32f5e3e856b0bfb0874e122db65d
treea24d3210ba650a1b1cf3b6b9d5b0460185d4bc20
parentbde1cccf1a837d6905fe71543c2f4a4e3328dce0
ARM: OMAP2+: hwmod: Add hwmod flag for HWMOD_OPT_CLKS_NEEDED

[ Upstream commit c12ba8ce2335389ce5416f88391cd67c7325c963 ]

Some module needs more than one functional clock in order to be accessible,
like the McASPs found in DRA7xx family.
This flag will indicate that the opt_clks need to be handled at the same
time as the main_clk for the given hwmod, ensuring that all needed clocks
are enabled before we try to access the module's address space.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Acked-by: Paul Walmsley <paul@pwsan.com>
Tested-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
arch/arm/mach-omap2/omap_hwmod.c
arch/arm/mach-omap2/omap_hwmod.h