Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 359836
b: refs/heads/master
c: 1e3d8fe
h: refs/heads/master
v: v3
  • Loading branch information
Paul Walmsley committed Feb 6, 2013
1 parent 6102627 commit d966970
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 15 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: db27c0c0d05cafc0eb0bed4d58daea65ed5e6839
refs/heads/master: 1e3d8fe771881de323396aaa1efd20243fa974cb
7 changes: 6 additions & 1 deletion trunk/arch/arm/mach-omap2/omap_hwmod_2420_data.c
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,12 @@ static struct omap_hwmod omap2420_i2c1_hwmod = {
},
.class = &i2c_class,
.dev_attr = &i2c_dev_attr,
.flags = HWMOD_16BIT_REG,
/*
* From mach-omap2/pm24xx.c: "Putting MPU into the WFI state
* while a transfer is active seems to cause the I2C block to
* timeout. Why? Good question."
*/
.flags = (HWMOD_16BIT_REG | HWMOD_BLOCK_WFI),
};

/* I2C2 */
Expand Down
13 changes: 0 additions & 13 deletions trunk/arch/arm/mach-omap2/pm24xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -139,14 +139,6 @@ static int omap2_enter_full_retention(void)
return 0;
}

static int omap2_i2c_active(void)
{
u32 l;

l = omap2_cm_read_mod_reg(CORE_MOD, CM_FCLKEN1);
return l & (OMAP2420_EN_I2C2_MASK | OMAP2420_EN_I2C1_MASK);
}

static int sti_console_enabled;

static int omap2_allow_mpu_retention(void)
Expand All @@ -173,11 +165,6 @@ static void omap2_enter_mpu_retention(void)
{
const int zero = 0;

/* Putting MPU into the WFI state while a transfer is active
* seems to cause the I2C block to timeout. Why? Good question. */
if (omap2_i2c_active())
return;

/* The peripherals seem not to be able to wake up the MPU when
* it is in retention mode. */
if (omap2_allow_mpu_retention()) {
Expand Down

0 comments on commit d966970

Please sign in to comment.