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>
This commit is contained in:
@ -168,6 +168,18 @@
|
||||
/* Power/reset management domain register get/set */
|
||||
extern u32 prm_read_mod_reg(s16 module, u16 idx);
|
||||
extern void prm_write_mod_reg(u32 val, s16 module, u16 idx);
|
||||
extern u32 prm_rmw_mod_reg_bits(u32 mask, u32 bits, s16 module, s16 idx);
|
||||
|
||||
/* Read-modify-write bits in a PRM register (by domain) */
|
||||
static inline u32 prm_set_mod_reg_bits(u32 bits, s16 module, s16 idx)
|
||||
{
|
||||
return prm_rmw_mod_reg_bits(bits, bits, module, idx);
|
||||
}
|
||||
|
||||
static inline u32 prm_clear_mod_reg_bits(u32 bits, s16 module, s16 idx)
|
||||
{
|
||||
return prm_rmw_mod_reg_bits(bits, 0x0, module, idx);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
|
Reference in New Issue
Block a user