aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/clk
diff options
context:
space:
mode:
authorEmilio López <emilio@elopez.com.ar>2013-03-26 22:39:17 -0400
committerMike Turquette <mturquette@linaro.org>2013-03-27 11:35:35 -0400
commite3276998da12c6ec093befd6e49be4848414d57e (patch)
tree238bb81eabd62d8b6b1de218b212c773c65ee7b0 /drivers/clk
parent8eb896ab7a716308698de77073a9265f584b12fc (diff)
clk: sunxi: rename compatible strings
During the introduction of the Allwinner SoC platforms, sunxi was initially meant as a generic name for all the variants of the Allwinner SoC. It was ok at the time of the support of only the A10 and A13 that look pretty much the same; but it's beginning to be troublesome with the future addition of the Allwinner A31 (sun6i) that is quite different, and would introduce some weird logic, where sunxi would actually mean in some case sun4i and sun5i but without sun6i... Moreover, it makes the compatible strings naming scheme not consistent with other architectures, where usually for this kind of compability, we just use the oldest SoC name that has this IP, so let's do just this. Signed-off-by: Emilio López <emilio@elopez.com.ar> Signed-off-by: Mike Turquette <mturquette@linaro.org>
Diffstat (limited to 'drivers/clk')
-rw-r--r--drivers/clk/sunxi/clk-sunxi.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/drivers/clk/sunxi/clk-sunxi.c b/drivers/clk/sunxi/clk-sunxi.c
index d4ad1c22859e..d528a2496690 100644
--- a/drivers/clk/sunxi/clk-sunxi.c
+++ b/drivers/clk/sunxi/clk-sunxi.c
@@ -305,29 +305,29 @@ static void __init sunxi_divider_clk_setup(struct device_node *node,
305/* Matches for of_clk_init */ 305/* Matches for of_clk_init */
306static const __initconst struct of_device_id clk_match[] = { 306static const __initconst struct of_device_id clk_match[] = {
307 {.compatible = "fixed-clock", .data = of_fixed_clk_setup,}, 307 {.compatible = "fixed-clock", .data = of_fixed_clk_setup,},
308 {.compatible = "allwinner,sunxi-osc-clk", .data = sunxi_osc_clk_setup,}, 308 {.compatible = "allwinner,sun4i-osc-clk", .data = sunxi_osc_clk_setup,},
309 {} 309 {}
310}; 310};
311 311
312/* Matches for factors clocks */ 312/* Matches for factors clocks */
313static const __initconst struct of_device_id clk_factors_match[] = { 313static const __initconst struct of_device_id clk_factors_match[] = {
314 {.compatible = "allwinner,sunxi-pll1-clk", .data = &pll1_data,}, 314 {.compatible = "allwinner,sun4i-pll1-clk", .data = &pll1_data,},
315 {.compatible = "allwinner,sunxi-apb1-clk", .data = &apb1_data,}, 315 {.compatible = "allwinner,sun4i-apb1-clk", .data = &apb1_data,},
316 {} 316 {}
317}; 317};
318 318
319/* Matches for divider clocks */ 319/* Matches for divider clocks */
320static const __initconst struct of_device_id clk_div_match[] = { 320static const __initconst struct of_device_id clk_div_match[] = {
321 {.compatible = "allwinner,sunxi-axi-clk", .data = &axi_data,}, 321 {.compatible = "allwinner,sun4i-axi-clk", .data = &axi_data,},
322 {.compatible = "allwinner,sunxi-ahb-clk", .data = &ahb_data,}, 322 {.compatible = "allwinner,sun4i-ahb-clk", .data = &ahb_data,},
323 {.compatible = "allwinner,sunxi-apb0-clk", .data = &apb0_data,}, 323 {.compatible = "allwinner,sun4i-apb0-clk", .data = &apb0_data,},
324 {} 324 {}
325}; 325};
326 326
327/* Matches for mux clocks */ 327/* Matches for mux clocks */
328static const __initconst struct of_device_id clk_mux_match[] = { 328static const __initconst struct of_device_id clk_mux_match[] = {
329 {.compatible = "allwinner,sunxi-cpu-clk", .data = &cpu_data,}, 329 {.compatible = "allwinner,sun4i-cpu-clk", .data = &cpu_data,},
330 {.compatible = "allwinner,sunxi-apb1-mux-clk", .data = &apb1_mux_data,}, 330 {.compatible = "allwinner,sun4i-apb1-mux-clk", .data = &apb1_mux_data,},
331 {} 331 {}
332}; 332};
333 333