aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/plat-omap/include/plat
diff options
context:
space:
mode:
authorBenoit Cousson <b-cousson@ti.com>2010-05-20 14:31:08 -0400
committerPaul Walmsley <paul@pwsan.com>2010-05-20 14:31:08 -0400
commit53934aa74d49daa7c31c38028fd05c99475489d6 (patch)
tree076253fbd3022a38e55ec9abb2db976b6d67d781 /arch/arm/plat-omap/include/plat
parent3587aeb067a71b26aa0349daf061572a17e6dcba (diff)
OMAP4: hwmod: Replace module & device offsets by absolute clkctrl address
Accessing the clkctrl register using offset of module & device is hard to do in OMAP4 due to the way the CM1, CM2, PRM and PRCM_MPU are located in the address space. There is no common base address anymore for all the CM registers. The easiest way to handle that on OMAP4 is to provide the absolute address of the XXX_CLKCTRL register per hwmod. Signed-off-by: Benoit Cousson <b-cousson@ti.com> Signed-off-by: Paul Walmsley <paul@pwsan.com> Cc: Rajendra Nayak <rnayak@ti.com>
Diffstat (limited to 'arch/arm/plat-omap/include/plat')
-rw-r--r--arch/arm/plat-omap/include/plat/omap_hwmod.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/arch/arm/plat-omap/include/plat/omap_hwmod.h b/arch/arm/plat-omap/include/plat/omap_hwmod.h
index 36d6ea56ab51..4965bbe8efb7 100644
--- a/arch/arm/plat-omap/include/plat/omap_hwmod.h
+++ b/arch/arm/plat-omap/include/plat/omap_hwmod.h
@@ -327,14 +327,12 @@ struct omap_hwmod_omap2_prcm {
327 327
328/** 328/**
329 * struct omap_hwmod_omap4_prcm - OMAP4-specific PRCM data 329 * struct omap_hwmod_omap4_prcm - OMAP4-specific PRCM data
330 * @module_offs: PRCM submodule offset from the start of the PRM/CM1/CM2 330 * @clkctrl_reg: PRCM address of the clock control register
331 * @device_offs: device register offset from @module_offs
332 * @submodule_wkdep_bit: bit shift of the WKDEP range 331 * @submodule_wkdep_bit: bit shift of the WKDEP range
333 */ 332 */
334struct omap_hwmod_omap4_prcm { 333struct omap_hwmod_omap4_prcm {
335 u32 module_offs; 334 void __iomem *clkctrl_reg;
336 u16 device_offs; 335 u8 submodule_wkdep_bit;
337 u8 submodule_wkdep_bit;
338}; 336};
339 337
340 338