diff options
author | Benoit Cousson <b-cousson@ti.com> | 2011-07-09 21:14:45 -0400 |
---|---|---|
committer | Paul Walmsley <paul@pwsan.com> | 2011-07-09 21:14:45 -0400 |
commit | 7ecd4228b48192890220e1fd1b39c8bd2988aa80 (patch) | |
tree | 9dda271d0e79949884b033dabdb1bf1f8045a2ca /arch/arm/mach-omap2 | |
parent | 6629f3c47006dd00db0b87ce02a55a16ecacfbbf (diff) |
OMAP4: clock data: Re-order some clock nodes and structure fields
A couple of fieds were edited manually and thus do not stick
to the template used by the generator and by other structures.
Move them to the correct location.
Signed-off-by: Benoit Cousson <b-cousson@ti.com>
Cc: Paul Walmsley <paul@pwsan.com>
[paul@pwsan.com: dropped the UNIPRO changes since those will be removed
in a later patch]
Signed-off-by: Paul Walmsley <paul@pwsan.com>
Diffstat (limited to 'arch/arm/mach-omap2')
-rw-r--r-- | arch/arm/mach-omap2/clock44xx_data.c | 66 |
1 files changed, 34 insertions, 32 deletions
diff --git a/arch/arm/mach-omap2/clock44xx_data.c b/arch/arm/mach-omap2/clock44xx_data.c index 0fa1cb88331c..4b57d55f5a11 100644 --- a/arch/arm/mach-omap2/clock44xx_data.c +++ b/arch/arm/mach-omap2/clock44xx_data.c | |||
@@ -53,9 +53,9 @@ static struct clk extalt_clkin_ck = { | |||
53 | static struct clk pad_clks_ck = { | 53 | static struct clk pad_clks_ck = { |
54 | .name = "pad_clks_ck", | 54 | .name = "pad_clks_ck", |
55 | .rate = 12000000, | 55 | .rate = 12000000, |
56 | .ops = &clkops_omap2_dflt, | 56 | .ops = &clkops_omap2_dflt, |
57 | .enable_reg = OMAP4430_CM_CLKSEL_ABE, | 57 | .enable_reg = OMAP4430_CM_CLKSEL_ABE, |
58 | .enable_bit = OMAP4430_PAD_CLKS_GATE_SHIFT, | 58 | .enable_bit = OMAP4430_PAD_CLKS_GATE_SHIFT, |
59 | }; | 59 | }; |
60 | 60 | ||
61 | static struct clk pad_slimbus_core_clks_ck = { | 61 | static struct clk pad_slimbus_core_clks_ck = { |
@@ -73,9 +73,9 @@ static struct clk secure_32k_clk_src_ck = { | |||
73 | static struct clk slimbus_clk = { | 73 | static struct clk slimbus_clk = { |
74 | .name = "slimbus_clk", | 74 | .name = "slimbus_clk", |
75 | .rate = 12000000, | 75 | .rate = 12000000, |
76 | .ops = &clkops_omap2_dflt, | 76 | .ops = &clkops_omap2_dflt, |
77 | .enable_reg = OMAP4430_CM_CLKSEL_ABE, | 77 | .enable_reg = OMAP4430_CM_CLKSEL_ABE, |
78 | .enable_bit = OMAP4430_SLIMBUS_CLK_GATE_SHIFT, | 78 | .enable_bit = OMAP4430_SLIMBUS_CLK_GATE_SHIFT, |
79 | }; | 79 | }; |
80 | 80 | ||
81 | static struct clk sys_32k_ck = { | 81 | static struct clk sys_32k_ck = { |
@@ -278,10 +278,10 @@ static struct clk dpll_abe_ck = { | |||
278 | static struct clk dpll_abe_x2_ck = { | 278 | static struct clk dpll_abe_x2_ck = { |
279 | .name = "dpll_abe_x2_ck", | 279 | .name = "dpll_abe_x2_ck", |
280 | .parent = &dpll_abe_ck, | 280 | .parent = &dpll_abe_ck, |
281 | .clksel_reg = OMAP4430_CM_DIV_M2_DPLL_ABE, | ||
281 | .flags = CLOCK_CLKOUTX2, | 282 | .flags = CLOCK_CLKOUTX2, |
282 | .ops = &clkops_omap4_dpllmx_ops, | 283 | .ops = &clkops_omap4_dpllmx_ops, |
283 | .recalc = &omap3_clkoutx2_recalc, | 284 | .recalc = &omap3_clkoutx2_recalc, |
284 | .clksel_reg = OMAP4430_CM_DIV_M2_DPLL_ABE, | ||
285 | }; | 285 | }; |
286 | 286 | ||
287 | static const struct clksel_rate div31_1to31_rates[] = { | 287 | static const struct clksel_rate div31_1to31_rates[] = { |
@@ -622,11 +622,11 @@ static struct clk dpll_core_m3x2_ck = { | |||
622 | .clksel_reg = OMAP4430_CM_DIV_M3_DPLL_CORE, | 622 | .clksel_reg = OMAP4430_CM_DIV_M3_DPLL_CORE, |
623 | .clksel_mask = OMAP4430_DPLL_CLKOUTHIF_DIV_MASK, | 623 | .clksel_mask = OMAP4430_DPLL_CLKOUTHIF_DIV_MASK, |
624 | .ops = &clkops_omap2_dflt, | 624 | .ops = &clkops_omap2_dflt, |
625 | .enable_reg = OMAP4430_CM_DIV_M3_DPLL_CORE, | ||
626 | .enable_bit = OMAP4430_DPLL_CLKOUTHIF_GATE_CTRL_SHIFT, | ||
627 | .recalc = &omap2_clksel_recalc, | 625 | .recalc = &omap2_clksel_recalc, |
628 | .round_rate = &omap2_clksel_round_rate, | 626 | .round_rate = &omap2_clksel_round_rate, |
629 | .set_rate = &omap2_clksel_set_rate, | 627 | .set_rate = &omap2_clksel_set_rate, |
628 | .enable_reg = OMAP4430_CM_DIV_M3_DPLL_CORE, | ||
629 | .enable_bit = OMAP4430_DPLL_CLKOUTHIF_GATE_CTRL_SHIFT, | ||
630 | }; | 630 | }; |
631 | 631 | ||
632 | static struct clk dpll_core_m7x2_ck = { | 632 | static struct clk dpll_core_m7x2_ck = { |
@@ -850,10 +850,10 @@ static struct clk dpll_per_m2_ck = { | |||
850 | static struct clk dpll_per_x2_ck = { | 850 | static struct clk dpll_per_x2_ck = { |
851 | .name = "dpll_per_x2_ck", | 851 | .name = "dpll_per_x2_ck", |
852 | .parent = &dpll_per_ck, | 852 | .parent = &dpll_per_ck, |
853 | .clksel_reg = OMAP4430_CM_DIV_M2_DPLL_PER, | ||
853 | .flags = CLOCK_CLKOUTX2, | 854 | .flags = CLOCK_CLKOUTX2, |
854 | .ops = &clkops_omap4_dpllmx_ops, | 855 | .ops = &clkops_omap4_dpllmx_ops, |
855 | .recalc = &omap3_clkoutx2_recalc, | 856 | .recalc = &omap3_clkoutx2_recalc, |
856 | .clksel_reg = OMAP4430_CM_DIV_M2_DPLL_PER, | ||
857 | }; | 857 | }; |
858 | 858 | ||
859 | static const struct clksel dpll_per_m2x2_div[] = { | 859 | static const struct clksel dpll_per_m2x2_div[] = { |
@@ -880,11 +880,11 @@ static struct clk dpll_per_m3x2_ck = { | |||
880 | .clksel_reg = OMAP4430_CM_DIV_M3_DPLL_PER, | 880 | .clksel_reg = OMAP4430_CM_DIV_M3_DPLL_PER, |
881 | .clksel_mask = OMAP4430_DPLL_CLKOUTHIF_DIV_MASK, | 881 | .clksel_mask = OMAP4430_DPLL_CLKOUTHIF_DIV_MASK, |
882 | .ops = &clkops_omap2_dflt, | 882 | .ops = &clkops_omap2_dflt, |
883 | .enable_reg = OMAP4430_CM_DIV_M3_DPLL_PER, | ||
884 | .enable_bit = OMAP4430_DPLL_CLKOUTHIF_GATE_CTRL_SHIFT, | ||
885 | .recalc = &omap2_clksel_recalc, | 883 | .recalc = &omap2_clksel_recalc, |
886 | .round_rate = &omap2_clksel_round_rate, | 884 | .round_rate = &omap2_clksel_round_rate, |
887 | .set_rate = &omap2_clksel_set_rate, | 885 | .set_rate = &omap2_clksel_set_rate, |
886 | .enable_reg = OMAP4430_CM_DIV_M3_DPLL_PER, | ||
887 | .enable_bit = OMAP4430_DPLL_CLKOUTHIF_GATE_CTRL_SHIFT, | ||
888 | }; | 888 | }; |
889 | 889 | ||
890 | static struct clk dpll_per_m4x2_ck = { | 890 | static struct clk dpll_per_m4x2_ck = { |
@@ -970,8 +970,9 @@ static struct clk dpll_unipro_ck = { | |||
970 | static struct clk dpll_unipro_x2_ck = { | 970 | static struct clk dpll_unipro_x2_ck = { |
971 | .name = "dpll_unipro_x2_ck", | 971 | .name = "dpll_unipro_x2_ck", |
972 | .parent = &dpll_unipro_ck, | 972 | .parent = &dpll_unipro_ck, |
973 | .clksel_reg = OMAP4430_CM_DIV_M2_DPLL_UNIPRO, | ||
973 | .flags = CLOCK_CLKOUTX2, | 974 | .flags = CLOCK_CLKOUTX2, |
974 | .ops = &clkops_null, | 975 | .ops = &clkops_omap4_dpllmx_ops, |
975 | .recalc = &omap3_clkoutx2_recalc, | 976 | .recalc = &omap3_clkoutx2_recalc, |
976 | }; | 977 | }; |
977 | 978 | ||
@@ -1036,8 +1037,8 @@ static struct clk dpll_usb_ck = { | |||
1036 | static struct clk dpll_usb_clkdcoldo_ck = { | 1037 | static struct clk dpll_usb_clkdcoldo_ck = { |
1037 | .name = "dpll_usb_clkdcoldo_ck", | 1038 | .name = "dpll_usb_clkdcoldo_ck", |
1038 | .parent = &dpll_usb_ck, | 1039 | .parent = &dpll_usb_ck, |
1039 | .ops = &clkops_omap4_dpllmx_ops, | ||
1040 | .clksel_reg = OMAP4430_CM_CLKDCOLDO_DPLL_USB, | 1040 | .clksel_reg = OMAP4430_CM_CLKDCOLDO_DPLL_USB, |
1041 | .ops = &clkops_omap4_dpllmx_ops, | ||
1041 | .recalc = &followparent_recalc, | 1042 | .recalc = &followparent_recalc, |
1042 | }; | 1043 | }; |
1043 | 1044 | ||
@@ -1847,8 +1848,8 @@ static struct clk l3_instr_ick = { | |||
1847 | .ops = &clkops_omap2_dflt, | 1848 | .ops = &clkops_omap2_dflt, |
1848 | .enable_reg = OMAP4430_CM_L3INSTR_L3_INSTR_CLKCTRL, | 1849 | .enable_reg = OMAP4430_CM_L3INSTR_L3_INSTR_CLKCTRL, |
1849 | .enable_bit = OMAP4430_MODULEMODE_HWCTRL, | 1850 | .enable_bit = OMAP4430_MODULEMODE_HWCTRL, |
1850 | .clkdm_name = "l3_instr_clkdm", | ||
1851 | .flags = ENABLE_ON_INIT, | 1851 | .flags = ENABLE_ON_INIT, |
1852 | .clkdm_name = "l3_instr_clkdm", | ||
1852 | .parent = &l3_div_ck, | 1853 | .parent = &l3_div_ck, |
1853 | .recalc = &followparent_recalc, | 1854 | .recalc = &followparent_recalc, |
1854 | }; | 1855 | }; |
@@ -1858,8 +1859,8 @@ static struct clk l3_main_3_ick = { | |||
1858 | .ops = &clkops_omap2_dflt, | 1859 | .ops = &clkops_omap2_dflt, |
1859 | .enable_reg = OMAP4430_CM_L3INSTR_L3_3_CLKCTRL, | 1860 | .enable_reg = OMAP4430_CM_L3INSTR_L3_3_CLKCTRL, |
1860 | .enable_bit = OMAP4430_MODULEMODE_HWCTRL, | 1861 | .enable_bit = OMAP4430_MODULEMODE_HWCTRL, |
1861 | .clkdm_name = "l3_instr_clkdm", | ||
1862 | .flags = ENABLE_ON_INIT, | 1862 | .flags = ENABLE_ON_INIT, |
1863 | .clkdm_name = "l3_instr_clkdm", | ||
1863 | .parent = &l3_div_ck, | 1864 | .parent = &l3_div_ck, |
1864 | .recalc = &followparent_recalc, | 1865 | .recalc = &followparent_recalc, |
1865 | }; | 1866 | }; |
@@ -2163,8 +2164,8 @@ static struct clk ocp_wp_noc_ick = { | |||
2163 | .ops = &clkops_omap2_dflt, | 2164 | .ops = &clkops_omap2_dflt, |
2164 | .enable_reg = OMAP4430_CM_L3INSTR_OCP_WP1_CLKCTRL, | 2165 | .enable_reg = OMAP4430_CM_L3INSTR_OCP_WP1_CLKCTRL, |
2165 | .enable_bit = OMAP4430_MODULEMODE_HWCTRL, | 2166 | .enable_bit = OMAP4430_MODULEMODE_HWCTRL, |
2166 | .clkdm_name = "l3_instr_clkdm", | ||
2167 | .flags = ENABLE_ON_INIT, | 2167 | .flags = ENABLE_ON_INIT, |
2168 | .clkdm_name = "l3_instr_clkdm", | ||
2168 | .parent = &l3_div_ck, | 2169 | .parent = &l3_div_ck, |
2169 | .recalc = &followparent_recalc, | 2170 | .recalc = &followparent_recalc, |
2170 | }; | 2171 | }; |
@@ -2896,6 +2897,7 @@ static struct clk auxclk2_ck = { | |||
2896 | .enable_reg = OMAP4_SCRM_AUXCLK2, | 2897 | .enable_reg = OMAP4_SCRM_AUXCLK2, |
2897 | .enable_bit = OMAP4_ENABLE_SHIFT, | 2898 | .enable_bit = OMAP4_ENABLE_SHIFT, |
2898 | }; | 2899 | }; |
2900 | |||
2899 | static struct clk auxclk3_ck = { | 2901 | static struct clk auxclk3_ck = { |
2900 | .name = "auxclk3_ck", | 2902 | .name = "auxclk3_ck", |
2901 | .parent = &sys_clkin_ck, | 2903 | .parent = &sys_clkin_ck, |
@@ -3217,7 +3219,6 @@ static struct omap_clk omap44xx_clks[] = { | |||
3217 | CLK(NULL, "usb_host_hs_hsic480m_p2_clk", &usb_host_hs_hsic480m_p2_clk, CK_443X), | 3219 | CLK(NULL, "usb_host_hs_hsic480m_p2_clk", &usb_host_hs_hsic480m_p2_clk, CK_443X), |
3218 | CLK(NULL, "usb_host_hs_func48mclk", &usb_host_hs_func48mclk, CK_443X), | 3220 | CLK(NULL, "usb_host_hs_func48mclk", &usb_host_hs_func48mclk, CK_443X), |
3219 | CLK("usbhs-omap.0", "hs_fck", &usb_host_hs_fck, CK_443X), | 3221 | CLK("usbhs-omap.0", "hs_fck", &usb_host_hs_fck, CK_443X), |
3220 | CLK("usbhs-omap.0", "usbhost_ick", &dummy_ck, CK_443X), | ||
3221 | CLK(NULL, "otg_60m_gfclk", &otg_60m_gfclk, CK_443X), | 3222 | CLK(NULL, "otg_60m_gfclk", &otg_60m_gfclk, CK_443X), |
3222 | CLK(NULL, "usb_otg_hs_xclk", &usb_otg_hs_xclk, CK_443X), | 3223 | CLK(NULL, "usb_otg_hs_xclk", &usb_otg_hs_xclk, CK_443X), |
3223 | CLK("musb-omap2430", "ick", &usb_otg_hs_ick, CK_443X), | 3224 | CLK("musb-omap2430", "ick", &usb_otg_hs_ick, CK_443X), |
@@ -3226,15 +3227,25 @@ static struct omap_clk omap44xx_clks[] = { | |||
3226 | CLK(NULL, "usb_tll_hs_usb_ch0_clk", &usb_tll_hs_usb_ch0_clk, CK_443X), | 3227 | CLK(NULL, "usb_tll_hs_usb_ch0_clk", &usb_tll_hs_usb_ch0_clk, CK_443X), |
3227 | CLK(NULL, "usb_tll_hs_usb_ch1_clk", &usb_tll_hs_usb_ch1_clk, CK_443X), | 3228 | CLK(NULL, "usb_tll_hs_usb_ch1_clk", &usb_tll_hs_usb_ch1_clk, CK_443X), |
3228 | CLK("usbhs-omap.0", "usbtll_ick", &usb_tll_hs_ick, CK_443X), | 3229 | CLK("usbhs-omap.0", "usbtll_ick", &usb_tll_hs_ick, CK_443X), |
3229 | CLK("usbhs-omap.0", "usbtll_fck", &dummy_ck, CK_443X), | ||
3230 | CLK(NULL, "usim_ck", &usim_ck, CK_443X), | 3230 | CLK(NULL, "usim_ck", &usim_ck, CK_443X), |
3231 | CLK(NULL, "usim_fclk", &usim_fclk, CK_443X), | 3231 | CLK(NULL, "usim_fclk", &usim_fclk, CK_443X), |
3232 | CLK(NULL, "usim_fck", &usim_fck, CK_443X), | 3232 | CLK(NULL, "usim_fck", &usim_fck, CK_443X), |
3233 | CLK("omap_wdt", "fck", &wd_timer2_fck, CK_443X), | 3233 | CLK("omap_wdt", "fck", &wd_timer2_fck, CK_443X), |
3234 | CLK(NULL, "mailboxes_ick", &dummy_ck, CK_443X), | ||
3235 | CLK(NULL, "wd_timer3_fck", &wd_timer3_fck, CK_443X), | 3234 | CLK(NULL, "wd_timer3_fck", &wd_timer3_fck, CK_443X), |
3236 | CLK(NULL, "stm_clk_div_ck", &stm_clk_div_ck, CK_443X), | 3235 | CLK(NULL, "stm_clk_div_ck", &stm_clk_div_ck, CK_443X), |
3237 | CLK(NULL, "trace_clk_div_ck", &trace_clk_div_ck, CK_443X), | 3236 | CLK(NULL, "trace_clk_div_ck", &trace_clk_div_ck, CK_443X), |
3237 | CLK(NULL, "auxclk0_ck", &auxclk0_ck, CK_443X), | ||
3238 | CLK(NULL, "auxclk1_ck", &auxclk1_ck, CK_443X), | ||
3239 | CLK(NULL, "auxclk2_ck", &auxclk2_ck, CK_443X), | ||
3240 | CLK(NULL, "auxclk3_ck", &auxclk3_ck, CK_443X), | ||
3241 | CLK(NULL, "auxclk4_ck", &auxclk4_ck, CK_443X), | ||
3242 | CLK(NULL, "auxclk5_ck", &auxclk5_ck, CK_443X), | ||
3243 | CLK(NULL, "auxclkreq0_ck", &auxclkreq0_ck, CK_443X), | ||
3244 | CLK(NULL, "auxclkreq1_ck", &auxclkreq1_ck, CK_443X), | ||
3245 | CLK(NULL, "auxclkreq2_ck", &auxclkreq2_ck, CK_443X), | ||
3246 | CLK(NULL, "auxclkreq3_ck", &auxclkreq3_ck, CK_443X), | ||
3247 | CLK(NULL, "auxclkreq4_ck", &auxclkreq4_ck, CK_443X), | ||
3248 | CLK(NULL, "auxclkreq5_ck", &auxclkreq5_ck, CK_443X), | ||
3238 | CLK(NULL, "gpmc_ck", &dummy_ck, CK_443X), | 3249 | CLK(NULL, "gpmc_ck", &dummy_ck, CK_443X), |
3239 | CLK(NULL, "gpt1_ick", &dummy_ck, CK_443X), | 3250 | CLK(NULL, "gpt1_ick", &dummy_ck, CK_443X), |
3240 | CLK(NULL, "gpt2_ick", &dummy_ck, CK_443X), | 3251 | CLK(NULL, "gpt2_ick", &dummy_ck, CK_443X), |
@@ -3251,6 +3262,7 @@ static struct omap_clk omap44xx_clks[] = { | |||
3251 | CLK("omap_i2c.2", "ick", &dummy_ck, CK_443X), | 3262 | CLK("omap_i2c.2", "ick", &dummy_ck, CK_443X), |
3252 | CLK("omap_i2c.3", "ick", &dummy_ck, CK_443X), | 3263 | CLK("omap_i2c.3", "ick", &dummy_ck, CK_443X), |
3253 | CLK("omap_i2c.4", "ick", &dummy_ck, CK_443X), | 3264 | CLK("omap_i2c.4", "ick", &dummy_ck, CK_443X), |
3265 | CLK(NULL, "mailboxes_ick", &dummy_ck, CK_443X), | ||
3254 | CLK("omap_hsmmc.0", "ick", &dummy_ck, CK_443X), | 3266 | CLK("omap_hsmmc.0", "ick", &dummy_ck, CK_443X), |
3255 | CLK("omap_hsmmc.1", "ick", &dummy_ck, CK_443X), | 3267 | CLK("omap_hsmmc.1", "ick", &dummy_ck, CK_443X), |
3256 | CLK("omap_hsmmc.2", "ick", &dummy_ck, CK_443X), | 3268 | CLK("omap_hsmmc.2", "ick", &dummy_ck, CK_443X), |
@@ -3268,19 +3280,9 @@ static struct omap_clk omap44xx_clks[] = { | |||
3268 | CLK(NULL, "uart2_ick", &dummy_ck, CK_443X), | 3280 | CLK(NULL, "uart2_ick", &dummy_ck, CK_443X), |
3269 | CLK(NULL, "uart3_ick", &dummy_ck, CK_443X), | 3281 | CLK(NULL, "uart3_ick", &dummy_ck, CK_443X), |
3270 | CLK(NULL, "uart4_ick", &dummy_ck, CK_443X), | 3282 | CLK(NULL, "uart4_ick", &dummy_ck, CK_443X), |
3283 | CLK("usbhs-omap.0", "usbhost_ick", &dummy_ck, CK_443X), | ||
3284 | CLK("usbhs-omap.0", "usbtll_fck", &dummy_ck, CK_443X), | ||
3271 | CLK("omap_wdt", "ick", &dummy_ck, CK_443X), | 3285 | CLK("omap_wdt", "ick", &dummy_ck, CK_443X), |
3272 | CLK(NULL, "auxclk0_ck", &auxclk0_ck, CK_443X), | ||
3273 | CLK(NULL, "auxclk1_ck", &auxclk1_ck, CK_443X), | ||
3274 | CLK(NULL, "auxclk2_ck", &auxclk2_ck, CK_443X), | ||
3275 | CLK(NULL, "auxclk3_ck", &auxclk3_ck, CK_443X), | ||
3276 | CLK(NULL, "auxclk4_ck", &auxclk4_ck, CK_443X), | ||
3277 | CLK(NULL, "auxclk5_ck", &auxclk5_ck, CK_443X), | ||
3278 | CLK(NULL, "auxclkreq0_ck", &auxclkreq0_ck, CK_443X), | ||
3279 | CLK(NULL, "auxclkreq1_ck", &auxclkreq1_ck, CK_443X), | ||
3280 | CLK(NULL, "auxclkreq2_ck", &auxclkreq2_ck, CK_443X), | ||
3281 | CLK(NULL, "auxclkreq3_ck", &auxclkreq3_ck, CK_443X), | ||
3282 | CLK(NULL, "auxclkreq4_ck", &auxclkreq4_ck, CK_443X), | ||
3283 | CLK(NULL, "auxclkreq5_ck", &auxclkreq5_ck, CK_443X), | ||
3284 | }; | 3286 | }; |
3285 | 3287 | ||
3286 | int __init omap4xxx_clk_init(void) | 3288 | int __init omap4xxx_clk_init(void) |