X-Git-Url: https://jxself.org/git/?p=carl9170fw.git;a=blobdiff_plain;f=carlfw%2Finclude%2Ftimer.h;h=7e4cb4cd69a2a5a4bebac5a8f4b38f206b7e1fd9;hp=7f6c491d87247cd5ce1461919db4ae852f82aff3;hb=7c60c5e57519144942267d382d3658c070bc89e7;hpb=65e93c4ca3587d9007e87653f9436463d2823530 diff --git a/carlfw/include/timer.h b/carlfw/include/timer.h index 7f6c491..7e4cb4c 100644 --- a/carlfw/include/timer.h +++ b/carlfw/include/timer.h @@ -84,17 +84,5 @@ static inline __inline void udelay(const uint32_t usec) } } -static inline void clock_set(enum cpu_clock_t _clock, bool on) -{ - /* - * Word of Warning! - * This setting does more than just mess with the CPU Clock. - * So watch out, if you need _stable_ timer interrupts. - */ - - fw.ticks_per_msec = GET_VAL(AR9170_PWR_PLL_ADDAC_DIV, get(AR9170_PWR_REG_PLL_ADDAC)) >> 1; - - set(AR9170_PWR_REG_CLOCK_SEL, (uint32_t) ((on ? 0x70 : 0x600) | _clock)); -} - +void clock_set(enum cpu_clock_t _clock, bool on); #endif /* __CARL9170FW_TIMER_H */