Message ID | 1260098674-27143-1-git-send-email-thara@ti.com (mailing list archive) |
---|---|
State | Accepted, archived |
Delegated to: | Paul Walmsley |
Headers | show |
diff --git a/arch/arm/mach-omap2/omap_hwmod.c b/arch/arm/mach-omap2/omap_hwmod.c index 3edc387..786bf2e 100644 --- a/arch/arm/mach-omap2/omap_hwmod.c +++ b/arch/arm/mach-omap2/omap_hwmod.c @@ -93,7 +93,8 @@ static int _update_sysc_cache(struct omap_hwmod *oh) oh->_sysc_cache = omap_hwmod_readl(oh, oh->sysconfig->sysc_offs); - oh->_int_flags |= _HWMOD_SYSCONFIG_LOADED; + if (!(oh->sysconfig->sysc_flags & SYSC_NO_CACHE)) + oh->_int_flags |= _HWMOD_SYSCONFIG_LOADED; return 0; } diff --git a/arch/arm/plat-omap/include/plat/omap_hwmod.h b/arch/arm/plat-omap/include/plat/omap_hwmod.h index 1f83495..a3298ca 100644 --- a/arch/arm/plat-omap/include/plat/omap_hwmod.h +++ b/arch/arm/plat-omap/include/plat/omap_hwmod.h @@ -228,6 +228,7 @@ struct omap_hwmod_ocp_if { #define SYSC_HAS_MIDLEMODE (1 << 6) #define SYSS_MISSING (1 << 7) #define SYSC_CHANGE_CLKACT_OFFSET (1 << 8) +#define SYSC_NO_CACHE (1 << 9) /* omap_hwmod_sysconfig.clockact flags */ #define CLOCKACT_TEST_BOTH 0x0