Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 172757
b: refs/heads/master
c: c16c3f6
h: refs/heads/master
i:
  172755: a90e9b9
v: v3
  • Loading branch information
Tero Kristo authored and Kevin Hilman committed Nov 11, 2009
1 parent 6d8616a commit acd3b26
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ecf157d0b38953cdefa2c8fb7ccb5a62db242aef
refs/heads/master: c16c3f672defb7aca1276065375fe1ee5ca003dc
6 changes: 6 additions & 0 deletions trunk/arch/arm/mach-omap2/pm34xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ static int (*_omap_save_secure_sram)(u32 *addr);

static struct powerdomain *mpu_pwrdm, *neon_pwrdm;
static struct powerdomain *core_pwrdm, *per_pwrdm;
static struct powerdomain *cam_pwrdm;

static int set_pwrdm_state(struct powerdomain *pwrdm, u32 state);

Expand Down Expand Up @@ -355,6 +356,9 @@ static void omap_sram_idle(void)
}
}

if (pwrdm_read_pwrst(cam_pwrdm) == PWRDM_POWER_ON)
omap2_clkdm_deny_idle(mpu_pwrdm->pwrdm_clkdms[0]);

/* CORE */
if (core_next_state < PWRDM_POWER_ON) {
omap_uart_prepare_idle(0);
Expand Down Expand Up @@ -434,6 +438,7 @@ static void omap_sram_idle(void)

pwrdm_post_transition();

omap2_clkdm_allow_idle(mpu_pwrdm->pwrdm_clkdms[0]);
}

/*
Expand Down Expand Up @@ -1067,6 +1072,7 @@ static int __init omap3_pm_init(void)
neon_pwrdm = pwrdm_lookup("neon_pwrdm");
per_pwrdm = pwrdm_lookup("per_pwrdm");
core_pwrdm = pwrdm_lookup("core_pwrdm");
cam_pwrdm = pwrdm_lookup("cam_pwrdm");

omap_push_sram_idle();
#ifdef CONFIG_SUSPEND
Expand Down

0 comments on commit acd3b26

Please sign in to comment.