Lines Matching full:clk
9 #include <linux/clk.h>
10 #include <linux/clk/mmp.h>
18 #include "clk.h"
69 struct clk *clk; in pxa168_clk_init() local
70 struct clk *uart_pll; in pxa168_clk_init()
93 clk = clk_register_fixed_rate(NULL, "clk32", NULL, 0, 3200); in pxa168_clk_init()
94 clk_register_clkdev(clk, "clk32", NULL); in pxa168_clk_init()
96 clk = clk_register_fixed_rate(NULL, "vctcxo", NULL, 0, 26000000); in pxa168_clk_init()
97 clk_register_clkdev(clk, "vctcxo", NULL); in pxa168_clk_init()
99 clk = clk_register_fixed_rate(NULL, "pll1", NULL, 0, 624000000); in pxa168_clk_init()
100 clk_register_clkdev(clk, "pll1", NULL); in pxa168_clk_init()
102 clk = clk_register_fixed_factor(NULL, "pll1_2", "pll1", in pxa168_clk_init()
104 clk_register_clkdev(clk, "pll1_2", NULL); in pxa168_clk_init()
106 clk = clk_register_fixed_factor(NULL, "pll1_4", "pll1_2", in pxa168_clk_init()
108 clk_register_clkdev(clk, "pll1_4", NULL); in pxa168_clk_init()
110 clk = clk_register_fixed_factor(NULL, "pll1_8", "pll1_4", in pxa168_clk_init()
112 clk_register_clkdev(clk, "pll1_8", NULL); in pxa168_clk_init()
114 clk = clk_register_fixed_factor(NULL, "pll1_16", "pll1_8", in pxa168_clk_init()
116 clk_register_clkdev(clk, "pll1_16", NULL); in pxa168_clk_init()
118 clk = clk_register_fixed_factor(NULL, "pll1_6", "pll1_2", in pxa168_clk_init()
120 clk_register_clkdev(clk, "pll1_6", NULL); in pxa168_clk_init()
122 clk = clk_register_fixed_factor(NULL, "pll1_12", "pll1_6", in pxa168_clk_init()
124 clk_register_clkdev(clk, "pll1_12", NULL); in pxa168_clk_init()
126 clk = clk_register_fixed_factor(NULL, "pll1_24", "pll1_12", in pxa168_clk_init()
128 clk_register_clkdev(clk, "pll1_24", NULL); in pxa168_clk_init()
130 clk = clk_register_fixed_factor(NULL, "pll1_48", "pll1_24", in pxa168_clk_init()
132 clk_register_clkdev(clk, "pll1_48", NULL); in pxa168_clk_init()
134 clk = clk_register_fixed_factor(NULL, "pll1_96", "pll1_48", in pxa168_clk_init()
136 clk_register_clkdev(clk, "pll1_96", NULL); in pxa168_clk_init()
138 clk = clk_register_fixed_factor(NULL, "pll1_13", "pll1", in pxa168_clk_init()
140 clk_register_clkdev(clk, "pll1_13", NULL); in pxa168_clk_init()
142 clk = clk_register_fixed_factor(NULL, "pll1_13_1_5", "pll1", in pxa168_clk_init()
144 clk_register_clkdev(clk, "pll1_13_1_5", NULL); in pxa168_clk_init()
146 clk = clk_register_fixed_factor(NULL, "pll1_2_1_5", "pll1", in pxa168_clk_init()
148 clk_register_clkdev(clk, "pll1_2_1_5", NULL); in pxa168_clk_init()
150 clk = clk_register_fixed_factor(NULL, "pll1_3_16", "pll1", in pxa168_clk_init()
152 clk_register_clkdev(clk, "pll1_3_16", NULL); in pxa168_clk_init()
161 clk = mmp_clk_register_apbc("twsi0", "pll1_13_1_5", in pxa168_clk_init()
163 clk_register_clkdev(clk, NULL, "pxa2xx-i2c.0"); in pxa168_clk_init()
165 clk = mmp_clk_register_apbc("twsi1", "pll1_13_1_5", in pxa168_clk_init()
167 clk_register_clkdev(clk, NULL, "pxa2xx-i2c.1"); in pxa168_clk_init()
169 clk = mmp_clk_register_apbc("gpio", "vctcxo", in pxa168_clk_init()
171 clk_register_clkdev(clk, NULL, "mmp-gpio"); in pxa168_clk_init()
173 clk = mmp_clk_register_apbc("kpc", "clk32", in pxa168_clk_init()
175 clk_register_clkdev(clk, NULL, "pxa27x-keypad"); in pxa168_clk_init()
177 clk = mmp_clk_register_apbc("rtc", "clk32", in pxa168_clk_init()
179 clk_register_clkdev(clk, NULL, "sa1100-rtc"); in pxa168_clk_init()
181 clk = mmp_clk_register_apbc("pwm0", "pll1_48", in pxa168_clk_init()
183 clk_register_clkdev(clk, NULL, "pxa168-pwm.0"); in pxa168_clk_init()
185 clk = mmp_clk_register_apbc("pwm1", "pll1_48", in pxa168_clk_init()
187 clk_register_clkdev(clk, NULL, "pxa168-pwm.1"); in pxa168_clk_init()
189 clk = mmp_clk_register_apbc("pwm2", "pll1_48", in pxa168_clk_init()
191 clk_register_clkdev(clk, NULL, "pxa168-pwm.2"); in pxa168_clk_init()
193 clk = mmp_clk_register_apbc("pwm3", "pll1_48", in pxa168_clk_init()
195 clk_register_clkdev(clk, NULL, "pxa168-pwm.3"); in pxa168_clk_init()
197 clk = clk_register_mux(NULL, "uart0_mux", uart_parent, in pxa168_clk_init()
201 clk_set_parent(clk, uart_pll); in pxa168_clk_init()
202 clk_register_clkdev(clk, "uart_mux.0", NULL); in pxa168_clk_init()
204 clk = mmp_clk_register_apbc("uart0", "uart0_mux", in pxa168_clk_init()
206 clk_register_clkdev(clk, NULL, "pxa2xx-uart.0"); in pxa168_clk_init()
208 clk = clk_register_mux(NULL, "uart1_mux", uart_parent, in pxa168_clk_init()
212 clk_set_parent(clk, uart_pll); in pxa168_clk_init()
213 clk_register_clkdev(clk, "uart_mux.1", NULL); in pxa168_clk_init()
215 clk = mmp_clk_register_apbc("uart1", "uart1_mux", in pxa168_clk_init()
217 clk_register_clkdev(clk, NULL, "pxa2xx-uart.1"); in pxa168_clk_init()
219 clk = clk_register_mux(NULL, "uart2_mux", uart_parent, in pxa168_clk_init()
223 clk_set_parent(clk, uart_pll); in pxa168_clk_init()
224 clk_register_clkdev(clk, "uart_mux.2", NULL); in pxa168_clk_init()
226 clk = mmp_clk_register_apbc("uart2", "uart2_mux", in pxa168_clk_init()
228 clk_register_clkdev(clk, NULL, "pxa2xx-uart.2"); in pxa168_clk_init()
230 clk = clk_register_mux(NULL, "ssp0_mux", ssp_parent, in pxa168_clk_init()
234 clk_register_clkdev(clk, "uart_mux.0", NULL); in pxa168_clk_init()
236 clk = mmp_clk_register_apbc("ssp0", "ssp0_mux", apbc_base + APBC_SSP0, in pxa168_clk_init()
238 clk_register_clkdev(clk, NULL, "mmp-ssp.0"); in pxa168_clk_init()
240 clk = clk_register_mux(NULL, "ssp1_mux", ssp_parent, in pxa168_clk_init()
244 clk_register_clkdev(clk, "ssp_mux.1", NULL); in pxa168_clk_init()
246 clk = mmp_clk_register_apbc("ssp1", "ssp1_mux", apbc_base + APBC_SSP1, in pxa168_clk_init()
248 clk_register_clkdev(clk, NULL, "mmp-ssp.1"); in pxa168_clk_init()
250 clk = clk_register_mux(NULL, "ssp2_mux", ssp_parent, in pxa168_clk_init()
254 clk_register_clkdev(clk, "ssp_mux.2", NULL); in pxa168_clk_init()
256 clk = mmp_clk_register_apbc("ssp2", "ssp1_mux", apbc_base + APBC_SSP2, in pxa168_clk_init()
258 clk_register_clkdev(clk, NULL, "mmp-ssp.2"); in pxa168_clk_init()
260 clk = clk_register_mux(NULL, "ssp3_mux", ssp_parent, in pxa168_clk_init()
264 clk_register_clkdev(clk, "ssp_mux.3", NULL); in pxa168_clk_init()
266 clk = mmp_clk_register_apbc("ssp3", "ssp1_mux", apbc_base + APBC_SSP3, in pxa168_clk_init()
268 clk_register_clkdev(clk, NULL, "mmp-ssp.3"); in pxa168_clk_init()
270 clk = clk_register_mux(NULL, "ssp4_mux", ssp_parent, in pxa168_clk_init()
274 clk_register_clkdev(clk, "ssp_mux.4", NULL); in pxa168_clk_init()
276 clk = mmp_clk_register_apbc("ssp4", "ssp1_mux", apbc_base + APBC_SSP4, in pxa168_clk_init()
278 clk_register_clkdev(clk, NULL, "mmp-ssp.4"); in pxa168_clk_init()
280 clk = mmp_clk_register_apmu("dfc", "pll1_4", apmu_base + APMU_DFC, in pxa168_clk_init()
282 clk_register_clkdev(clk, NULL, "pxa3xx-nand.0"); in pxa168_clk_init()
284 clk = clk_register_mux(NULL, "sdh0_mux", sdh_parent, in pxa168_clk_init()
288 clk_register_clkdev(clk, "sdh0_mux", NULL); in pxa168_clk_init()
290 clk = mmp_clk_register_apmu("sdh0", "sdh_mux", apmu_base + APMU_SDH0, in pxa168_clk_init()
292 clk_register_clkdev(clk, NULL, "sdhci-pxa.0"); in pxa168_clk_init()
294 clk = clk_register_mux(NULL, "sdh1_mux", sdh_parent, in pxa168_clk_init()
298 clk_register_clkdev(clk, "sdh1_mux", NULL); in pxa168_clk_init()
300 clk = mmp_clk_register_apmu("sdh1", "sdh1_mux", apmu_base + APMU_SDH1, in pxa168_clk_init()
302 clk_register_clkdev(clk, NULL, "sdhci-pxa.1"); in pxa168_clk_init()
304 clk = mmp_clk_register_apmu("usb", "usb_pll", apmu_base + APMU_USB, in pxa168_clk_init()
306 clk_register_clkdev(clk, "usb_clk", NULL); in pxa168_clk_init()
308 clk = mmp_clk_register_apmu("sph", "usb_pll", apmu_base + APMU_USB, in pxa168_clk_init()
310 clk_register_clkdev(clk, "sph_clk", NULL); in pxa168_clk_init()
312 clk = clk_register_mux(NULL, "disp0_mux", disp_parent, in pxa168_clk_init()
316 clk_register_clkdev(clk, "disp_mux.0", NULL); in pxa168_clk_init()
318 clk = mmp_clk_register_apmu("disp0", "disp0_mux", in pxa168_clk_init()
320 clk_register_clkdev(clk, "fnclk", "mmp-disp.0"); in pxa168_clk_init()
322 clk = mmp_clk_register_apmu("disp0_hclk", "disp0_mux", in pxa168_clk_init()
324 clk_register_clkdev(clk, "hclk", "mmp-disp.0"); in pxa168_clk_init()
326 clk = clk_register_mux(NULL, "ccic0_mux", ccic_parent, in pxa168_clk_init()
330 clk_register_clkdev(clk, "ccic_mux.0", NULL); in pxa168_clk_init()
332 clk = mmp_clk_register_apmu("ccic0", "ccic0_mux", in pxa168_clk_init()
334 clk_register_clkdev(clk, "fnclk", "mmp-ccic.0"); in pxa168_clk_init()
336 clk = clk_register_mux(NULL, "ccic0_phy_mux", ccic_phy_parent, in pxa168_clk_init()
340 clk_register_clkdev(clk, "ccic_phy_mux.0", NULL); in pxa168_clk_init()
342 clk = mmp_clk_register_apmu("ccic0_phy", "ccic0_phy_mux", in pxa168_clk_init()
344 clk_register_clkdev(clk, "phyclk", "mmp-ccic.0"); in pxa168_clk_init()
346 clk = clk_register_divider(NULL, "ccic0_sphy_div", "ccic0_mux", in pxa168_clk_init()
349 clk_register_clkdev(clk, "sphyclk_div", NULL); in pxa168_clk_init()
351 clk = mmp_clk_register_apmu("ccic0_sphy", "ccic0_sphy_div", in pxa168_clk_init()
353 clk_register_clkdev(clk, "sphyclk", "mmp-ccic.0"); in pxa168_clk_init()