7 #ifndef _MACH_COMMON_PLL_H
8 #define _MACH_COMMON_PLL_H
13 #include <asm/irqflags.h>
15 #ifndef bfin_iwr_restore
17 bfin_iwr_restore(
unsigned long iwr0,
unsigned long iwr1,
unsigned long iwr2)
35 bfin_iwr_save(
unsigned long niwr0,
unsigned long niwr1,
unsigned long niwr2,
36 unsigned long *iwr0,
unsigned long *iwr1,
unsigned long *iwr2)
49 bfin_iwr_restore(niwr0, niwr1, niwr2);
53 static inline void _bfin_write_pll_relock(
u32 addr,
unsigned int val)
55 unsigned long flags, iwr0, iwr1, iwr2;
62 bfin_iwr_save(
IWR_ENABLE(0), 0, 0, &iwr0, &iwr1, &iwr2);
68 bfin_iwr_restore(iwr0, iwr1, iwr2);
73 static inline void bfin_write_PLL_CTL(
unsigned int val)
75 _bfin_write_pll_relock(
PLL_CTL, val);
79 static inline void bfin_write_VR_CTL(
unsigned int val)
81 _bfin_write_pll_relock(
VR_CTL, val);