@@ -2622,6 +2622,8 @@ static int __init _setup_reset(struct omap_hwmod *oh)
if (!(oh->flags & HWMOD_INIT_NO_RESET))
r = _reset(oh);
+ if (!r && oh->flags & HWMOD_INIT_DEASSERT_HARD_RESET)
+ r = _deassert_hardreset(oh, oh->name);
return r;
}
@@ -514,6 +514,7 @@ struct omap_hwmod_omap4_prcm {
* HWMOD_SWSUP_SIDLE_ACT: omap_hwmod code should manually bring the module
* out of idle, but rely on smart-idle to the put it back in idle,
* so the wakeups are still functional (Only known case for now is UART)
+ * HWMOD_INIT_DEASSERT_HARD_RESET: deassert the HW reset line at boot
*/
#define HWMOD_SWSUP_SIDLE (1 << 0)
#define HWMOD_SWSUP_MSTANDBY (1 << 1)
@@ -528,6 +529,7 @@ struct omap_hwmod_omap4_prcm {
#define HWMOD_BLOCK_WFI (1 << 10)
#define HWMOD_FORCE_MSTANDBY (1 << 11)
#define HWMOD_SWSUP_SIDLE_ACT (1 << 12)
+#define HWMOD_INIT_DEASSERT_HARD_RESET (1 << 13)
/*
* omap_hwmod._int_flags definitions
hwmod's hardreset lines are not deasserted after a reset. Add the HWMOD_INIT_DEASSERT_HARD_RESET flag to deassert those after a successful reset. This is required to get the PRU-ICSS in a usable state on am33xx SoCs. Signed-off-by: Andre Heider <a.heider@gmail.com> --- arch/arm/mach-omap2/omap_hwmod.c | 2 ++ arch/arm/mach-omap2/omap_hwmod.h | 2 ++ 2 files changed, 4 insertions(+)