summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: c3b1648)
raw | patch | inline | side by side (parent: c3b1648)
author | Vaibhav Bedia <vaibhav.bedia@ti.com> | |
Thu, 9 Feb 2012 17:34:02 +0000 (23:04 +0530) | ||
committer | Sekhar Nori <nsekhar@ti.com> | |
Fri, 9 Mar 2012 09:06:12 +0000 (14:36 +0530) |
For the modules which require special handling, update
the flags in the hwmod data. WIth this done, the PM
framework takes care of the special handling for the
modules.
Note: With HWMOD_SWSUP_MSTANDBY set, the module goes
to standby during boot. Unless the driver makes use
of runtime PM APIs the module will stay in standby
which is not desired. For now we disable idling
this modules during the boot. When the drivers start
making use of runtime PM this workaround must be
removed.
All this should eventually make its way into the
appropriate drivers.
Signed-off-by: Vaibhav Bedia <vaibhav.bedia@ti.com>
the flags in the hwmod data. WIth this done, the PM
framework takes care of the special handling for the
modules.
Note: With HWMOD_SWSUP_MSTANDBY set, the module goes
to standby during boot. Unless the driver makes use
of runtime PM APIs the module will stay in standby
which is not desired. For now we disable idling
this modules during the boot. When the drivers start
making use of runtime PM this workaround must be
removed.
All this should eventually make its way into the
appropriate drivers.
Signed-off-by: Vaibhav Bedia <vaibhav.bedia@ti.com>
arch/arm/mach-omap2/omap_hwmod_33xx_data.c | patch | blob | history |
diff --git a/arch/arm/mach-omap2/omap_hwmod_33xx_data.c b/arch/arm/mach-omap2/omap_hwmod_33xx_data.c
index b13c1ae89fe116518dc3f2d24edd45d758297a59..037d2d3614c2ce36e882cfeabc88f47863b18a66 100644 (file)
},
.slaves = am33xx_cpgmac0_slaves,
.slaves_cnt = ARRAY_SIZE(am33xx_cpgmac0_slaves),
+ .flags = (HWMOD_SWSUP_SIDLE | HWMOD_SWSUP_MSTANDBY |
+ HWMOD_INIT_NO_IDLE | HWMOD_INIT_NO_RESET),
};
/* 'dcan' class */
},
.slaves = am33xx_gpmc_slaves,
.slaves_cnt = ARRAY_SIZE(am33xx_gpmc_slaves),
+ .flags = (HWMOD_SWSUP_SIDLE | HWMOD_SWSUP_MSTANDBY |
+ HWMOD_INIT_NO_IDLE | HWMOD_INIT_NO_RESET),
};
/* 'i2c' class */
},
.slaves = am33xx_lcdc_slaves,
.slaves_cnt = ARRAY_SIZE(am33xx_lcdc_slaves),
+ .flags = (HWMOD_SWSUP_SIDLE | HWMOD_SWSUP_MSTANDBY),
};
/*
},
.slaves = am33xx_timer0_slaves,
.slaves_cnt = ARRAY_SIZE(am33xx_timer0_slaves),
+ .flags = (HWMOD_INIT_NO_IDLE | HWMOD_INIT_NO_RESET),
};
/* timer1 1ms */
},
.slaves = am33xx_tptc0_slaves,
.slaves_cnt = ARRAY_SIZE(am33xx_tptc0_slaves),
+ .flags = (HWMOD_SWSUP_SIDLE | HWMOD_SWSUP_MSTANDBY),
};
/* tptc1 */
},
.slaves = am33xx_tptc1_slaves,
.slaves_cnt = ARRAY_SIZE(am33xx_tptc1_slaves),
+ .flags = (HWMOD_SWSUP_SIDLE | HWMOD_SWSUP_MSTANDBY),
};
/* tptc2 */
},
.slaves = am33xx_tptc2_slaves,
.slaves_cnt = ARRAY_SIZE(am33xx_tptc2_slaves),
+ .flags = (HWMOD_SWSUP_SIDLE | HWMOD_SWSUP_MSTANDBY),
};
/* 'uart' class */
},
.slaves = am33xx_usbss_slaves,
.slaves_cnt = ARRAY_SIZE(am33xx_usbss_slaves),
+ .class = &am33xx_usbotg_class,
+ .flags = (HWMOD_SWSUP_SIDLE | HWMOD_SWSUP_MSTANDBY),
};
/* gfx */