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 == BUS_ACLK_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.c1077 u32 hclk_div; in rkclk_init() local
1099 hclk_div = PERIHP_ACLK_HZ / PERIHP_HCLK_HZ - 1; in rkclk_init()
1100 assert((hclk_div + 1) * PERIHP_HCLK_HZ == in rkclk_init()
1101 PERIHP_ACLK_HZ && (hclk_div < 0x4)); in rkclk_init()
1111 hclk_div << HCLK_PERIHP_DIV_CON_SHIFT | in rkclk_init()
1119 hclk_div = PERILP0_ACLK_HZ / PERILP0_HCLK_HZ - 1; in rkclk_init()
1120 assert((hclk_div + 1) * PERILP0_HCLK_HZ == in rkclk_init()
1121 PERILP0_ACLK_HZ && (hclk_div < 0x4)); in rkclk_init()
1131 hclk_div << HCLK_PERILP0_DIV_CON_SHIFT | in rkclk_init()
1136 hclk_div = GPLL_HZ / PERILP1_HCLK_HZ - 1; in rkclk_init()
[all …]
Dclk_rk3288.c424 u32 hclk_div; in rkclk_init() local
449 hclk_div = PD_BUS_ACLK_HZ / PD_BUS_HCLK_HZ - 1; in rkclk_init()
450 assert((hclk_div + 1) * PD_BUS_HCLK_HZ == in rkclk_init()
451 PD_BUS_ACLK_HZ && (hclk_div < 0x4) && (hclk_div != 0x2)); in rkclk_init()
461 hclk_div << PD_BUS_HCLK_DIV_SHIFT | in rkclk_init()
472 hclk_div = ilog2(PERI_ACLK_HZ / PERI_HCLK_HZ); in rkclk_init()
473 assert((1 << hclk_div) * PERI_HCLK_HZ == in rkclk_init()
474 PERI_ACLK_HZ && (hclk_div < 0x4)); in rkclk_init()
485 hclk_div << PERI_HCLK_DIV_SHIFT | in rkclk_init()
Dclk_rk3328.c282 u32 hclk_div; in rkclk_init() local
293 hclk_div = PERIHP_ACLK_HZ / PERIHP_HCLK_HZ - 1; in rkclk_init()
303 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()