]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - arch/arm/mach-omap2/cm.h
ARM: OMAP: Introduce omap_globals and prcm access functions for multi-omap
[linux-2.6-omap-h63xx.git] / arch / arm / mach-omap2 / cm.h
index 8489f3029fedc99a97036534287d7233bf9e0b50..e2d404e69454c2e6cda71b4d5bcb3105ad76007b 100644 (file)
 /* Clock management domain register get/set */
 
 #ifndef __ASSEMBLER__
-static inline void cm_write_mod_reg(u32 val, s16 module, s16 idx)
-{
-       __raw_writel(val, OMAP_CM_REGADDR(module, idx));
-}
-
-static inline u32 cm_read_mod_reg(s16 module, s16 idx)
-{
-       return __raw_readl(OMAP_CM_REGADDR(module, idx));
-}
+
+extern u32 cm_read_mod_reg(s16 module, u16 idx);
+extern void cm_write_mod_reg(u32 val, s16 module, u16 idx);
+
 #endif
 
 /* CM register bits shared between 24XX and 3430 */