Lines Matching refs:pxa_unit
113 static void pxa168_pll_init(struct pxa168_clk_unit *pxa_unit) in pxa168_pll_init() argument
116 struct mmp_clk_unit *unit = &pxa_unit->unit; in pxa168_pll_init()
126 pxa_unit->mpmu_base + MPMU_UART_PLL, in pxa168_pll_init()
202 static void pxa168_apb_periph_clk_init(struct pxa168_clk_unit *pxa_unit) in pxa168_apb_periph_clk_init() argument
204 struct mmp_clk_unit *unit = &pxa_unit->unit; in pxa168_apb_periph_clk_init()
206 mmp_register_mux_clks(unit, apbc_mux_clks, pxa_unit->apbc_base, in pxa168_apb_periph_clk_init()
209 mmp_register_gate_clks(unit, apbc_gate_clks, pxa_unit->apbc_base, in pxa168_apb_periph_clk_init()
264 static void pxa168_axi_periph_clk_init(struct pxa168_clk_unit *pxa_unit) in pxa168_axi_periph_clk_init() argument
266 struct mmp_clk_unit *unit = &pxa_unit->unit; in pxa168_axi_periph_clk_init()
268 mmp_register_mux_clks(unit, apmu_mux_clks, pxa_unit->apmu_base, in pxa168_axi_periph_clk_init()
271 mmp_register_div_clks(unit, apmu_div_clks, pxa_unit->apmu_base, in pxa168_axi_periph_clk_init()
274 mmp_register_gate_clks(unit, apmu_gate_clks, pxa_unit->apmu_base, in pxa168_axi_periph_clk_init()
279 struct pxa168_clk_unit *pxa_unit) in pxa168_clk_reset_init() argument
291 cells[i].reg = pxa_unit->apbc_base + apbc_gate_clks[i].offset; in pxa168_clk_reset_init()
302 struct pxa168_clk_unit *pxa_unit; in pxa168_clk_init() local
304 pxa_unit = kzalloc(sizeof(*pxa_unit), GFP_KERNEL); in pxa168_clk_init()
305 if (!pxa_unit) in pxa168_clk_init()
308 pxa_unit->mpmu_base = of_iomap(np, 0); in pxa168_clk_init()
309 if (!pxa_unit->mpmu_base) { in pxa168_clk_init()
311 kfree(pxa_unit); in pxa168_clk_init()
315 pxa_unit->apmu_base = of_iomap(np, 1); in pxa168_clk_init()
316 if (!pxa_unit->apmu_base) { in pxa168_clk_init()
318 kfree(pxa_unit); in pxa168_clk_init()
322 pxa_unit->apbc_base = of_iomap(np, 2); in pxa168_clk_init()
323 if (!pxa_unit->apbc_base) { in pxa168_clk_init()
325 kfree(pxa_unit); in pxa168_clk_init()
329 mmp_clk_init(np, &pxa_unit->unit, NR_CLKS); in pxa168_clk_init()
331 pxa168_pll_init(pxa_unit); in pxa168_clk_init()
333 pxa168_apb_periph_clk_init(pxa_unit); in pxa168_clk_init()
335 pxa168_axi_periph_clk_init(pxa_unit); in pxa168_clk_init()
337 pxa168_clk_reset_init(np, pxa_unit); in pxa168_clk_init()