Lines Matching refs:hbclk
45 struct hb_clk *hbclk = to_hb_clk(hwclk); in clk_pll_prepare() local
48 reg = readl(hbclk->reg); in clk_pll_prepare()
50 writel(reg, hbclk->reg); in clk_pll_prepare()
52 while ((readl(hbclk->reg) & HB_PLL_LOCK) == 0) in clk_pll_prepare()
54 while ((readl(hbclk->reg) & HB_PLL_LOCK_500) == 0) in clk_pll_prepare()
62 struct hb_clk *hbclk = to_hb_clk(hwclk); in clk_pll_unprepare() local
65 reg = readl(hbclk->reg); in clk_pll_unprepare()
67 writel(reg, hbclk->reg); in clk_pll_unprepare()
72 struct hb_clk *hbclk = to_hb_clk(hwclk); in clk_pll_enable() local
75 reg = readl(hbclk->reg); in clk_pll_enable()
77 writel(reg, hbclk->reg); in clk_pll_enable()
84 struct hb_clk *hbclk = to_hb_clk(hwclk); in clk_pll_disable() local
87 reg = readl(hbclk->reg); in clk_pll_disable()
89 writel(reg, hbclk->reg); in clk_pll_disable()
95 struct hb_clk *hbclk = to_hb_clk(hwclk); in clk_pll_recalc_rate() local
98 reg = readl(hbclk->reg); in clk_pll_recalc_rate()
147 struct hb_clk *hbclk = to_hb_clk(hwclk); in clk_pll_set_rate() local
153 reg = readl(hbclk->reg); in clk_pll_set_rate()
157 writel(reg | HB_PLL_EXT_BYPASS, hbclk->reg); in clk_pll_set_rate()
159 writel(reg | HB_PLL_RESET, hbclk->reg); in clk_pll_set_rate()
162 writel(reg | HB_PLL_RESET, hbclk->reg); in clk_pll_set_rate()
163 writel(reg, hbclk->reg); in clk_pll_set_rate()
165 while ((readl(hbclk->reg) & HB_PLL_LOCK) == 0) in clk_pll_set_rate()
167 while ((readl(hbclk->reg) & HB_PLL_LOCK_500) == 0) in clk_pll_set_rate()
172 writel(reg | HB_PLL_EXT_BYPASS, hbclk->reg); in clk_pll_set_rate()
175 writel(reg | HB_PLL_EXT_BYPASS, hbclk->reg); in clk_pll_set_rate()
177 writel(reg, hbclk->reg); in clk_pll_set_rate()
195 struct hb_clk *hbclk = to_hb_clk(hwclk); in clk_cpu_periphclk_recalc_rate() local
196 u32 div = (readl(hbclk->reg) & HB_A9_PCLK_DIV) ? 8 : 4; in clk_cpu_periphclk_recalc_rate()
207 struct hb_clk *hbclk = to_hb_clk(hwclk); in clk_cpu_a9bclk_recalc_rate() local
208 u32 div = (readl(hbclk->reg) & HB_A9_BCLK_DIV_MASK) >> HB_A9_BCLK_DIV_SHIFT; in clk_cpu_a9bclk_recalc_rate()
220 struct hb_clk *hbclk = to_hb_clk(hwclk); in clk_periclk_recalc_rate() local
223 div = readl(hbclk->reg) & 0x1f; in clk_periclk_recalc_rate()
245 struct hb_clk *hbclk = to_hb_clk(hwclk); in clk_periclk_set_rate() local
252 writel(div >> 1, hbclk->reg); in clk_periclk_set_rate()