Lines Matching refs:pxa_unit
91 static void pxa910_pll_init(struct pxa910_clk_unit *pxa_unit) in pxa910_pll_init() argument
94 struct mmp_clk_unit *unit = &pxa_unit->unit; in pxa910_pll_init()
104 pxa_unit->mpmu_base + MPMU_UART_PLL, in pxa910_pll_init()
162 static void pxa910_apb_periph_clk_init(struct pxa910_clk_unit *pxa_unit) in pxa910_apb_periph_clk_init() argument
164 struct mmp_clk_unit *unit = &pxa_unit->unit; in pxa910_apb_periph_clk_init()
166 mmp_register_mux_clks(unit, apbc_mux_clks, pxa_unit->apbc_base, in pxa910_apb_periph_clk_init()
169 mmp_register_mux_clks(unit, apbcp_mux_clks, pxa_unit->apbcp_base, in pxa910_apb_periph_clk_init()
172 mmp_register_gate_clks(unit, apbc_gate_clks, pxa_unit->apbc_base, in pxa910_apb_periph_clk_init()
175 mmp_register_gate_clks(unit, apbcp_gate_clks, pxa_unit->apbcp_base, in pxa910_apb_periph_clk_init()
217 static void pxa910_axi_periph_clk_init(struct pxa910_clk_unit *pxa_unit) in pxa910_axi_periph_clk_init() argument
219 struct mmp_clk_unit *unit = &pxa_unit->unit; in pxa910_axi_periph_clk_init()
221 mmp_register_mux_clks(unit, apmu_mux_clks, pxa_unit->apmu_base, in pxa910_axi_periph_clk_init()
224 mmp_register_div_clks(unit, apmu_div_clks, pxa_unit->apmu_base, in pxa910_axi_periph_clk_init()
227 mmp_register_gate_clks(unit, apmu_gate_clks, pxa_unit->apmu_base, in pxa910_axi_periph_clk_init()
232 struct pxa910_clk_unit *pxa_unit) in pxa910_clk_reset_init() argument
248 pxa_unit->apbc_base + apbc_gate_clks[i].offset; in pxa910_clk_reset_init()
258 pxa_unit->apbc_base + apbc_gate_clks[i].offset; in pxa910_clk_reset_init()
269 struct pxa910_clk_unit *pxa_unit; in pxa910_clk_init() local
271 pxa_unit = kzalloc(sizeof(*pxa_unit), GFP_KERNEL); in pxa910_clk_init()
272 if (!pxa_unit) in pxa910_clk_init()
275 pxa_unit->mpmu_base = of_iomap(np, 0); in pxa910_clk_init()
276 if (!pxa_unit->mpmu_base) { in pxa910_clk_init()
281 pxa_unit->apmu_base = of_iomap(np, 1); in pxa910_clk_init()
282 if (!pxa_unit->apmu_base) { in pxa910_clk_init()
287 pxa_unit->apbc_base = of_iomap(np, 2); in pxa910_clk_init()
288 if (!pxa_unit->apbc_base) { in pxa910_clk_init()
293 pxa_unit->apbcp_base = of_iomap(np, 3); in pxa910_clk_init()
294 if (!pxa_unit->apbcp_base) { in pxa910_clk_init()
299 mmp_clk_init(np, &pxa_unit->unit, PXA910_NR_CLKS); in pxa910_clk_init()
301 pxa910_pll_init(pxa_unit); in pxa910_clk_init()
303 pxa910_apb_periph_clk_init(pxa_unit); in pxa910_clk_init()
305 pxa910_axi_periph_clk_init(pxa_unit); in pxa910_clk_init()
307 pxa910_clk_reset_init(np, pxa_unit); in pxa910_clk_init()
312 iounmap(pxa_unit->apbc_base); in pxa910_clk_init()
314 iounmap(pxa_unit->apmu_base); in pxa910_clk_init()
316 iounmap(pxa_unit->mpmu_base); in pxa910_clk_init()
318 kfree(pxa_unit); in pxa910_clk_init()