diff options
author | Nishanth Menon <[email protected]> | 2014-06-06 01:04:20 -0500 |
---|---|---|
committer | Nishanth Menon <[email protected]> | 2014-09-08 11:22:41 -0500 |
commit | bd002d7bdafc695decf7d4aeba285097356938f1 (patch) | |
tree | a9a5b81e89b4ae351d52d2f87fbc995233e90674 /include/linux/fpga/fpga-mgr.h | |
parent | 13bbffd4ebca57dfae59a3f13ff98dc417f89b23 (diff) |
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 <[email protected]>
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 <[email protected]>
Reviewed-by: Kevin Hilman <[email protected]>
Acked-by: Santosh Shilimkar <[email protected]>
Diffstat (limited to 'include/linux/fpga/fpga-mgr.h')
0 files changed, 0 insertions, 0 deletions