Home
last modified time | relevance | path

Searched refs:OSC_HZ (Results 1 – 17 of 17) sorted by relevance

/external/u-boot/drivers/clk/rockchip/
Dclk_rv1108.c31 .fbdiv = (u32)((u64)hz * _refdiv * _postdiv1 * _postdiv2 / OSC_HZ),\
33 _Static_assert(((u64)hz * _refdiv * _postdiv1 * _postdiv2 / OSC_HZ) *\
34 OSC_HZ / (_refdiv * _postdiv1 * _postdiv2) == hz,\
80 freq = OSC_HZ; in rkclk_pll_get_rate()
140 return DIV_TO_RATE(OSC_HZ, div); in rv1108_saradc_get_clk()
147 src_clk_div = DIV_ROUND_UP(OSC_HZ, hz) - 1; in rv1108_saradc_set_clk()
Dclk_rk3036.c33 .fbdiv = (u32)((u64)hz * _refdiv * _postdiv1 * _postdiv2 / OSC_HZ),\
35 _Static_assert(((u64)hz * _refdiv * _postdiv1 * _postdiv2 / OSC_HZ) *\
36 OSC_HZ / (_refdiv * _postdiv1 * _postdiv2) == hz,\
51 uint vco_hz = OSC_HZ / 1000 * div->fbdiv / div->refdiv * 1000; in rkclk_set_pll()
193 return OSC_HZ; in rkclk_pll_get_rate()
234 src_rate = mux == EMMC_SEL_24M ? OSC_HZ : clk_general_rate; in rockchip_mmc_get_clk()
250 src_clk_div = DIV_ROUND_UP(OSC_HZ / 2, freq); in rockchip_mmc_set_clk()
Dclk_rk3368.c35 #define OSC_HZ (24 * 1000 * 1000) macro
44 .nr = _nr, .nf = (u32)((u64)hz * _nr * _no / OSC_HZ), .no = _no}; \
45 _Static_assert(((u64)hz * _nr * _no / OSC_HZ) * OSC_HZ /\
72 return OSC_HZ; in rkclk_pll_get_rate()
93 uint vco_hz = OSC_HZ / 1000 * div->nf / div->nr * 1000; in rkclk_set_pll()
182 pll_rate = OSC_HZ; in rk3368_mmc_get_clk()
435 return DIV_TO_RATE(OSC_HZ, div); in rk3368_saradc_get_clk()
442 src_clk_div = DIV_ROUND_UP(OSC_HZ, hz) - 1; in rk3368_saradc_set_clk()
Dclk_rk3128.c31 .fbdiv = (u32)((u64)hz * _refdiv * _postdiv1 * _postdiv2 / OSC_HZ),\
45 uint vco_hz = OSC_HZ / 1000 * div->fbdiv / div->refdiv * 1000; in rkclk_set_pll()
78 u32 ref_khz = OSC_HZ / 1000, refdiv, fbdiv = 0; in pll_para_config()
262 return OSC_HZ; in rkclk_pll_get_rate()
303 src_rate = mux == EMMC_SEL_24M ? OSC_HZ : clk_general_rate; in rockchip_mmc_get_clk()
319 src_clk_div = DIV_ROUND_UP(OSC_HZ / 2, freq); in rockchip_mmc_set_clk()
399 return DIV_TO_RATE(OSC_HZ, div); in rk3128_saradc_get_clk()
406 src_clk_div = DIV_ROUND_UP(OSC_HZ, hz) - 1; in rk3128_saradc_set_clk()
Dclk_rk322x.c30 .fbdiv = (u32)((u64)hz * _refdiv * _postdiv1 * _postdiv2 / OSC_HZ), \
32 _Static_assert(((u64)hz * _refdiv * _postdiv1 * _postdiv2 / OSC_HZ) * \
33 OSC_HZ / (_refdiv * _postdiv1 * _postdiv2) == hz, \
48 uint vco_hz = OSC_HZ / 1000 * div->fbdiv / div->refdiv * 1000; in rkclk_set_pll()
194 return OSC_HZ; in rkclk_pll_get_rate()
235 src_rate = mux == EMMC_SEL_24M ? OSC_HZ : clk_general_rate; in rockchip_mmc_get_clk()
286 src_clk_div = DIV_ROUND_UP(OSC_HZ / 2, freq); in rockchip_mmc_set_clk()
Dclk_rk3288.c133 .nr = _nr, .nf = (u32)((u64)hz * _nr * _no / OSC_HZ), .no = _no};\
134 _Static_assert(((u64)hz * _nr * _no / OSC_HZ) * OSC_HZ /\
149 uint vco_hz = OSC_HZ / 1000 * div->nf / div->nr * 1000; in rkclk_set_pll()
228 uint ref_khz = OSC_HZ / 1000, nr, nf = 0; in pll_para_config()
509 return OSC_HZ; in rkclk_pll_get_rate()
555 src_rate = mux == EMMC_PLL_SELECT_24MHZ ? OSC_HZ : gclk_rate; in rockchip_mmc_get_clk()
570 src_clk_div = DIV_ROUND_UP(OSC_HZ / 2, freq); in rockchip_mmc_set_clk()
681 return DIV_TO_RATE(OSC_HZ, div); in rockchip_saradc_get_clk()
688 src_clk_div = DIV_ROUND_UP(OSC_HZ, hz) - 1; in rockchip_saradc_set_clk()
Dclk_rk3328.c34 .fbdiv = (u32)((u64)hz * _refdiv * _postdiv1 * _postdiv2 / OSC_HZ),\
241 u32 vco_khz = OSC_HZ / 1000 * div->fbdiv / div->refdiv; in rkclk_set_pll()
461 return DIV_TO_RATE(OSC_HZ, div) / 2; in rk3328_mmc_get_clk()
490 src_clk_div = DIV_ROUND_UP(OSC_HZ / 2, set_rate); in rk3328_mmc_set_clk()
535 return DIV_TO_RATE(OSC_HZ, div); in rk3328_saradc_get_clk()
542 src_clk_div = DIV_ROUND_UP(OSC_HZ, hz) - 1; in rk3328_saradc_set_clk()
Dclk_rk3188.c74 .nr = _nr, .nf = (u32)((u64)hz * _nr * _no / OSC_HZ), .no = _no};\
75 _Static_assert(((u64)hz * _nr * _no / OSC_HZ) * OSC_HZ /\
91 uint vco_hz = OSC_HZ / 1000 * div->nf / div->nr * 1000; in rkclk_set_pll()
242 return OSC_HZ; in rkclk_pll_get_rate()
Dclk_rk3399.c46 .fbdiv = (u32)((u64)hz * _refdiv * _postdiv1 * _postdiv2 / OSC_HZ),\
294 u32 vco_khz = OSC_HZ / 1000 * div->fbdiv / div->refdiv; in rkclk_set_pll()
336 u32 ref_khz = OSC_HZ / KHz, refdiv, fbdiv = 0; in pll_para_config()
684 return DIV_TO_RATE(OSC_HZ, div); in rk3399_mmc_get_clk()
704 src_clk_div = DIV_ROUND_UP(OSC_HZ / 2, set_rate); in rk3399_mmc_set_clk()
813 return DIV_TO_RATE(OSC_HZ, div); in rk3399_saradc_get_clk()
820 src_clk_div = DIV_ROUND_UP(OSC_HZ, hz) - 1; in rk3399_saradc_set_clk()
/external/u-boot/arch/arm/include/asm/arch-rockchip/
Dcru_rk3328.h49 #define OSC_HZ (24 * MHz) macro
Dcru_rv1108.h11 #define OSC_HZ (24 * 1000 * 1000) macro
Dcru_rk3188.h8 #define OSC_HZ (24 * 1000 * 1000) macro
Dcru_rk3399.h71 #define OSC_HZ (24*MHz) macro
Dcru_rk3036.h10 #define OSC_HZ (24 * 1000 * 1000) macro
Dcru_rk3128.h12 #define OSC_HZ (24 * MHz) macro
Dcru_rk322x.h11 #define OSC_HZ (24 * MHz) macro
Dcru_rk3288.h11 #define OSC_HZ (24 * 1000 * 1000) macro