From: Tony Lindgren <tony@atomide.com>
To: Jouni Hogander <jouni.hogander@nokia.com>
Cc: linux-omap@vger.kernel.org
Subject: Re: [PATCH 1/6] 34XX: PM: Workaround to reset all wkdeps
Date: Thu, 3 Jul 2008 13:39:12 +0300 [thread overview]
Message-ID: <20080703103909.GO14276@atomide.com> (raw)
In-Reply-To: <1214815963-23115-1-git-send-email-jouni.hogander@nokia.com>
* Jouni Hogander <jouni.hogander@nokia.com> [080630 11:53]:
> This workaround is needed until powerdomain code resets wkdeps.
Pushing today.
Tony
> Signed-off-by: Jouni Hogander <jouni.hogander@nokia.com>
> ---
> arch/arm/mach-omap2/pm34xx.c | 20 ++++++++++++++++++--
> 1 files changed, 18 insertions(+), 2 deletions(-)
>
> diff --git a/arch/arm/mach-omap2/pm34xx.c b/arch/arm/mach-omap2/pm34xx.c
> index 202c269..449e7b5 100644
> --- a/arch/arm/mach-omap2/pm34xx.c
> +++ b/arch/arm/mach-omap2/pm34xx.c
> @@ -332,6 +332,20 @@ static struct platform_suspend_ops omap_pm_ops = {
>
> static void __init prcm_setup_regs(void)
> {
> + /* XXX Reset all wkdeps. This should be done when initializing
> + * powerdomains */
> + prm_write_mod_reg(0, OMAP3430_IVA2_MOD, PM_WKDEP);
> + prm_write_mod_reg(0, MPU_MOD, PM_WKDEP);
> + prm_write_mod_reg(0, OMAP3430_DSS_MOD, PM_WKDEP);
> + prm_write_mod_reg(0, OMAP3430_NEON_MOD, PM_WKDEP);
> + prm_write_mod_reg(0, OMAP3430_CAM_MOD, PM_WKDEP);
> + prm_write_mod_reg(0, OMAP3430_PER_MOD, PM_WKDEP);
> + if (is_sil_rev_greater_than(OMAP3430_REV_ES1_0)) {
> + prm_write_mod_reg(0, OMAP3430ES2_SGX_MOD, PM_WKDEP);
> + prm_write_mod_reg(0, OMAP3430ES2_USBHOST_MOD, PM_WKDEP);
> + } else
> + prm_write_mod_reg(0, GFX_MOD, PM_WKDEP);
> +
> /* setup wakup source */
> prm_write_mod_reg(OMAP3430_EN_IO | OMAP3430_EN_GPIO1 | OMAP3430_EN_GPT1,
> WKUP_MOD, PM_WKEN);
> @@ -371,6 +385,10 @@ int __init omap3_pm_init(void)
>
> printk(KERN_ERR "Power Management for TI OMAP3.\n");
>
> + /* XXX prcm_setup_regs needs to be before enabling hw
> + * supervised mode for powerdomains */
> + prcm_setup_regs();
> +
> ret = request_irq(INT_34XX_PRCM_MPU_IRQ,
> (irq_handler_t)prcm_interrupt_handler,
> IRQF_DISABLED, "prcm", NULL);
> @@ -397,8 +415,6 @@ int __init omap3_pm_init(void)
>
> suspend_set_ops(&omap_pm_ops);
>
> - prcm_setup_regs();
> -
> pm_idle = omap3_pm_idle;
>
> err1:
> --
> 1.5.5
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-omap" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2008-07-03 14:03 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-06-30 8:50 [PATCH 0/6] 34XX: PM: Workarounds to get omap3 to retention 4th Högander Jouni
2008-06-30 8:52 ` [PATCH 1/6] 34XX: PM: Workaround to reset all wkdeps Jouni Hogander
2008-07-03 10:39 ` Tony Lindgren [this message]
2008-06-30 8:52 ` [PATCH 2/6] 34XX: PM: Workaround to check wether any fck is active before entering sleep Jouni Hogander
2008-07-03 10:40 ` Tony Lindgren
2008-06-30 8:52 ` [PATCH 3/6] OMAP: PM: Add new sysfs option for disabling clocks when entering idle Jouni Hogander
2008-07-03 10:41 ` Tony Lindgren
2008-06-30 8:52 ` [PATCH 4/6] 34XX: PM: Workaround for taking care of gpio clocks Jouni Hogander
2008-06-30 8:52 ` [PATCH 5/6] Added sleep support to UART Jouni Hogander
2008-06-30 8:52 ` [PATCH 6/6] 34XX: PM: Workaround to enable autoidle for clocks and plls Jouni Hogander
2008-08-15 6:18 ` [PATCH 1/4] 34XX: PM: Workaround to check wether any fck is active before entering sleep Jouni Hogander
2008-08-15 6:18 ` [PATCH 2/4] PM: Workaround for taking care of gpio clocks Jouni Hogander
2008-08-15 6:18 ` [PATCH 3/4] Added sleep support to UART Jouni Hogander
2008-08-15 6:18 ` [PATCH 4/4] 34XX: PM: Workaround to enable autoidle for clocks and plls Jouni Hogander
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20080703103909.GO14276@atomide.com \
--to=tony@atomide.com \
--cc=jouni.hogander@nokia.com \
--cc=linux-omap@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox