/openbmc/u-boot/drivers/clk/rockchip/ |
H A D | clk_rk3036.c | 42 static const struct pll_div gpll_init_cfg = PLL_DIVISORS(GPLL_HZ, 2, 2, 1); 119 aclk_div = GPLL_HZ / BUS_ACLK_HZ - 1; in rkclk_init() 120 assert((aclk_div + 1) * BUS_ACLK_HZ == GPLL_HZ && aclk_div <= 0x1f); 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() 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() 142 aclk_div = GPLL_HZ / PERI_ACLK_HZ - 1; in rkclk_init() 143 assert((aclk_div + 1) * PERI_ACLK_HZ == GPLL_HZ && aclk_div < 0x1f); in rkclk_init()
|
H A D | clk_rk3328.c | 37 static const struct pll_div gpll_init_cfg = PLL_DIVISORS(GPLL_HZ, 1, 4, 1); 290 aclk_div = GPLL_HZ / PERIHP_ACLK_HZ - 1; in rkclk_init() 355 return DIV_TO_RATE(GPLL_HZ, div); in rk3328_i2c_get_clk() 362 src_clk_div = GPLL_HZ / hz; in rk3328_i2c_set_clk() 399 return DIV_TO_RATE(GPLL_HZ, src_clk_div); in rk3328_i2c_set_clk() 423 pll_rate = GPLL_HZ; in rk3328_gmac2io_set_clk() 463 return DIV_TO_RATE(GPLL_HZ, div) / 2; in rk3328_mmc_get_clk() 486 src_clk_div = DIV_ROUND_UP(GPLL_HZ / 2, set_rate); in rk3328_mmc_set_clk() 512 return DIV_TO_RATE(GPLL_HZ, div); in rk3328_pwm_get_clk() 517 u32 div = GPLL_HZ / hz; in rk3328_pwm_set_clk() [all …]
|
H A D | clk_rk322x.c | 39 static const struct pll_div gpll_init_cfg = PLL_DIVISORS(GPLL_HZ, 2, 2, 1); 120 aclk_div = GPLL_HZ / BUS_ACLK_HZ - 1; in rkclk_init() 121 assert((aclk_div + 1) * BUS_ACLK_HZ == GPLL_HZ && aclk_div <= 0x1f); in rkclk_init() 124 assert((pclk_div + 1) * BUS_PCLK_HZ == GPLL_HZ && pclk_div <= 0x7); in rkclk_init() 127 assert((hclk_div + 1) * BUS_HCLK_HZ == GPLL_HZ && hclk_div <= 0x3); in rkclk_init() 143 aclk_div = GPLL_HZ / PERI_ACLK_HZ - 1; in rkclk_init() 144 assert((aclk_div + 1) * PERI_ACLK_HZ == GPLL_HZ && aclk_div < 0x1f); in rkclk_init() 256 pll_rate = GPLL_HZ; in rk322x_mac_set_clk()
|
H A D | clk_rv1108.c | 41 static const struct pll_div gpll_init_cfg = PLL_DIVISORS(GPLL_HZ, 2, 2, 1); 222 return DIV_TO_RATE(GPLL_HZ, div); in rv1108_aclk_vio1_get_clk() 229 src_clk_div = DIV_ROUND_UP(GPLL_HZ, hz) - 1; in rv1108_aclk_vio1_set_clk() 248 return DIV_TO_RATE(GPLL_HZ, div); in rv1108_aclk_vio0_get_clk() 255 src_clk_div = DIV_ROUND_UP(GPLL_HZ, hz) - 1; in rv1108_aclk_vio0_set_clk() 283 return DIV_TO_RATE(GPLL_HZ, div); in rv1108_dclk_vop_get_clk() 290 src_clk_div = DIV_ROUND_UP(GPLL_HZ, hz) - 1; in rv1108_dclk_vop_set_clk() 443 return DIV_TO_RATE(GPLL_HZ, div); in rv1108_i2c_get_clk() 451 src_clk_div = GPLL_HZ / hz; in rv1108_i2c_set_clk() 500 mmc_clk = DIV_TO_RATE(GPLL_HZ, div) / 2; in rv1108_mmc_get_clk()
|
H A D | clk_rk3128.c | 36 static const struct pll_div gpll_init_cfg = PLL_DIVISORS(GPLL_HZ, 2, 2, 1); 181 aclk_div = GPLL_HZ / BUS_ACLK_HZ - 1; in rkclk_init() 182 assert((aclk_div + 1) * BUS_ACLK_HZ == GPLL_HZ && aclk_div <= 0x1f); in rkclk_init() 204 aclk_div = GPLL_HZ / PERI_ACLK_HZ - 1; in rkclk_init() 205 assert((aclk_div + 1) * PERI_ACLK_HZ == GPLL_HZ && aclk_div < 0x1f); in rkclk_init() 421 src_clk_div = GPLL_HZ / hz; in rk3128_vop_set_clk() 463 parent = GPLL_HZ; in rk3128_vop_get_rate() 468 parent = GPLL_HZ; in rk3128_vop_get_rate()
|
H A D | clk_rk3399.c | 549 return DIV_TO_RATE(GPLL_HZ, div); in rk3399_i2c_get_clk() 557 src_clk_div = GPLL_HZ / hz; in rk3399_i2c_set_clk() 648 return DIV_TO_RATE(GPLL_HZ, div); in rk3399_spi_get_clk() 656 src_clk_div = DIV_ROUND_UP(GPLL_HZ, hz) - 1; in rk3399_spi_set_clk() 746 return DIV_TO_RATE(GPLL_HZ, div); in rk3399_mmc_get_clk() 779 src_clk_div = DIV_ROUND_UP(GPLL_HZ , aclk_emmc); in rk3399_mmc_set_clk() 788 src_clk_div = DIV_ROUND_UP(GPLL_HZ, set_rate); in rk3399_mmc_set_clk() 1117 aclk_div = GPLL_HZ / PERIHP_ACLK_HZ - 1; in rkclk_init() 1137 aclk_div = GPLL_HZ / PERILP0_ACLK_HZ - 1; in rkclk_init() 1157 hclk_div = GPLL_HZ / PERILP1_HCLK_HZ - 1; in rkclk_init() [all …]
|
H A D | clk_rk3368.c | 38 #define GPLL_HZ (576 * 1000 * 1000) macro 53 static const struct pll_div gpll_init_cfg = PLL_DIVISORS(GPLL_HZ, 1, 2); 211 { .mux = MMC_PLL_SEL_GPLL, .rate = GPLL_HZ }, in rk3368_mmc_find_best_rate_and_parent() 330 pll_rate = GPLL_HZ; in rk3368_gmac_set_clk() 397 return DIV_TO_RATE(GPLL_HZ, div); in rk3368_spi_get_clk() 405 src_clk_div = DIV_ROUND_UP(GPLL_HZ, hz); in rk3368_spi_set_clk()
|
H A D | clk_rk3188.c | 81 static const struct pll_div gpll_init_cfg = PLL_DIVISORS(GPLL_HZ, 2, 2); 399 aclk_div = DIV_ROUND_UP(GPLL_HZ, CPU_ACLK_HZ) - 1; in rkclk_init() 400 assert((aclk_div + 1) * CPU_ACLK_HZ == GPLL_HZ && aclk_div <= 0x1f); in rkclk_init() 427 aclk_div = GPLL_HZ / PERI_ACLK_HZ - 1; in rkclk_init() 428 assert((aclk_div + 1) * PERI_ACLK_HZ == GPLL_HZ && aclk_div < 0x1f); in rkclk_init()
|
H A D | clk_rk3288.c | 141 static const struct pll_div gpll_init_cfg = PLL_DIVISORS(GPLL_HZ, 2, 2); 316 pll_rate = GPLL_HZ; in rockchip_mac_set_clk() 447 aclk_div = GPLL_HZ / PD_BUS_ACLK_HZ - 1; in rkclk_init() 448 assert((aclk_div + 1) * PD_BUS_ACLK_HZ == GPLL_HZ && aclk_div < 0x1f); in rkclk_init() 469 aclk_div = GPLL_HZ / PERI_ACLK_HZ - 1; in rkclk_init() 470 assert((aclk_div + 1) * PERI_ACLK_HZ == GPLL_HZ && aclk_div < 0x1f); in rkclk_init()
|
/openbmc/u-boot/arch/arm/include/asm/arch-rockchip/ |
H A D | cru_rk3328.h | 51 #define GPLL_HZ (576 * MHz) macro
|
H A D | cru_rk3188.h | 12 #define GPLL_HZ (594 * 1000000) macro
|
H A D | cru_rk3399.h | 74 #define GPLL_HZ (594*MHz) macro
|
H A D | cru_rk3036.h | 13 #define GPLL_HZ (594 * 1000000) macro
|
H A D | cru_rk322x.h | 14 #define GPLL_HZ (594 * MHz) macro
|
H A D | cru_rk3128.h | 15 #define GPLL_HZ (594 * MHz) macro
|
H A D | cru_rk3288.h | 14 #define GPLL_HZ (594 * 1000000) macro
|
H A D | cru_rv1108.h | 14 #define GPLL_HZ (1188 * 1000000) macro
|