diff options
-rw-r--r-- | arch/arm/mach-omap2/omap_hwmod_44xx_data.c | 3 | ||||
-rw-r--r-- | arch/arm/plat-omap/include/plat/omap_hwmod.h | 7 |
2 files changed, 10 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/omap_hwmod_44xx_data.c b/arch/arm/mach-omap2/omap_hwmod_44xx_data.c index 110be87cd995..d3f045bf810a 100644 --- a/arch/arm/mach-omap2/omap_hwmod_44xx_data.c +++ b/arch/arm/mach-omap2/omap_hwmod_44xx_data.c | |||
@@ -202,6 +202,8 @@ static struct omap_hwmod omap44xx_l4_abe_hwmod = { | |||
202 | .prcm = { | 202 | .prcm = { |
203 | .omap4 = { | 203 | .omap4 = { |
204 | .clkctrl_offs = OMAP4_CM1_ABE_L4ABE_CLKCTRL_OFFSET, | 204 | .clkctrl_offs = OMAP4_CM1_ABE_L4ABE_CLKCTRL_OFFSET, |
205 | .context_offs = OMAP4_RM_ABE_AESS_CONTEXT_OFFSET, | ||
206 | .lostcontext_mask = OMAP4430_LOSTMEM_AESSMEM_MASK, | ||
205 | }, | 207 | }, |
206 | }, | 208 | }, |
207 | }; | 209 | }; |
@@ -342,6 +344,7 @@ static struct omap_hwmod omap44xx_aess_hwmod = { | |||
342 | .omap4 = { | 344 | .omap4 = { |
343 | .clkctrl_offs = OMAP4_CM1_ABE_AESS_CLKCTRL_OFFSET, | 345 | .clkctrl_offs = OMAP4_CM1_ABE_AESS_CLKCTRL_OFFSET, |
344 | .context_offs = OMAP4_RM_ABE_AESS_CONTEXT_OFFSET, | 346 | .context_offs = OMAP4_RM_ABE_AESS_CONTEXT_OFFSET, |
347 | .lostcontext_mask = OMAP4430_LOSTCONTEXT_DFF_MASK, | ||
345 | .modulemode = MODULEMODE_SWCTRL, | 348 | .modulemode = MODULEMODE_SWCTRL, |
346 | }, | 349 | }, |
347 | }, | 350 | }, |
diff --git a/arch/arm/plat-omap/include/plat/omap_hwmod.h b/arch/arm/plat-omap/include/plat/omap_hwmod.h index 6eedb366dc1a..86b6a4e70824 100644 --- a/arch/arm/plat-omap/include/plat/omap_hwmod.h +++ b/arch/arm/plat-omap/include/plat/omap_hwmod.h | |||
@@ -389,14 +389,21 @@ struct omap_hwmod_omap2_prcm { | |||
389 | * struct omap_hwmod_omap4_prcm - OMAP4-specific PRCM data | 389 | * struct omap_hwmod_omap4_prcm - OMAP4-specific PRCM data |
390 | * @clkctrl_reg: PRCM address of the clock control register | 390 | * @clkctrl_reg: PRCM address of the clock control register |
391 | * @rstctrl_reg: address of the XXX_RSTCTRL register located in the PRM | 391 | * @rstctrl_reg: address of the XXX_RSTCTRL register located in the PRM |
392 | * @lostcontext_mask: bitmask for selecting bits from RM_*_CONTEXT register | ||
392 | * @rstst_reg: (AM33XX only) address of the XXX_RSTST register in the PRM | 393 | * @rstst_reg: (AM33XX only) address of the XXX_RSTST register in the PRM |
393 | * @submodule_wkdep_bit: bit shift of the WKDEP range | 394 | * @submodule_wkdep_bit: bit shift of the WKDEP range |
395 | * | ||
396 | * If @lostcontext_mask is not defined, context loss check code uses | ||
397 | * whole register without masking. @lostcontext_mask should only be | ||
398 | * defined in cases where @context_offs register is shared by two or | ||
399 | * more hwmods. | ||
394 | */ | 400 | */ |
395 | struct omap_hwmod_omap4_prcm { | 401 | struct omap_hwmod_omap4_prcm { |
396 | u16 clkctrl_offs; | 402 | u16 clkctrl_offs; |
397 | u16 rstctrl_offs; | 403 | u16 rstctrl_offs; |
398 | u16 rstst_offs; | 404 | u16 rstst_offs; |
399 | u16 context_offs; | 405 | u16 context_offs; |
406 | u32 lostcontext_mask; | ||
400 | u8 submodule_wkdep_bit; | 407 | u8 submodule_wkdep_bit; |
401 | u8 modulemode; | 408 | u8 modulemode; |
402 | }; | 409 | }; |