Home
last modified time | relevance | path

Searched refs:stub_clk (Results 1 – 2 of 2) sorted by relevance

/Linux-v6.6/drivers/clk/hisilicon/
Dclk-hi6220-stub.c67 static unsigned int hi6220_acpu_get_freq(struct hi6220_stub_clk *stub_clk) in hi6220_acpu_get_freq() argument
71 regmap_read(stub_clk->dfs_map, ACPU_DFS_CUR_FREQ, &freq); in hi6220_acpu_get_freq()
75 static int hi6220_acpu_set_freq(struct hi6220_stub_clk *stub_clk, in hi6220_acpu_set_freq() argument
81 regmap_write(stub_clk->dfs_map, ACPU_DFS_FREQ_REQ, freq); in hi6220_acpu_set_freq()
89 mbox_send_message(stub_clk->mbox, &data); in hi6220_acpu_set_freq()
93 static int hi6220_acpu_round_freq(struct hi6220_stub_clk *stub_clk, in hi6220_acpu_round_freq() argument
100 regmap_read(stub_clk->dfs_map, ACPU_DFS_FLAG, &limit_flag); in hi6220_acpu_round_freq()
102 regmap_read(stub_clk->dfs_map, ACPU_DFS_FREQ_LMT, &limit_freq); in hi6220_acpu_round_freq()
105 regmap_read(stub_clk->dfs_map, ACPU_DFS_FREQ_MAX, &max_freq); in hi6220_acpu_round_freq()
120 struct hi6220_stub_clk *stub_clk = to_stub_clk(hw); in hi6220_stub_clk_recalc_rate() local
[all …]
Dclk-hi3660-stub.c60 struct hi3660_stub_clk *stub_clk = to_stub_clk(hw); in hi3660_stub_clk_recalc_rate() local
66 stub_clk->rate = readl(freq_reg + (stub_clk->id << 2)) * MHZ; in hi3660_stub_clk_recalc_rate()
67 return stub_clk->rate; in hi3660_stub_clk_recalc_rate()
83 struct hi3660_stub_clk *stub_clk = to_stub_clk(hw); in hi3660_stub_clk_set_rate() local
85 stub_clk->msg[0] = stub_clk->cmd; in hi3660_stub_clk_set_rate()
86 stub_clk->msg[1] = rate / MHZ; in hi3660_stub_clk_set_rate()
89 stub_clk->msg[0], stub_clk->msg[1]); in hi3660_stub_clk_set_rate()
91 mbox_send_message(stub_clk_chan.mbox, stub_clk->msg); in hi3660_stub_clk_set_rate()
94 stub_clk->rate = rate; in hi3660_stub_clk_set_rate()