diff options
author | Rajendra Nayak <rnayak@ti.com> | 2013-07-09 03:32:14 -0400 |
---|---|---|
committer | Paul Walmsley <paul@pwsan.com> | 2013-08-23 06:28:36 -0400 |
commit | 9a4e301d0c4403e18f6bbb79e4096e69a0f4a4c1 (patch) | |
tree | 0ad284d494903ca9f2c3339f58e6d9d59eb5d9a0 /arch/arm/mach-omap2 | |
parent | 97dd16b1906f9f81891469456943032b8534d23c (diff) |
ARM: OMAP: DRA7: powerdomain: Handle missing vc/vp
DRA7 belongs to the omap4plus devices which reuse the omap4_pwrdm_operations
ops for powerdomain control. DRA7 however has no VC/VP while all the
earlier omap4plus devices did.
So use the .pwrdm_has_voltdm() ops to pass this info on to the core.
Signed-off-by: Rajendra Nayak <rnayak@ti.com>
Signed-off-by: Paul Walmsley <paul@pwsan.com>
Diffstat (limited to 'arch/arm/mach-omap2')
-rw-r--r-- | arch/arm/mach-omap2/prm44xx.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/prm44xx.c b/arch/arm/mach-omap2/prm44xx.c index 415c7e0c9393..15271b6d205f 100644 --- a/arch/arm/mach-omap2/prm44xx.c +++ b/arch/arm/mach-omap2/prm44xx.c | |||
@@ -620,6 +620,15 @@ static int omap4_pwrdm_wait_transition(struct powerdomain *pwrdm) | |||
620 | return 0; | 620 | return 0; |
621 | } | 621 | } |
622 | 622 | ||
623 | static int omap4_check_vcvp(void) | ||
624 | { | ||
625 | /* No VC/VP on dra7xx devices */ | ||
626 | if (soc_is_dra7xx()) | ||
627 | return 0; | ||
628 | |||
629 | return 1; | ||
630 | } | ||
631 | |||
623 | struct pwrdm_ops omap4_pwrdm_operations = { | 632 | struct pwrdm_ops omap4_pwrdm_operations = { |
624 | .pwrdm_set_next_pwrst = omap4_pwrdm_set_next_pwrst, | 633 | .pwrdm_set_next_pwrst = omap4_pwrdm_set_next_pwrst, |
625 | .pwrdm_read_next_pwrst = omap4_pwrdm_read_next_pwrst, | 634 | .pwrdm_read_next_pwrst = omap4_pwrdm_read_next_pwrst, |
@@ -637,6 +646,7 @@ struct pwrdm_ops omap4_pwrdm_operations = { | |||
637 | .pwrdm_set_mem_onst = omap4_pwrdm_set_mem_onst, | 646 | .pwrdm_set_mem_onst = omap4_pwrdm_set_mem_onst, |
638 | .pwrdm_set_mem_retst = omap4_pwrdm_set_mem_retst, | 647 | .pwrdm_set_mem_retst = omap4_pwrdm_set_mem_retst, |
639 | .pwrdm_wait_transition = omap4_pwrdm_wait_transition, | 648 | .pwrdm_wait_transition = omap4_pwrdm_wait_transition, |
649 | .pwrdm_has_voltdm = omap4_check_vcvp, | ||
640 | }; | 650 | }; |
641 | 651 | ||
642 | /* | 652 | /* |