diff options
author | Tony Lindgren <tony@atomide.com> | 2008-07-03 05:24:44 -0400 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2008-07-03 05:24:44 -0400 |
commit | ff00fcc9ca8f18facbc3fcd779e85887e5a0d247 (patch) | |
tree | b1270b8b3a748e3ff7a16551ba4831fff4a5d118 /arch/arm/mach-omap2/cm.h | |
parent | a58caad11301a5bdc2d7b76596ab5477221f7a9b (diff) |
ARM: OMAP: Turn CM and PRM access into functions
Otherwise compiling in omap2 and omap3 will not work.
Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/mach-omap2/cm.h')
-rw-r--r-- | arch/arm/mach-omap2/cm.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/cm.h b/arch/arm/mach-omap2/cm.h index e2d404e69454..1dd873fcc2bd 100644 --- a/arch/arm/mach-omap2/cm.h +++ b/arch/arm/mach-omap2/cm.h | |||
@@ -99,6 +99,17 @@ | |||
99 | 99 | ||
100 | extern u32 cm_read_mod_reg(s16 module, u16 idx); | 100 | extern u32 cm_read_mod_reg(s16 module, u16 idx); |
101 | extern void cm_write_mod_reg(u32 val, s16 module, u16 idx); | 101 | extern void cm_write_mod_reg(u32 val, s16 module, u16 idx); |
102 | extern u32 cm_rmw_mod_reg_bits(u32 mask, u32 bits, s16 module, s16 idx); | ||
103 | |||
104 | static inline u32 cm_set_mod_reg_bits(u32 bits, s16 module, s16 idx) | ||
105 | { | ||
106 | return cm_rmw_mod_reg_bits(bits, bits, module, idx); | ||
107 | } | ||
108 | |||
109 | static inline u32 cm_clear_mod_reg_bits(u32 bits, s16 module, s16 idx) | ||
110 | { | ||
111 | return cm_rmw_mod_reg_bits(bits, 0x0, module, idx); | ||
112 | } | ||
102 | 113 | ||
103 | #endif | 114 | #endif |
104 | 115 | ||