Lines Matching refs:hbclk
57 struct hb_clk *hbclk = to_hb_clk(hwclk); in clk_pll_prepare() local
60 reg = readl(hbclk->reg); in clk_pll_prepare()
62 writel(reg, hbclk->reg); in clk_pll_prepare()
64 while ((readl(hbclk->reg) & HB_PLL_LOCK) == 0) in clk_pll_prepare()
66 while ((readl(hbclk->reg) & HB_PLL_LOCK_500) == 0) in clk_pll_prepare()
74 struct hb_clk *hbclk = to_hb_clk(hwclk); in clk_pll_unprepare() local
77 reg = readl(hbclk->reg); in clk_pll_unprepare()
79 writel(reg, hbclk->reg); in clk_pll_unprepare()
84 struct hb_clk *hbclk = to_hb_clk(hwclk); in clk_pll_enable() local
87 reg = readl(hbclk->reg); in clk_pll_enable()
89 writel(reg, hbclk->reg); in clk_pll_enable()
96 struct hb_clk *hbclk = to_hb_clk(hwclk); in clk_pll_disable() local
99 reg = readl(hbclk->reg); in clk_pll_disable()
101 writel(reg, hbclk->reg); in clk_pll_disable()
107 struct hb_clk *hbclk = to_hb_clk(hwclk); in clk_pll_recalc_rate() local
110 reg = readl(hbclk->reg); in clk_pll_recalc_rate()
159 struct hb_clk *hbclk = to_hb_clk(hwclk); in clk_pll_set_rate() local
165 reg = readl(hbclk->reg); in clk_pll_set_rate()
169 writel(reg | HB_PLL_EXT_BYPASS, hbclk->reg); in clk_pll_set_rate()
171 writel(reg | HB_PLL_RESET, hbclk->reg); in clk_pll_set_rate()
174 writel(reg | HB_PLL_RESET, hbclk->reg); in clk_pll_set_rate()
175 writel(reg, hbclk->reg); in clk_pll_set_rate()
177 while ((readl(hbclk->reg) & HB_PLL_LOCK) == 0) in clk_pll_set_rate()
179 while ((readl(hbclk->reg) & HB_PLL_LOCK_500) == 0) in clk_pll_set_rate()
184 writel(reg | HB_PLL_EXT_BYPASS, hbclk->reg); in clk_pll_set_rate()
187 writel(reg | HB_PLL_EXT_BYPASS, hbclk->reg); in clk_pll_set_rate()
189 writel(reg, hbclk->reg); in clk_pll_set_rate()
207 struct hb_clk *hbclk = to_hb_clk(hwclk); in clk_cpu_periphclk_recalc_rate() local
208 u32 div = (readl(hbclk->reg) & HB_A9_PCLK_DIV) ? 8 : 4; in clk_cpu_periphclk_recalc_rate()
219 struct hb_clk *hbclk = to_hb_clk(hwclk); in clk_cpu_a9bclk_recalc_rate() local
220 u32 div = (readl(hbclk->reg) & HB_A9_BCLK_DIV_MASK) >> HB_A9_BCLK_DIV_SHIFT; in clk_cpu_a9bclk_recalc_rate()
232 struct hb_clk *hbclk = to_hb_clk(hwclk); in clk_periclk_recalc_rate() local
235 div = readl(hbclk->reg) & 0x1f; in clk_periclk_recalc_rate()
257 struct hb_clk *hbclk = to_hb_clk(hwclk); in clk_periclk_set_rate() local
264 writel(div >> 1, hbclk->reg); in clk_periclk_set_rate()