• Home
  • Raw
  • Download

Lines Matching refs:pmucru

1175 static ulong rk3399_i2c_get_pmuclk(struct rk3399_pmucru *pmucru, ulong clk_id)  in rk3399_i2c_get_pmuclk()  argument
1181 con = readl(&pmucru->pmucru_clksel[2]); in rk3399_i2c_get_pmuclk()
1185 con = readl(&pmucru->pmucru_clksel[3]); in rk3399_i2c_get_pmuclk()
1189 con = readl(&pmucru->pmucru_clksel[2]); in rk3399_i2c_get_pmuclk()
1200 static ulong rk3399_i2c_set_pmuclk(struct rk3399_pmucru *pmucru, ulong clk_id, in rk3399_i2c_set_pmuclk() argument
1210 rk_clrsetreg(&pmucru->pmucru_clksel[2], I2C_PMUCLK_REG_MASK(0), in rk3399_i2c_set_pmuclk()
1214 rk_clrsetreg(&pmucru->pmucru_clksel[3], I2C_PMUCLK_REG_MASK(4), in rk3399_i2c_set_pmuclk()
1218 rk_clrsetreg(&pmucru->pmucru_clksel[2], I2C_PMUCLK_REG_MASK(8), in rk3399_i2c_set_pmuclk()
1229 static ulong rk3399_pwm_get_clk(struct rk3399_pmucru *pmucru) in rk3399_pwm_get_clk() argument
1234 con = readl(&pmucru->pmucru_clksel[0]); in rk3399_pwm_get_clk()
1249 rate = rk3399_pwm_get_clk(priv->pmucru); in rk3399_pmuclk_get_rate()
1254 rate = rk3399_i2c_get_pmuclk(priv->pmucru, clk->id); in rk3399_pmuclk_get_rate()
1279 ret = rk3399_i2c_set_pmuclk(priv->pmucru, clk->id, rate); in rk3399_pmuclk_set_rate()
1294 static void pmuclk_init(struct rk3399_pmucru *pmucru) in pmuclk_init() argument
1299 rkclk_set_pll(&pmucru->ppll_con[0], &ppll_init_cfg); in pmuclk_init()
1303 rk_clrsetreg(&pmucru->pmucru_clksel[0], in pmuclk_init()
1318 priv->pmucru = map_sysmem(plat->dtd.reg[0], plat->dtd.reg[1]); in rk3399_pmuclk_probe()
1322 pmuclk_init(priv->pmucru); in rk3399_pmuclk_probe()
1332 priv->pmucru = dev_read_addr_ptr(dev); in rk3399_pmuclk_ofdata_to_platdata()