diff options
author | Tero Kristo <t-kristo@ti.com> | 2013-10-11 20:15:38 +0400 |
---|---|---|
committer | Paul Walmsley <paul@pwsan.com> | 2013-10-19 20:11:52 +0400 |
commit | 49e03402327ab69a26f604398982ef14123900a2 (patch) | |
tree | 3af0f14ca3f4705f67ca49fa70075b37608944bf /arch/arm/mach-omap2/control.c | |
parent | c6a2d839d0dba8a06f55c7b06f8ce33bdbe4aea3 (diff) | |
download | linux-49e03402327ab69a26f604398982ef14123900a2.tar.xz |
ARM: OMAP3: control: add API for setting IVA bootmode
OMAP3 PM core requires IVA2 bootmode to be set to idle during init. Currently,
a direct register write is used for this. Add a new ctrl API for this purpose
instead.
Signed-off-by: Tero Kristo <t-kristo@ti.com>
Signed-off-by: Paul Walmsley <paul@pwsan.com>
Diffstat (limited to 'arch/arm/mach-omap2/control.c')
-rw-r--r-- | arch/arm/mach-omap2/control.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/control.c b/arch/arm/mach-omap2/control.c index a59711454543..44bb4d544dcf 100644 --- a/arch/arm/mach-omap2/control.c +++ b/arch/arm/mach-omap2/control.c @@ -569,4 +569,15 @@ int omap3_ctrl_save_padconf(void) return 0; } +/** + * omap3_ctrl_set_iva_bootmode_idle - sets the IVA2 bootmode to idle + * + * Sets the bootmode for IVA2 to idle. This is needed by the PM code to + * force disable IVA2 so that it does not prevent any low-power states. + */ +void omap3_ctrl_set_iva_bootmode_idle(void) +{ + omap_ctrl_writel(OMAP3_IVA2_BOOTMOD_IDLE, + OMAP343X_CONTROL_IVA2_BOOTMOD); +} #endif /* CONFIG_ARCH_OMAP3 && CONFIG_PM */ |