Lines Matching refs:clk
116 struct clk *clk, *clk1; in spear6xx_clk_init() local
118 clk = clk_register_fixed_rate(NULL, "osc_32k_clk", NULL, 0, 32000); in spear6xx_clk_init()
119 clk_register_clkdev(clk, "osc_32k_clk", NULL); in spear6xx_clk_init()
121 clk = clk_register_fixed_rate(NULL, "osc_30m_clk", NULL, 0, 30000000); in spear6xx_clk_init()
122 clk_register_clkdev(clk, "osc_30m_clk", NULL); in spear6xx_clk_init()
125 clk = clk_register_gate(NULL, "rtc_spear", "osc_32k_clk", 0, in spear6xx_clk_init()
127 clk_register_clkdev(clk, NULL, "rtc-spear"); in spear6xx_clk_init()
130 clk = clk_register_fixed_rate(NULL, "pll3_clk", "osc_24m_clk", 0, in spear6xx_clk_init()
132 clk_register_clkdev(clk, "pll3_clk", NULL); in spear6xx_clk_init()
134 clk = clk_register_vco_pll("vco1_clk", "pll1_clk", NULL, "osc_30m_clk", in spear6xx_clk_init()
137 clk_register_clkdev(clk, "vco1_clk", NULL); in spear6xx_clk_init()
140 clk = clk_register_vco_pll("vco2_clk", "pll2_clk", NULL, "osc_30m_clk", in spear6xx_clk_init()
143 clk_register_clkdev(clk, "vco2_clk", NULL); in spear6xx_clk_init()
146 clk = clk_register_fixed_factor(NULL, "wdt_clk", "osc_30m_clk", 0, 1, in spear6xx_clk_init()
148 clk_register_clkdev(clk, NULL, "fc880000.wdt"); in spear6xx_clk_init()
151 clk = clk_register_fixed_factor(NULL, "cpu_clk", "pll1_clk", in spear6xx_clk_init()
153 clk_register_clkdev(clk, "cpu_clk", NULL); in spear6xx_clk_init()
155 clk = clk_register_divider(NULL, "ahb_clk", "pll1_clk", in spear6xx_clk_init()
158 clk_register_clkdev(clk, "ahb_clk", NULL); in spear6xx_clk_init()
160 clk = clk_register_aux("uart_syn_clk", "uart_syn_gclk", "pll1_clk", 0, in spear6xx_clk_init()
163 clk_register_clkdev(clk, "uart_syn_clk", NULL); in spear6xx_clk_init()
166 clk = clk_register_mux(NULL, "uart_mclk", uart_parents, in spear6xx_clk_init()
170 clk_register_clkdev(clk, "uart_mclk", NULL); in spear6xx_clk_init()
172 clk = clk_register_gate(NULL, "uart0", "uart_mclk", 0, PERIP1_CLK_ENB, in spear6xx_clk_init()
174 clk_register_clkdev(clk, NULL, "d0000000.serial"); in spear6xx_clk_init()
176 clk = clk_register_gate(NULL, "uart1", "uart_mclk", 0, PERIP1_CLK_ENB, in spear6xx_clk_init()
178 clk_register_clkdev(clk, NULL, "d0080000.serial"); in spear6xx_clk_init()
180 clk = clk_register_aux("firda_syn_clk", "firda_syn_gclk", "pll1_clk", in spear6xx_clk_init()
183 clk_register_clkdev(clk, "firda_syn_clk", NULL); in spear6xx_clk_init()
186 clk = clk_register_mux(NULL, "firda_mclk", firda_parents, in spear6xx_clk_init()
190 clk_register_clkdev(clk, "firda_mclk", NULL); in spear6xx_clk_init()
192 clk = clk_register_gate(NULL, "firda_clk", "firda_mclk", 0, in spear6xx_clk_init()
194 clk_register_clkdev(clk, NULL, "firda"); in spear6xx_clk_init()
196 clk = clk_register_aux("clcd_syn_clk", "clcd_syn_gclk", "pll1_clk", in spear6xx_clk_init()
199 clk_register_clkdev(clk, "clcd_syn_clk", NULL); in spear6xx_clk_init()
202 clk = clk_register_mux(NULL, "clcd_mclk", clcd_parents, in spear6xx_clk_init()
206 clk_register_clkdev(clk, "clcd_mclk", NULL); in spear6xx_clk_init()
208 clk = clk_register_gate(NULL, "clcd_clk", "clcd_mclk", 0, in spear6xx_clk_init()
210 clk_register_clkdev(clk, NULL, "fc200000.clcd"); in spear6xx_clk_init()
213 clk = clk_register_gpt("gpt0_1_syn_clk", "pll1_clk", 0, PRSC0_CLK_CFG, in spear6xx_clk_init()
215 clk_register_clkdev(clk, "gpt0_1_syn_clk", NULL); in spear6xx_clk_init()
217 clk = clk_register_mux(NULL, "gpt0_mclk", gpt0_1_parents, in spear6xx_clk_init()
220 clk_register_clkdev(clk, NULL, "gpt0"); in spear6xx_clk_init()
222 clk = clk_register_mux(NULL, "gpt1_mclk", gpt0_1_parents, in spear6xx_clk_init()
225 clk_register_clkdev(clk, "gpt1_mclk", NULL); in spear6xx_clk_init()
227 clk = clk_register_gate(NULL, "gpt1_clk", "gpt1_mclk", 0, in spear6xx_clk_init()
229 clk_register_clkdev(clk, NULL, "gpt1"); in spear6xx_clk_init()
231 clk = clk_register_gpt("gpt2_syn_clk", "pll1_clk", 0, PRSC1_CLK_CFG, in spear6xx_clk_init()
233 clk_register_clkdev(clk, "gpt2_syn_clk", NULL); in spear6xx_clk_init()
235 clk = clk_register_mux(NULL, "gpt2_mclk", gpt2_parents, in spear6xx_clk_init()
238 clk_register_clkdev(clk, "gpt2_mclk", NULL); in spear6xx_clk_init()
240 clk = clk_register_gate(NULL, "gpt2_clk", "gpt2_mclk", 0, in spear6xx_clk_init()
242 clk_register_clkdev(clk, NULL, "gpt2"); in spear6xx_clk_init()
244 clk = clk_register_gpt("gpt3_syn_clk", "pll1_clk", 0, PRSC2_CLK_CFG, in spear6xx_clk_init()
246 clk_register_clkdev(clk, "gpt3_syn_clk", NULL); in spear6xx_clk_init()
248 clk = clk_register_mux(NULL, "gpt3_mclk", gpt3_parents, in spear6xx_clk_init()
251 clk_register_clkdev(clk, "gpt3_mclk", NULL); in spear6xx_clk_init()
253 clk = clk_register_gate(NULL, "gpt3_clk", "gpt3_mclk", 0, in spear6xx_clk_init()
255 clk_register_clkdev(clk, NULL, "gpt3"); in spear6xx_clk_init()
258 clk = clk_register_gate(NULL, "usbh0_clk", "pll3_clk", 0, in spear6xx_clk_init()
260 clk_register_clkdev(clk, NULL, "e1800000.ehci"); in spear6xx_clk_init()
261 clk_register_clkdev(clk, NULL, "e1900000.ohci"); in spear6xx_clk_init()
263 clk = clk_register_gate(NULL, "usbh1_clk", "pll3_clk", 0, in spear6xx_clk_init()
265 clk_register_clkdev(clk, NULL, "e2000000.ehci"); in spear6xx_clk_init()
266 clk_register_clkdev(clk, NULL, "e2100000.ohci"); in spear6xx_clk_init()
268 clk = clk_register_gate(NULL, "usbd_clk", "pll3_clk", 0, PERIP1_CLK_ENB, in spear6xx_clk_init()
270 clk_register_clkdev(clk, NULL, "designware_udc"); in spear6xx_clk_init()
273 clk = clk_register_fixed_factor(NULL, "ahbmult2_clk", "ahb_clk", 0, 2, in spear6xx_clk_init()
275 clk_register_clkdev(clk, "ahbmult2_clk", NULL); in spear6xx_clk_init()
277 clk = clk_register_mux(NULL, "ddr_clk", ddr_parents, in spear6xx_clk_init()
280 clk_register_clkdev(clk, "ddr_clk", NULL); in spear6xx_clk_init()
282 clk = clk_register_divider(NULL, "apb_clk", "ahb_clk", in spear6xx_clk_init()
285 clk_register_clkdev(clk, "apb_clk", NULL); in spear6xx_clk_init()
287 clk = clk_register_gate(NULL, "dma_clk", "ahb_clk", 0, PERIP1_CLK_ENB, in spear6xx_clk_init()
289 clk_register_clkdev(clk, NULL, "fc400000.dma"); in spear6xx_clk_init()
291 clk = clk_register_gate(NULL, "fsmc_clk", "ahb_clk", 0, PERIP1_CLK_ENB, in spear6xx_clk_init()
293 clk_register_clkdev(clk, NULL, "d1800000.flash"); in spear6xx_clk_init()
295 clk = clk_register_gate(NULL, "gmac_clk", "ahb_clk", 0, PERIP1_CLK_ENB, in spear6xx_clk_init()
297 clk_register_clkdev(clk, NULL, "e0800000.ethernet"); in spear6xx_clk_init()
299 clk = clk_register_gate(NULL, "i2c_clk", "ahb_clk", 0, PERIP1_CLK_ENB, in spear6xx_clk_init()
301 clk_register_clkdev(clk, NULL, "d0200000.i2c"); in spear6xx_clk_init()
303 clk = clk_register_gate(NULL, "jpeg_clk", "ahb_clk", 0, PERIP1_CLK_ENB, in spear6xx_clk_init()
305 clk_register_clkdev(clk, NULL, "jpeg"); in spear6xx_clk_init()
307 clk = clk_register_gate(NULL, "smi_clk", "ahb_clk", 0, PERIP1_CLK_ENB, in spear6xx_clk_init()
309 clk_register_clkdev(clk, NULL, "fc000000.flash"); in spear6xx_clk_init()
312 clk = clk_register_gate(NULL, "adc_clk", "apb_clk", 0, PERIP1_CLK_ENB, in spear6xx_clk_init()
314 clk_register_clkdev(clk, NULL, "d820b000.adc"); in spear6xx_clk_init()
316 clk = clk_register_fixed_factor(NULL, "gpio0_clk", "apb_clk", 0, 1, 1); in spear6xx_clk_init()
317 clk_register_clkdev(clk, NULL, "f0100000.gpio"); in spear6xx_clk_init()
319 clk = clk_register_gate(NULL, "gpio1_clk", "apb_clk", 0, PERIP1_CLK_ENB, in spear6xx_clk_init()
321 clk_register_clkdev(clk, NULL, "fc980000.gpio"); in spear6xx_clk_init()
323 clk = clk_register_gate(NULL, "gpio2_clk", "apb_clk", 0, PERIP1_CLK_ENB, in spear6xx_clk_init()
325 clk_register_clkdev(clk, NULL, "d8100000.gpio"); in spear6xx_clk_init()
327 clk = clk_register_gate(NULL, "ssp0_clk", "apb_clk", 0, PERIP1_CLK_ENB, in spear6xx_clk_init()
329 clk_register_clkdev(clk, NULL, "d0100000.spi"); in spear6xx_clk_init()
331 clk = clk_register_gate(NULL, "ssp1_clk", "apb_clk", 0, PERIP1_CLK_ENB, in spear6xx_clk_init()
333 clk_register_clkdev(clk, NULL, "d0180000.spi"); in spear6xx_clk_init()
335 clk = clk_register_gate(NULL, "ssp2_clk", "apb_clk", 0, PERIP1_CLK_ENB, in spear6xx_clk_init()
337 clk_register_clkdev(clk, NULL, "d8180000.spi"); in spear6xx_clk_init()