Searched refs:apbc (Results 1 - 11 of 11) sorted by relevance

/linux-4.4.14/drivers/clk/mmp/
H A Dclk-apbc.c37 struct clk_apbc *apbc = to_clk_apbc(hw); clk_apbc_prepare() local
45 if (apbc->lock) clk_apbc_prepare()
46 spin_lock_irqsave(apbc->lock, flags); clk_apbc_prepare()
48 data = readl_relaxed(apbc->base); clk_apbc_prepare()
49 if (apbc->flags & APBC_POWER_CTRL) clk_apbc_prepare()
52 writel_relaxed(data, apbc->base); clk_apbc_prepare()
54 if (apbc->lock) clk_apbc_prepare()
55 spin_unlock_irqrestore(apbc->lock, flags); clk_apbc_prepare()
57 udelay(apbc->delay); clk_apbc_prepare()
59 if (apbc->lock) clk_apbc_prepare()
60 spin_lock_irqsave(apbc->lock, flags); clk_apbc_prepare()
62 data = readl_relaxed(apbc->base); clk_apbc_prepare()
64 writel_relaxed(data, apbc->base); clk_apbc_prepare()
66 if (apbc->lock) clk_apbc_prepare()
67 spin_unlock_irqrestore(apbc->lock, flags); clk_apbc_prepare()
69 udelay(apbc->delay); clk_apbc_prepare()
71 if (!(apbc->flags & APBC_NO_BUS_CTRL)) { clk_apbc_prepare()
72 if (apbc->lock) clk_apbc_prepare()
73 spin_lock_irqsave(apbc->lock, flags); clk_apbc_prepare()
75 data = readl_relaxed(apbc->base); clk_apbc_prepare()
77 writel_relaxed(data, apbc->base); clk_apbc_prepare()
79 if (apbc->lock) clk_apbc_prepare()
80 spin_unlock_irqrestore(apbc->lock, flags); clk_apbc_prepare()
88 struct clk_apbc *apbc = to_clk_apbc(hw); clk_apbc_unprepare() local
92 if (apbc->lock) clk_apbc_unprepare()
93 spin_lock_irqsave(apbc->lock, flags); clk_apbc_unprepare()
95 data = readl_relaxed(apbc->base); clk_apbc_unprepare()
96 if (apbc->flags & APBC_POWER_CTRL) clk_apbc_unprepare()
99 writel_relaxed(data, apbc->base); clk_apbc_unprepare()
101 if (apbc->lock) clk_apbc_unprepare()
102 spin_unlock_irqrestore(apbc->lock, flags); clk_apbc_unprepare()
106 if (apbc->lock) clk_apbc_unprepare()
107 spin_lock_irqsave(apbc->lock, flags); clk_apbc_unprepare()
109 data = readl_relaxed(apbc->base); clk_apbc_unprepare()
111 writel_relaxed(data, apbc->base); clk_apbc_unprepare()
113 if (apbc->lock) clk_apbc_unprepare()
114 spin_unlock_irqrestore(apbc->lock, flags); clk_apbc_unprepare()
126 struct clk_apbc *apbc; mmp_clk_register_apbc() local
130 apbc = kzalloc(sizeof(*apbc), GFP_KERNEL); mmp_clk_register_apbc()
131 if (!apbc) mmp_clk_register_apbc()
140 apbc->base = base; mmp_clk_register_apbc()
141 apbc->delay = delay; mmp_clk_register_apbc()
142 apbc->flags = apbc_flags; mmp_clk_register_apbc()
143 apbc->lock = lock; mmp_clk_register_apbc()
144 apbc->hw.init = &init; mmp_clk_register_apbc()
146 clk = clk_register(NULL, &apbc->hw); mmp_clk_register_apbc()
148 kfree(apbc); mmp_clk_register_apbc()
H A Dclk-of-pxa1928.c256 pr_err("failed to map apbc registers\n"); pxa1928_apbc_clk_init()
265 CLK_OF_DECLARE(pxa1928_apbc_clk, "marvell,pxa1928-apbc", pxa1928_apbc_clk_init);
H A Dclk-of-pxa168.c272 pr_err("failed to map apbc registers\n"); pxa168_clk_init()
H A Dclk-of-pxa910.c292 pr_err("failed to map apbc registers\n"); pxa910_clk_init()
H A Dclk-of-mmp2.c323 pr_err("failed to map apbc registers\n"); mmp2_clk_init()
/linux-4.4.14/arch/arm/mach-mmp/include/mach/
H A Dregs-apbc.h2 * linux/arch/arm/mach-mmp/include/mach/regs-apbc.h
/linux-4.4.14/arch/arm/mach-mmp/
H A Dclock.c16 #include <mach/regs-apbc.h>
H A Dmmp2.c24 #include <mach/regs-apbc.h>
H A Dpxa168.c23 #include <mach/regs-apbc.h>
H A Dpxa910.c22 #include <mach/regs-apbc.h>
H A Dtime.c35 #include <mach/regs-apbc.h>

Completed in 341 milliseconds