]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: OMAP2+: powerdomain: introduce logic for finding valid power domain
authorNishanth Menon <nm@ti.com>
Fri, 6 Jun 2014 06:04:20 +0000 (01:04 -0500)
committerNishanth Menon <nm@ti.com>
Mon, 8 Sep 2014 16:22:41 +0000 (11:22 -0500)
commitfc761efa4cbc27e285754ae1794de023b412b2f4
treea9a5b81e89b4ae351d52d2f87fbc995233e90674
parent7fe4cb53fd4b7d238e9768c67a36e87aa773d2ba
ARM: OMAP2+: powerdomain: introduce logic for finding valid power domain

powerdomain configuration in OMAP is done using PWRSTCTRL register for
each power domain. However, PRCM lets us write any value we'd like to
the logic and power domain target states, however the SoC integration
tends to actually function only at a few discrete states. These valid
states are already in our powerdomains_xxx_data.c file.

So, provide a function to easily query valid low power state that the
power domain is allowed to go to.

Based on work originally done by Jean Pihet <j-pihet@ti.com>
https://patchwork.kernel.org/patch/1325091/ . There is no attempt to
create a new powerdomain solution here, except fixing issues seen
attempting invalid programming attempts. Future consolidation to the
generic powerdomain framework should consider this requirement as
well.

Similar solutions have been done in product kernels in the past such
as:
https://android.googlesource.com/kernel/omap.git/+blame/android-omap-panda-3.0/arch/arm/mach-omap2/pm44xx.c

Signed-off-by: Nishanth Menon <nm@ti.com>
Reviewed-by: Kevin Hilman <khilman@linaro.org>
Acked-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
arch/arm/mach-omap2/powerdomain.c
arch/arm/mach-omap2/powerdomain.h