Lines Matching refs:pxa_unit

66 static void pxa1928_pll_init(struct pxa1928_clk_unit *pxa_unit)  in pxa1928_pll_init()  argument
68 struct mmp_clk_unit *unit = &pxa_unit->unit; in pxa1928_pll_init()
78 pxa_unit->mpmu_base + MPMU_UART_PLL, in pxa1928_pll_init()
127 static void pxa1928_apb_periph_clk_init(struct pxa1928_clk_unit *pxa_unit) in pxa1928_apb_periph_clk_init() argument
129 struct mmp_clk_unit *unit = &pxa_unit->unit; in pxa1928_apb_periph_clk_init()
131 mmp_register_mux_clks(unit, apbc_mux_clks, pxa_unit->apbc_base, in pxa1928_apb_periph_clk_init()
134 mmp_register_gate_clks(unit, apbc_gate_clks, pxa_unit->apbc_base, in pxa1928_apb_periph_clk_init()
166 static void pxa1928_axi_periph_clk_init(struct pxa1928_clk_unit *pxa_unit) in pxa1928_axi_periph_clk_init() argument
168 struct mmp_clk_unit *unit = &pxa_unit->unit; in pxa1928_axi_periph_clk_init()
170 mmp_register_mux_clks(unit, apmu_mux_clks, pxa_unit->apmu_base, in pxa1928_axi_periph_clk_init()
173 mmp_register_div_clks(unit, apmu_div_clks, pxa_unit->apmu_base, in pxa1928_axi_periph_clk_init()
176 mmp_register_gate_clks(unit, apmu_gate_clks, pxa_unit->apmu_base, in pxa1928_axi_periph_clk_init()
181 struct pxa1928_clk_unit *pxa_unit) in pxa1928_clk_reset_init() argument
195 pxa_unit->apbc_base + apbc_gate_clks[i].offset; in pxa1928_clk_reset_init()
206 struct pxa1928_clk_unit *pxa_unit; in pxa1928_mpmu_clk_init() local
208 pxa_unit = kzalloc(sizeof(*pxa_unit), GFP_KERNEL); in pxa1928_mpmu_clk_init()
209 if (!pxa_unit) in pxa1928_mpmu_clk_init()
212 pxa_unit->mpmu_base = of_iomap(np, 0); in pxa1928_mpmu_clk_init()
213 if (!pxa_unit->mpmu_base) { in pxa1928_mpmu_clk_init()
215 kfree(pxa_unit); in pxa1928_mpmu_clk_init()
219 pxa1928_pll_init(pxa_unit); in pxa1928_mpmu_clk_init()
225 struct pxa1928_clk_unit *pxa_unit; in pxa1928_apmu_clk_init() local
227 pxa_unit = kzalloc(sizeof(*pxa_unit), GFP_KERNEL); in pxa1928_apmu_clk_init()
228 if (!pxa_unit) in pxa1928_apmu_clk_init()
231 pxa_unit->apmu_base = of_iomap(np, 0); in pxa1928_apmu_clk_init()
232 if (!pxa_unit->apmu_base) { in pxa1928_apmu_clk_init()
234 kfree(pxa_unit); in pxa1928_apmu_clk_init()
238 mmp_clk_init(np, &pxa_unit->unit, PXA1928_APMU_NR_CLKS); in pxa1928_apmu_clk_init()
240 pxa1928_axi_periph_clk_init(pxa_unit); in pxa1928_apmu_clk_init()
246 struct pxa1928_clk_unit *pxa_unit; in pxa1928_apbc_clk_init() local
248 pxa_unit = kzalloc(sizeof(*pxa_unit), GFP_KERNEL); in pxa1928_apbc_clk_init()
249 if (!pxa_unit) in pxa1928_apbc_clk_init()
252 pxa_unit->apbc_base = of_iomap(np, 0); in pxa1928_apbc_clk_init()
253 if (!pxa_unit->apbc_base) { in pxa1928_apbc_clk_init()
255 kfree(pxa_unit); in pxa1928_apbc_clk_init()
259 mmp_clk_init(np, &pxa_unit->unit, PXA1928_APBC_NR_CLKS); in pxa1928_apbc_clk_init()
261 pxa1928_apb_periph_clk_init(pxa_unit); in pxa1928_apbc_clk_init()
262 pxa1928_clk_reset_init(np, pxa_unit); in pxa1928_apbc_clk_init()