/arch/unicore32/kernel/ |
D | clock.c | 32 unsigned long rate; member 38 .rate = CLOCK_TICK_RATE, 95 return clk->rate; in clk_get_rate() 100 unsigned long rate; member 104 {.rate = 25175000, .cfg = 0x00002001, .div = 0x9}, 105 {.rate = 31500000, .cfg = 0x00002001, .div = 0x7}, 106 {.rate = 40000000, .cfg = 0x00003801, .div = 0x9}, 107 {.rate = 49500000, .cfg = 0x00003801, .div = 0x7}, 108 {.rate = 65000000, .cfg = 0x00002c01, .div = 0x4}, 109 {.rate = 78750000, .cfg = 0x00002400, .div = 0x7}, [all …]
|
/arch/arm/mach-ep93xx/ |
D | clock.c | 32 unsigned long rate; member 39 int (*set_rate)(struct clk *clk, unsigned long rate); 45 static int set_keytchclk_rate(struct clk *clk, unsigned long rate); 46 static int set_div_rate(struct clk *clk, unsigned long rate); 47 static int set_i2s_sclk_rate(struct clk *clk, unsigned long rate); 48 static int set_i2s_lrclk_rate(struct clk *clk, unsigned long rate); 51 .rate = EP93XX_EXT_CLK_RATE, 103 .rate = EP93XX_EXT_CLK_RATE, 107 .rate = EP93XX_EXT_CLK_RATE, 307 unsigned long rate = clk_get_rate(clk->parent); in get_uart_rate() local [all …]
|
/arch/c6x/platforms/ |
D | pll.c | 81 return clk->rate; in clk_get_rate() 85 long clk_round_rate(struct clk *clk, unsigned long rate) in clk_round_rate() argument 91 return clk->round_rate(clk, rate); in clk_round_rate() 93 return clk->rate; in clk_round_rate() 104 clk->rate = clk->recalc(clk); in propagate_rate() 109 int clk_set_rate(struct clk *clk, unsigned long rate) in clk_set_rate() argument 118 ret = clk->set_rate(clk, rate); in clk_set_rate() 123 clk->rate = clk->recalc(clk); in clk_set_rate() 151 clk->rate = clk->recalc(clk); in clk_set_parent() 164 if (WARN(clk->parent && !clk->parent->rate, in clk_register() [all …]
|
/arch/blackfin/mach-bf609/ |
D | clock.c | 115 long clk_round_rate(struct clk *clk, unsigned long rate) in clk_round_rate() argument 119 ret = clk->ops->round_rate(clk, rate); in clk_round_rate() 124 int clk_set_rate(struct clk *clk, unsigned long rate) in clk_set_rate() argument 128 ret = clk->ops->set_rate(clk, rate); in clk_set_rate() 135 return clk->rate; in vco_get_rate() 148 clk->parent->rate = clk_get_rate(clk->parent); in pll_get_rate() 149 return clk->parent->rate / (df + 1) * msel * 2; in pll_get_rate() 152 unsigned long pll_round_rate(struct clk *clk, unsigned long rate) in pll_round_rate() argument 155 div = rate / clk->parent->rate; in pll_round_rate() 156 return clk->parent->rate * div; in pll_round_rate() [all …]
|
/arch/arm/mach-omap2/ |
D | sdram-nokia.c | 129 long rate; member 141 static unsigned long sdrc_get_fclk_period(long rate) in sdrc_get_fclk_period() argument 144 return 1000000000 / rate; in sdrc_get_fclk_period() 147 static unsigned int sdrc_ps_to_ticks(unsigned int time_ps, long rate) in sdrc_ps_to_ticks() argument 152 tick_ps = sdrc_get_fclk_period(rate); in sdrc_ps_to_ticks() 159 int ticks, long rate, const char *name) in set_sdrc_timing_regval() argument 175 (unsigned int)sdrc_get_fclk_period(rate) * ticks / in set_sdrc_timing_regval() 183 #define SDRC_SET_ONE(reg, st, end, field, rate) \ argument 185 memory_timings->field, (rate), #field) < 0) \ 188 #define SDRC_SET_ONE(reg, st, end, field, rate) \ argument [all …]
|
D | sdram-hynix-h8mbx00u0mer-0em.h | 19 .rate = 200000000, 26 .rate = 166000000, 33 .rate = 100000000, 40 .rate = 83000000, 47 .rate = 0
|
D | sdram-micron-mt46h32m32lf-6.h | 23 .rate = 166000000, 30 .rate = 165941176, 37 .rate = 83000000, 44 .rate = 82970588, 51 .rate = 0
|
D | sdram-numonyx-m65kxxxxam.h | 19 .rate = 200000000, 26 .rate = 166000000, 33 .rate = 133000000, 40 .rate = 83000000, 47 .rate = 0
|
D | sdram-qimonda-hyb18m512160af-6.h | 22 .rate = 166000000, 29 .rate = 165941176, 36 .rate = 83000000, 43 .rate = 82970588, 50 .rate = 0
|
D | clkt2xxx_dpllcore.c | 111 int omap2_reprogram_dpllcore(struct clk_hw *hw, unsigned long rate, in omap2_reprogram_dpllcore() argument 123 if ((rate == (cur_rate / 2)) && (mult == 2)) { in omap2_reprogram_dpllcore() 125 } else if ((rate == (cur_rate * 2)) && (mult == 1)) { in omap2_reprogram_dpllcore() 127 } else if (rate != cur_rate) { in omap2_reprogram_dpllcore() 128 valid_rate = omap2_dpllcore_round_rate(rate); in omap2_reprogram_dpllcore() 129 if (valid_rate != rate) in omap2_reprogram_dpllcore() 147 if (rate > low) { in omap2_reprogram_dpllcore() 149 mult = ((rate / 2) / 1000000); in omap2_reprogram_dpllcore() 153 mult = (rate / 1000000); in omap2_reprogram_dpllcore() 162 if (rate == curr_prcm_set->xtal_speed) /* If asking for 1-1 */ in omap2_reprogram_dpllcore()
|
D | clkt2xxx_virt_prcm_set.c | 74 long omap2_round_to_table_rate(struct clk_hw *hw, unsigned long rate, in omap2_round_to_table_rate() argument 91 if (ptr->mpu_speed <= rate) in omap2_round_to_table_rate() 98 int omap2_select_table_rate(struct clk_hw *hw, unsigned long rate, in omap2_select_table_rate() argument 113 if (prcm->mpu_speed <= rate) { in omap2_select_table_rate() 121 rate / 1000000); in omap2_select_table_rate() 176 unsigned long rate; in omap2xxx_clkt_vps_check_bootloader_rates() local 178 rate = omap2xxx_clk_get_core_rate(); in omap2xxx_clkt_vps_check_bootloader_rates() 184 if (prcm->dpll_speed <= rate) in omap2xxx_clkt_vps_check_bootloader_rates()
|
/arch/arm/plat-versatile/ |
D | clock.c | 34 return clk->rate; in clk_get_rate() 38 long clk_round_rate(struct clk *clk, unsigned long rate) in clk_round_rate() argument 42 ret = clk->ops->round(clk, rate); in clk_round_rate() 47 int clk_set_rate(struct clk *clk, unsigned long rate) in clk_set_rate() argument 51 ret = clk->ops->set(clk, rate); in clk_set_rate() 56 long icst_clk_round(struct clk *clk, unsigned long rate) in icst_clk_round() argument 59 vco = icst_hz_to_vco(clk->params, rate); in icst_clk_round() 64 int icst_clk_set(struct clk *clk, unsigned long rate) in icst_clk_set() argument 68 vco = icst_hz_to_vco(clk->params, rate); in icst_clk_set() 69 clk->rate = icst_hz(clk->params, vco); in icst_clk_set()
|
/arch/sh/kernel/cpu/sh4/ |
D | clock-sh4-202.c | 28 return clk->parent->rate / frqcr3_divisors[idx]; in emi_clk_recalc() 31 static inline int frqcr3_lookup(struct clk *clk, unsigned long rate) in frqcr3_lookup() argument 33 int divisor = clk->parent->rate / rate; in frqcr3_lookup() 56 return clk->parent->rate / frqcr3_divisors[idx]; in femi_clk_recalc() 84 if (clk->ops->set_rate(clk, clk->parent->rate / divisor) == 0) in shoc_clk_init() 94 return clk->parent->rate / frqcr3_divisors[idx]; in shoc_clk_recalc() 97 static int shoc_clk_verify_rate(struct clk *clk, unsigned long rate) in shoc_clk_verify_rate() argument 104 if (rate > bclk_rate) in shoc_clk_verify_rate() 106 if (rate > 66000000) in shoc_clk_verify_rate() 112 static int shoc_clk_set_rate(struct clk *clk, unsigned long rate) in shoc_clk_set_rate() argument [all …]
|
/arch/mips/lantiq/ |
D | clk.c | 34 cpu_clk_generic[0].rate = cpu; in clkdev_add_static() 35 cpu_clk_generic[1].rate = fpi; in clkdev_add_static() 36 cpu_clk_generic[2].rate = io; in clkdev_add_static() 37 cpu_clk_generic[3].rate = ppe; in clkdev_add_static() 72 if (clk->rate != 0) in clk_get_rate() 73 return clk->rate; in clk_get_rate() 82 int clk_set_rate(struct clk *clk, unsigned long rate) in clk_set_rate() argument 89 while (*r && (*r != rate)) in clk_set_rate() 93 clk->cl.dev_id, clk->cl.con_id, rate); in clk_set_rate() 97 clk->rate = rate; in clk_set_rate() [all …]
|
/arch/arm/mach-omap1/ |
D | clock.c | 57 return clk->parent->rate / div; in omap1_sossi_recalc() 135 static int calc_dsor_exp(struct clk *clk, unsigned long rate) in calc_dsor_exp() argument 156 realrate = parent->rate; in calc_dsor_exp() 158 if (realrate <= rate) in calc_dsor_exp() 172 return clk->parent->rate / dsor; in omap1_ckctl_recalc() 190 return clk->parent->rate / dsor; in omap1_ckctl_recalc_dsp_domain() 194 int omap1_select_table_rate(struct clk *clk, unsigned long rate) in omap1_select_table_rate() argument 200 ref_rate = ck_ref_p->rate; in omap1_select_table_rate() 202 for (ptr = omap1_rate_table; ptr->rate; ptr++) { in omap1_select_table_rate() 210 if (ptr->rate <= rate) in omap1_select_table_rate() [all …]
|
D | clock.h | 50 #define __clk_get_rate(clk) (clk->rate) 148 unsigned long rate; member 168 long (*clk_round_rate)(struct clk *clk, unsigned long rate); 169 int (*clk_set_rate)(struct clk *clk, unsigned long rate); 200 extern long omap1_clk_round_rate(struct clk *clk, unsigned long rate); 201 extern int omap1_clk_set_rate(struct clk *clk, unsigned long rate); 203 extern int omap1_set_sossi_rate(struct clk *clk, unsigned long rate); 206 extern int omap1_clk_set_rate_dsp_domain(struct clk *clk, unsigned long rate); 207 extern int omap1_set_uart_rate(struct clk *clk, unsigned long rate); 209 extern int omap1_set_ext_clk_rate(struct clk *clk, unsigned long rate); [all …]
|
D | time.c | 164 static __init void omap_init_mpu_timer(unsigned long rate) in omap_init_mpu_timer() argument 167 omap_mpu_timer_start(0, (rate / HZ) - 1, 1); in omap_init_mpu_timer() 170 clockevents_config_and_register(&clockevent_mpu_timer1, rate, in omap_init_mpu_timer() 186 static void __init omap_init_clocksource(unsigned long rate) in omap_init_clocksource() argument 193 sched_clock_register(omap_mpu_read_sched_clock, 32, rate); in omap_init_clocksource() 195 if (clocksource_mmio_init(&timer->read_tim, "mpu_timer2", rate, in omap_init_clocksource() 203 unsigned long rate; in omap_mpu_timer_init() local 207 rate = clk_get_rate(ck_ref); in omap_mpu_timer_init() 211 rate /= 2; in omap_mpu_timer_init() 213 omap_init_mpu_timer(rate); in omap_mpu_timer_init() [all …]
|
D | clock_data.c | 81 .rate = 12000000, 423 .rate = 12000000, 443 .rate = 48000000, 462 .rate = 12000000, 481 .rate = 12000000, 501 .rate = 48000000, 513 .rate = 6000000, 523 .rate = 48000000, /* Actually 2 clocks, 12MHz and 48MHz */ 533 .rate = 48000000, 544 .rate = 48000000, [all …]
|
/arch/arm/mach-davinci/ |
D | clock.c | 131 return clk->rate; in clk_get_rate() 135 long clk_round_rate(struct clk *clk, unsigned long rate) in clk_round_rate() argument 141 return clk->round_rate(clk, rate); in clk_round_rate() 143 return clk->rate; in clk_round_rate() 154 clk->rate = clk->recalc(clk); in propagate_rate() 159 int clk_set_rate(struct clk *clk, unsigned long rate) in clk_set_rate() argument 170 ret = clk->set_rate(clk, rate); in clk_set_rate() 175 clk->rate = clk->recalc(clk); in clk_set_rate() 205 clk->rate = clk->recalc(clk); in clk_set_parent() 218 if (WARN(clk->parent && !clk->parent->rate, in clk_register() [all …]
|
/arch/mips/ar7/ |
D | clock.c | 101 .rate = 125000000, 105 .rate = 150000000, 195 base_clock = cpu_clk.rate; in tnetd7300_get_clock() 222 int base_clock = bus_clk.rate; in tnetd7300_set_clock() 226 base_clock = bus_clk.rate; in tnetd7300_set_clock() 235 base_clock = cpu_clk.rate; in tnetd7300_set_clock() 257 bus_clk.rate = tnetd7300_get_clock(BUS_PLL_SOURCE_SHIFT, in tnetd7300_init_clocks() 261 cpu_clk.rate = tnetd7300_get_clock(CPU_PLL_SOURCE_SHIFT, in tnetd7300_init_clocks() 264 cpu_clk.rate = bus_clk.rate; in tnetd7300_init_clocks() 266 if (dsp_clk.rate == 250000000) in tnetd7300_init_clocks() [all …]
|
/arch/mips/loongson64/lemote-2f/ |
D | clock.c | 47 .rate = 800000000, 83 return (unsigned long)clk->rate; in clk_get_rate() 92 int clk_set_rate(struct clk *clk, unsigned long rate) in clk_set_rate() argument 94 unsigned int rate_khz = rate / 1000; in clk_set_rate() 103 ret = clk->ops->set_rate(clk, rate, 0); in clk_set_rate() 116 clk->rate = rate; in clk_set_rate() 126 long clk_round_rate(struct clk *clk, unsigned long rate) in clk_round_rate() argument 132 rounded = clk->ops->round_rate(clk, rate); in clk_round_rate() 138 return rate; in clk_round_rate()
|
/arch/mips/ralink/ |
D | clk.c | 21 unsigned long rate; member 24 void ralink_clk_add(const char *dev, unsigned long rate) in ralink_clk_add() argument 34 clk->rate = rate; in ralink_clk_add() 55 return clk->rate; in clk_get_rate() 59 int clk_set_rate(struct clk *clk, unsigned long rate) in clk_set_rate() argument
|
/arch/arm/mach-lpc32xx/ |
D | clock.c | 120 while (clk->rate == 0) in local_return_parent_rate() 123 return clk->rate; in local_return_parent_rate() 128 .rate = LPC32XX_CLOCK_OSC_FREQ, 193 .rate = LPC32XX_CLOCK_OSC_FREQ * 397, 199 .rate = LPC32XX_MAIN_OSC_FREQ, 262 clkin = clk_armpll.parent->rate; in local_update_armpll_rate() 265 clk_armpll.rate = clk_get_pllrate_from_reg(clkin, pllreg); in local_update_armpll_rate() 383 return clk_check_pll_setup(clk_usbpll.parent->rate, in local_clk_usbpll_setup() 452 unsigned long rate) in local_usbpll_round_rate() argument 461 rate = rate * 1000; in local_usbpll_round_rate() [all …]
|
/arch/arm/mach-mmp/ |
D | clock.c | 81 unsigned long rate; in clk_get_rate() local 84 rate = clk->ops->getrate(clk); in clk_get_rate() 86 rate = clk->rate; in clk_get_rate() 88 return rate; in clk_get_rate() 92 int clk_set_rate(struct clk *clk, unsigned long rate) in clk_set_rate() argument 99 ret = clk->ops->setrate(clk, rate); in clk_set_rate()
|
/arch/arm/mach-w90x900/ |
D | time.c | 125 unsigned int rate; in nuc900_clockevents_init() local 133 rate = clk_get_rate(clk) / (PRESCALE + 1); in nuc900_clockevents_init() 135 timer0_load = (rate / TICKS_PER_SEC); in nuc900_clockevents_init() 142 clockevents_config_and_register(&nuc900_clockevent_device, rate, in nuc900_clockevents_init() 149 unsigned int rate; in nuc900_clocksource_init() local 157 rate = clk_get_rate(clk) / (PRESCALE + 1); in nuc900_clocksource_init() 165 clocksource_mmio_init(REG_TDR1, "nuc900-timer1", rate, 200, in nuc900_clocksource_init()
|