diff options
author | Shawn Guo <shawn.guo@linaro.org> | 2012-09-17 03:12:28 -0400 |
---|---|---|
committer | Shawn Guo <shawn.guo@linaro.org> | 2012-09-17 03:12:28 -0400 |
commit | cb32b4e0fc53ebd45708dd7aa8d7fa224e97308c (patch) | |
tree | 68b8015b5e0ba3acb69db4f1c458841d327e74fe /arch/arm/mach-imx | |
parent | b1f174b19c15e36a5e6f209d98caba77385d790e (diff) | |
parent | 0e87e0436c0cc3954eb62181a96d7217ca955a4f (diff) |
Merge tag 'imx-clk-dt-lookup' into imx/dt-for-3.7-2
Conflicts:
arch/arm/boot/dts/imx6q.dtsi
Diffstat (limited to 'arch/arm/mach-imx')
-rw-r--r-- | arch/arm/mach-imx/clk-imx6q.c | 44 | ||||
-rw-r--r-- | arch/arm/mach-imx/mach-imx6q.c | 1 |
2 files changed, 5 insertions, 40 deletions
diff --git a/arch/arm/mach-imx/clk-imx6q.c b/arch/arm/mach-imx/clk-imx6q.c index ea89520b6e22..bbc71f57b92b 100644 --- a/arch/arm/mach-imx/clk-imx6q.c +++ b/arch/arm/mach-imx/clk-imx6q.c | |||
@@ -157,6 +157,7 @@ enum mx6q_clks { | |||
157 | }; | 157 | }; |
158 | 158 | ||
159 | static struct clk *clk[clk_max]; | 159 | static struct clk *clk[clk_max]; |
160 | static struct clk_onecell_data clk_data; | ||
160 | 161 | ||
161 | static enum mx6q_clks const clks_init_on[] __initconst = { | 162 | static enum mx6q_clks const clks_init_on[] __initconst = { |
162 | mmdc_ch0_axi, rom, | 163 | mmdc_ch0_axi, rom, |
@@ -392,48 +393,13 @@ int __init mx6q_clocks_init(void) | |||
392 | pr_err("i.MX6q clk %d: register failed with %ld\n", | 393 | pr_err("i.MX6q clk %d: register failed with %ld\n", |
393 | i, PTR_ERR(clk[i])); | 394 | i, PTR_ERR(clk[i])); |
394 | 395 | ||
396 | clk_data.clks = clk; | ||
397 | clk_data.clk_num = ARRAY_SIZE(clk); | ||
398 | of_clk_add_provider(np, of_clk_src_onecell_get, &clk_data); | ||
399 | |||
395 | clk_register_clkdev(clk[gpt_ipg], "ipg", "imx-gpt.0"); | 400 | clk_register_clkdev(clk[gpt_ipg], "ipg", "imx-gpt.0"); |
396 | clk_register_clkdev(clk[gpt_ipg_per], "per", "imx-gpt.0"); | 401 | clk_register_clkdev(clk[gpt_ipg_per], "per", "imx-gpt.0"); |
397 | clk_register_clkdev(clk[twd], NULL, "smp_twd"); | 402 | clk_register_clkdev(clk[twd], NULL, "smp_twd"); |
398 | clk_register_clkdev(clk[apbh_dma], NULL, "110000.dma-apbh"); | ||
399 | clk_register_clkdev(clk[per1_bch], "per1_bch", "112000.gpmi-nand"); | ||
400 | clk_register_clkdev(clk[gpmi_bch_apb], "gpmi_bch_apb", "112000.gpmi-nand"); | ||
401 | clk_register_clkdev(clk[gpmi_bch], "gpmi_bch", "112000.gpmi-nand"); | ||
402 | clk_register_clkdev(clk[gpmi_apb], "gpmi_apb", "112000.gpmi-nand"); | ||
403 | clk_register_clkdev(clk[gpmi_io], "gpmi_io", "112000.gpmi-nand"); | ||
404 | clk_register_clkdev(clk[usboh3], NULL, "2184000.usb"); | ||
405 | clk_register_clkdev(clk[usboh3], NULL, "2184200.usb"); | ||
406 | clk_register_clkdev(clk[usboh3], NULL, "2184400.usb"); | ||
407 | clk_register_clkdev(clk[usboh3], NULL, "2184600.usb"); | ||
408 | clk_register_clkdev(clk[usbphy1], NULL, "20c9000.usbphy"); | ||
409 | clk_register_clkdev(clk[usbphy2], NULL, "20ca000.usbphy"); | ||
410 | clk_register_clkdev(clk[uart_serial], "per", "2020000.serial"); | ||
411 | clk_register_clkdev(clk[uart_ipg], "ipg", "2020000.serial"); | ||
412 | clk_register_clkdev(clk[uart_serial], "per", "21e8000.serial"); | ||
413 | clk_register_clkdev(clk[uart_ipg], "ipg", "21e8000.serial"); | ||
414 | clk_register_clkdev(clk[uart_serial], "per", "21ec000.serial"); | ||
415 | clk_register_clkdev(clk[uart_ipg], "ipg", "21ec000.serial"); | ||
416 | clk_register_clkdev(clk[uart_serial], "per", "21f0000.serial"); | ||
417 | clk_register_clkdev(clk[uart_ipg], "ipg", "21f0000.serial"); | ||
418 | clk_register_clkdev(clk[uart_serial], "per", "21f4000.serial"); | ||
419 | clk_register_clkdev(clk[uart_ipg], "ipg", "21f4000.serial"); | ||
420 | clk_register_clkdev(clk[enet], NULL, "2188000.ethernet"); | ||
421 | clk_register_clkdev(clk[usdhc1], NULL, "2190000.usdhc"); | ||
422 | clk_register_clkdev(clk[usdhc2], NULL, "2194000.usdhc"); | ||
423 | clk_register_clkdev(clk[usdhc3], NULL, "2198000.usdhc"); | ||
424 | clk_register_clkdev(clk[usdhc4], NULL, "219c000.usdhc"); | ||
425 | clk_register_clkdev(clk[i2c1], NULL, "21a0000.i2c"); | ||
426 | clk_register_clkdev(clk[i2c2], NULL, "21a4000.i2c"); | ||
427 | clk_register_clkdev(clk[i2c3], NULL, "21a8000.i2c"); | ||
428 | clk_register_clkdev(clk[ecspi1], NULL, "2008000.ecspi"); | ||
429 | clk_register_clkdev(clk[ecspi2], NULL, "200c000.ecspi"); | ||
430 | clk_register_clkdev(clk[ecspi3], NULL, "2010000.ecspi"); | ||
431 | clk_register_clkdev(clk[ecspi4], NULL, "2014000.ecspi"); | ||
432 | clk_register_clkdev(clk[ecspi5], NULL, "2018000.ecspi"); | ||
433 | clk_register_clkdev(clk[sdma], NULL, "20ec000.sdma"); | ||
434 | clk_register_clkdev(clk[dummy], NULL, "20bc000.wdog"); | ||
435 | clk_register_clkdev(clk[dummy], NULL, "20c0000.wdog"); | ||
436 | clk_register_clkdev(clk[ssi1_ipg], NULL, "2028000.ssi"); | ||
437 | clk_register_clkdev(clk[cko1_sel], "cko1_sel", NULL); | 403 | clk_register_clkdev(clk[cko1_sel], "cko1_sel", NULL); |
438 | clk_register_clkdev(clk[ahb], "ahb", NULL); | 404 | clk_register_clkdev(clk[ahb], "ahb", NULL); |
439 | clk_register_clkdev(clk[cko1], "cko1", NULL); | 405 | clk_register_clkdev(clk[cko1], "cko1", NULL); |
diff --git a/arch/arm/mach-imx/mach-imx6q.c b/arch/arm/mach-imx/mach-imx6q.c index 263bc9148183..715029ec7abf 100644 --- a/arch/arm/mach-imx/mach-imx6q.c +++ b/arch/arm/mach-imx/mach-imx6q.c | |||
@@ -99,7 +99,6 @@ static void __init imx6q_sabrelite_cko1_setup(void) | |||
99 | clk_set_parent(cko1_sel, ahb); | 99 | clk_set_parent(cko1_sel, ahb); |
100 | rate = clk_round_rate(cko1, 16000000); | 100 | rate = clk_round_rate(cko1, 16000000); |
101 | clk_set_rate(cko1, rate); | 101 | clk_set_rate(cko1, rate); |
102 | clk_register_clkdev(cko1, NULL, "0-000a"); | ||
103 | put_clk: | 102 | put_clk: |
104 | if (!IS_ERR(cko1_sel)) | 103 | if (!IS_ERR(cko1_sel)) |
105 | clk_put(cko1_sel); | 104 | clk_put(cko1_sel); |