Home
last modified time | relevance | path

Searched refs:hclk_div (Results 1 – 8 of 8) sorted by relevance

/external/u-boot/drivers/clk/rockchip/
Dclk_rk3036.c81 u32 hclk_div; in rkclk_init() local
125 hclk_div = GPLL_HZ / BUS_HCLK_HZ - 1; in rkclk_init()
126 assert((hclk_div + 1) * BUS_HCLK_HZ == GPLL_HZ && hclk_div <= 0x3); in rkclk_init()
136 hclk_div << BUS_HCLK_DIV_SHIFT); in rkclk_init()
145 hclk_div = ilog2(PERI_ACLK_HZ / PERI_HCLK_HZ); in rkclk_init()
146 assert((1 << hclk_div) * PERI_HCLK_HZ == in rkclk_init()
147 PERI_ACLK_HZ && (hclk_div < 0x4)); in rkclk_init()
158 hclk_div << PERI_HCLK_DIV_SHIFT | in rkclk_init()
Dclk_rk322x.c82 u32 hclk_div; in rkclk_init() local
126 hclk_div = BUS_ACLK_HZ / BUS_HCLK_HZ - 1; in rkclk_init()
127 assert((hclk_div + 1) * BUS_HCLK_HZ == GPLL_HZ && hclk_div <= 0x3); in rkclk_init()
137 hclk_div << BUS_HCLK_DIV_SHIFT); in rkclk_init()
146 hclk_div = ilog2(PERI_ACLK_HZ / PERI_HCLK_HZ); in rkclk_init()
147 assert((1 << hclk_div) * PERI_HCLK_HZ == in rkclk_init()
148 PERI_ACLK_HZ && (hclk_div < 0x4)); in rkclk_init()
159 hclk_div << PERI_HCLK_DIV_SHIFT | in rkclk_init()
Dclk_rk3188.c375 u32 aclk_div, hclk_div, pclk_div, h2p_div; in rkclk_init() local
408 hclk_div = ilog2(CPU_ACLK_HZ / CPU_HCLK_HZ); in rkclk_init()
409 assert((1 << hclk_div) * CPU_HCLK_HZ == CPU_ACLK_HZ && hclk_div < 0x3); in rkclk_init()
421 hclk_div << CPU_HCLK_DIV_SHIFT); in rkclk_init()
430 hclk_div = ilog2(PERI_ACLK_HZ / PERI_HCLK_HZ); in rkclk_init()
431 assert((1 << hclk_div) * PERI_HCLK_HZ == in rkclk_init()
432 PERI_ACLK_HZ && (hclk_div < 0x4)); in rkclk_init()
444 hclk_div << PERI_HCLK_DIV_SHIFT | in rkclk_init()
Dclk_rk3128.c143 u32 hclk_div; in rkclk_init() local
187 hclk_div = BUS_ACLK_HZ / BUS_HCLK_HZ - 1; in rkclk_init()
188 assert((hclk_div + 1) * BUS_HCLK_HZ == BUS_ACLK_HZ && hclk_div <= 0x3); in rkclk_init()
198 hclk_div << BUS_HCLK_DIV_SHIFT); in rkclk_init()
207 hclk_div = ilog2(PERI_ACLK_HZ / PERI_HCLK_HZ); in rkclk_init()
208 assert((1 << hclk_div) * PERI_HCLK_HZ == in rkclk_init()
209 PERI_ACLK_HZ && (hclk_div < 0x4)); in rkclk_init()
220 hclk_div << PERI_HCLK_DIV_SHIFT | in rkclk_init()
Dclk_rk3399.c1026 u32 hclk_div; in rkclk_init() local
1047 hclk_div = PERIHP_ACLK_HZ / PERIHP_HCLK_HZ - 1; in rkclk_init()
1048 assert((hclk_div + 1) * PERIHP_HCLK_HZ == in rkclk_init()
1049 PERIHP_ACLK_HZ && (hclk_div < 0x4)); in rkclk_init()
1059 hclk_div << HCLK_PERIHP_DIV_CON_SHIFT | in rkclk_init()
1067 hclk_div = PERILP0_ACLK_HZ / PERILP0_HCLK_HZ - 1; in rkclk_init()
1068 assert((hclk_div + 1) * PERILP0_HCLK_HZ == in rkclk_init()
1069 PERILP0_ACLK_HZ && (hclk_div < 0x4)); in rkclk_init()
1079 hclk_div << HCLK_PERILP0_DIV_CON_SHIFT | in rkclk_init()
1084 hclk_div = GPLL_HZ / PERILP1_HCLK_HZ - 1; in rkclk_init()
[all …]
Dclk_rk3288.c379 u32 hclk_div; in rkclk_init() local
404 hclk_div = PD_BUS_ACLK_HZ / PD_BUS_HCLK_HZ - 1; in rkclk_init()
405 assert((hclk_div + 1) * PD_BUS_HCLK_HZ == in rkclk_init()
406 PD_BUS_ACLK_HZ && (hclk_div < 0x4) && (hclk_div != 0x2)); in rkclk_init()
416 hclk_div << PD_BUS_HCLK_DIV_SHIFT | in rkclk_init()
427 hclk_div = ilog2(PERI_ACLK_HZ / PERI_HCLK_HZ); in rkclk_init()
428 assert((1 << hclk_div) * PERI_HCLK_HZ == in rkclk_init()
429 PERI_ACLK_HZ && (hclk_div < 0x4)); in rkclk_init()
440 hclk_div << PERI_HCLK_DIV_SHIFT | in rkclk_init()
Dclk_rk3328.c282 u32 hclk_div; in rkclk_init() local
291 hclk_div = PERIHP_ACLK_HZ / PERIHP_HCLK_HZ - 1; in rkclk_init()
301 hclk_div << HCLK_PERIHP_DIV_CON_SHIFT); in rkclk_init()
/external/u-boot/arch/arm/cpu/arm920t/ep93xx/
Dspeed.c61 const uint8_t hclk_div = in get_HCLK() local
63 const ulong hclk_rate = get_PLLCLK(&syscon->clkset1) / hclk_div; in get_HCLK()