diff options
author | Paul Walmsley <paul@pwsan.com> | 2010-12-21 23:05:15 -0500 |
---|---|---|
committer | Paul Walmsley <paul@pwsan.com> | 2010-12-21 23:05:15 -0500 |
commit | 55ae35073b1c76f24c3736cf797c40d9932b19aa (patch) | |
tree | 0309763ffbd016bb884ca916b35a15d10f1982a5 /arch/arm/plat-omap | |
parent | bd2122ca358fbd5c8e94869ae731a0951b36c757 (diff) |
OMAP2/3: clockdomain: remove unneeded .clkstctrl_reg, remove some direct CM register accesses
Reverse some of the effects of commit
84c0c39aec31a09571fc08a752a2f4da0fe9fcf2 ("ARM: OMAP4: PM: Make OMAP3
Clock-domain framework compatible for OMAP4"). On OMAP2/3, the
CM_CLKSTCTRL register is at a constant offset from the powerdomain's
CM instance.
Also, remove some of the direct CM register access from the
clockdomain code, moving it to the OMAP2/3 CM code instead. The
intention here is to simplify the clockdomain code. (The long-term
goal is to move all direct CM register access across the OMAP core
code to the appropriate cm*.c file.)
Signed-off-by: Paul Walmsley <paul@pwsan.com>
Tested-by: Rajendra Nayak <rnayak@ti.com>
Tested-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
Diffstat (limited to 'arch/arm/plat-omap')
-rw-r--r-- | arch/arm/plat-omap/include/plat/clockdomain.h | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/arch/arm/plat-omap/include/plat/clockdomain.h b/arch/arm/plat-omap/include/plat/clockdomain.h index ec433c3aef68..e91ae92f217c 100644 --- a/arch/arm/plat-omap/include/plat/clockdomain.h +++ b/arch/arm/plat-omap/include/plat/clockdomain.h | |||
@@ -34,10 +34,6 @@ | |||
34 | #define CLKDM_CAN_SWSUP (CLKDM_CAN_FORCE_SLEEP | CLKDM_CAN_FORCE_WAKEUP) | 34 | #define CLKDM_CAN_SWSUP (CLKDM_CAN_FORCE_SLEEP | CLKDM_CAN_FORCE_WAKEUP) |
35 | #define CLKDM_CAN_HWSUP_SWSUP (CLKDM_CAN_SWSUP | CLKDM_CAN_HWSUP) | 35 | #define CLKDM_CAN_HWSUP_SWSUP (CLKDM_CAN_SWSUP | CLKDM_CAN_HWSUP) |
36 | 36 | ||
37 | /* OMAP24XX CM_CLKSTCTRL_*.AUTOSTATE_* register bit values */ | ||
38 | #define OMAP24XX_CLKSTCTRL_DISABLE_AUTO 0x0 | ||
39 | #define OMAP24XX_CLKSTCTRL_ENABLE_AUTO 0x1 | ||
40 | |||
41 | /** | 37 | /** |
42 | * struct clkdm_autodep - clkdm deps to add when entering/exiting hwsup mode | 38 | * struct clkdm_autodep - clkdm deps to add when entering/exiting hwsup mode |
43 | * @clkdm: clockdomain to add wkdep+sleepdep on - set name member only | 39 | * @clkdm: clockdomain to add wkdep+sleepdep on - set name member only |
@@ -110,7 +106,6 @@ struct clockdomain { | |||
110 | struct powerdomain *ptr; | 106 | struct powerdomain *ptr; |
111 | } pwrdm; | 107 | } pwrdm; |
112 | #if defined(CONFIG_ARCH_OMAP2) || defined(CONFIG_ARCH_OMAP3) | 108 | #if defined(CONFIG_ARCH_OMAP2) || defined(CONFIG_ARCH_OMAP3) |
113 | void __iomem *clkstctrl_reg; | ||
114 | const u16 clktrctrl_mask; | 109 | const u16 clktrctrl_mask; |
115 | #endif | 110 | #endif |
116 | const u8 flags; | 111 | const u8 flags; |