Home
last modified time | relevance | path

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

/external/u-boot/drivers/clk/rockchip/
Dclk_rk3036.c82 u32 pclk_div; in rkclk_init() local
102 pclk_div = APLL_HZ / CORE_PERI_HZ - 1; in rkclk_init()
103 assert((pclk_div + 1) * CORE_PERI_HZ == APLL_HZ && pclk_div < 0xf); in rkclk_init()
113 pclk_div << CORE_PERI_DIV_SHIFT); in rkclk_init()
122 pclk_div = GPLL_HZ / BUS_PCLK_HZ - 1; in rkclk_init()
123 assert((pclk_div + 1) * BUS_PCLK_HZ == GPLL_HZ && pclk_div <= 0x7); in rkclk_init()
135 pclk_div << BUS_PCLK_DIV_SHIFT | in rkclk_init()
149 pclk_div = ilog2(PERI_ACLK_HZ / PERI_PCLK_HZ); in rkclk_init()
150 assert((1 << pclk_div) * PERI_PCLK_HZ == in rkclk_init()
151 PERI_ACLK_HZ && pclk_div < 0x8); in rkclk_init()
[all …]
Dclk_rk322x.c83 u32 pclk_div; in rkclk_init() local
103 pclk_div = APLL_HZ / CORE_PERI_HZ - 1; in rkclk_init()
104 assert((pclk_div + 1) * CORE_PERI_HZ == APLL_HZ && pclk_div < 0xf); in rkclk_init()
114 pclk_div << CORE_PERI_DIV_SHIFT); in rkclk_init()
123 pclk_div = BUS_ACLK_HZ / BUS_PCLK_HZ - 1; in rkclk_init()
124 assert((pclk_div + 1) * BUS_PCLK_HZ == GPLL_HZ && pclk_div <= 0x7); in rkclk_init()
136 pclk_div << BUS_PCLK_DIV_SHIFT | in rkclk_init()
150 pclk_div = ilog2(PERI_ACLK_HZ / PERI_PCLK_HZ); in rkclk_init()
151 assert((1 << pclk_div) * PERI_PCLK_HZ == in rkclk_init()
152 PERI_ACLK_HZ && pclk_div < 0x8); in rkclk_init()
[all …]
Dclk_rk3128.c144 u32 pclk_div; in rkclk_init() local
164 pclk_div = APLL_HZ / CORE_PERI_HZ - 1; in rkclk_init()
165 assert((pclk_div + 1) * CORE_PERI_HZ == APLL_HZ && pclk_div < 0xf); in rkclk_init()
175 pclk_div << CORE_PERI_DIV_SHIFT); in rkclk_init()
184 pclk_div = BUS_ACLK_HZ / BUS_PCLK_HZ - 1; in rkclk_init()
185 assert((pclk_div + 1) * BUS_PCLK_HZ == BUS_ACLK_HZ && pclk_div <= 0x7); in rkclk_init()
197 pclk_div << BUS_PCLK_DIV_SHIFT | in rkclk_init()
211 pclk_div = ilog2(PERI_ACLK_HZ / PERI_PCLK_HZ); in rkclk_init()
212 assert((1 << pclk_div) * PERI_PCLK_HZ == in rkclk_init()
213 PERI_ACLK_HZ && pclk_div < 0x8); in rkclk_init()
[all …]
Dclk_rk3188.c375 u32 aclk_div, hclk_div, pclk_div, h2p_div; in rkclk_init() local
410 pclk_div = ilog2(CPU_ACLK_HZ / CPU_PCLK_HZ); in rkclk_init()
411 assert((1 << pclk_div) * CPU_PCLK_HZ == CPU_ACLK_HZ && pclk_div < 0x4); in rkclk_init()
413 assert((1 << h2p_div) * CPU_H2P_HZ == CPU_HCLK_HZ && pclk_div < 0x3); in rkclk_init()
420 pclk_div << CPU_PCLK_DIV_SHIFT | in rkclk_init()
434 pclk_div = ilog2(PERI_ACLK_HZ / PERI_PCLK_HZ); in rkclk_init()
435 assert((1 << pclk_div) * PERI_PCLK_HZ == in rkclk_init()
436 PERI_ACLK_HZ && (pclk_div < 0x4)); in rkclk_init()
443 pclk_div << PERI_PCLK_DIV_SHIFT | in rkclk_init()
Dclk_rk3399.c1027 u32 pclk_div; in rkclk_init() local
1051 pclk_div = PERIHP_ACLK_HZ / PERIHP_PCLK_HZ - 1; in rkclk_init()
1052 assert((pclk_div + 1) * PERIHP_PCLK_HZ == in rkclk_init()
1053 PERIHP_ACLK_HZ && (pclk_div < 0x7)); in rkclk_init()
1058 pclk_div << PCLK_PERIHP_DIV_CON_SHIFT | in rkclk_init()
1071 pclk_div = PERILP0_ACLK_HZ / PERILP0_PCLK_HZ - 1; in rkclk_init()
1072 assert((pclk_div + 1) * PERILP0_PCLK_HZ == in rkclk_init()
1073 PERILP0_ACLK_HZ && (pclk_div < 0x7)); in rkclk_init()
1078 pclk_div << PCLK_PERILP0_DIV_CON_SHIFT | in rkclk_init()
1088 pclk_div = PERILP1_HCLK_HZ / PERILP1_HCLK_HZ - 1; in rkclk_init()
[all …]
Dclk_rk3288.c380 u32 pclk_div; in rkclk_init() local
408 pclk_div = PD_BUS_ACLK_HZ / PD_BUS_PCLK_HZ - 1; in rkclk_init()
409 assert((pclk_div + 1) * PD_BUS_PCLK_HZ == in rkclk_init()
410 PD_BUS_ACLK_HZ && pclk_div < 0x7); in rkclk_init()
415 pclk_div << PD_BUS_PCLK_DIV_SHIFT | in rkclk_init()
431 pclk_div = ilog2(PERI_ACLK_HZ / PERI_PCLK_HZ); in rkclk_init()
432 assert((1 << pclk_div) * PERI_PCLK_HZ == in rkclk_init()
433 PERI_ACLK_HZ && (pclk_div < 0x4)); in rkclk_init()
439 pclk_div << PERI_PCLK_DIV_SHIFT | in rkclk_init()
Dclk_rk3328.c283 u32 pclk_div; in rkclk_init() local
292 pclk_div = PERIHP_ACLK_HZ / PERIHP_PCLK_HZ - 1; in rkclk_init()
300 pclk_div << PCLK_PERIHP_DIV_CON_SHIFT | in rkclk_init()
/external/u-boot/arch/arm/cpu/arm920t/ep93xx/
Dspeed.c75 const uint8_t pclk_div = in get_PCLK() local
77 const ulong pclk_rate = get_HCLK() / pclk_div; in get_PCLK()