aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Documentation/devicetree/bindings/clock/sunxi.txt1
-rw-r--r--drivers/clk/sunxi/clk-sunxi.c7
2 files changed, 2 insertions, 6 deletions
diff --git a/Documentation/devicetree/bindings/clock/sunxi.txt b/Documentation/devicetree/bindings/clock/sunxi.txt
index 0455cb9caa97..6ddcf6e10eb8 100644
--- a/Documentation/devicetree/bindings/clock/sunxi.txt
+++ b/Documentation/devicetree/bindings/clock/sunxi.txt
@@ -45,7 +45,6 @@ Required properties:
45 "allwinner,sun9i-a80-apb0-gates-clk" - for the APB0 gates on A80 45 "allwinner,sun9i-a80-apb0-gates-clk" - for the APB0 gates on A80
46 "allwinner,sun4i-a10-apb1-clk" - for the APB1 clock 46 "allwinner,sun4i-a10-apb1-clk" - for the APB1 clock
47 "allwinner,sun9i-a80-apb1-clk" - for the APB1 bus clock on A80 47 "allwinner,sun9i-a80-apb1-clk" - for the APB1 bus clock on A80
48 "allwinner,sun4i-a10-apb1-mux-clk" - for the APB1 clock muxing
49 "allwinner,sun4i-a10-apb1-gates-clk" - for the APB1 gates on A10 48 "allwinner,sun4i-a10-apb1-gates-clk" - for the APB1 gates on A10
50 "allwinner,sun5i-a13-apb1-gates-clk" - for the APB1 gates on A13 49 "allwinner,sun5i-a13-apb1-gates-clk" - for the APB1 gates on A13
51 "allwinner,sun5i-a10s-apb1-gates-clk" - for the APB1 gates on A10s 50 "allwinner,sun5i-a10s-apb1-gates-clk" - for the APB1 gates on A10s
diff --git a/drivers/clk/sunxi/clk-sunxi.c b/drivers/clk/sunxi/clk-sunxi.c
index 20f47c68a946..4133e278212b 100644
--- a/drivers/clk/sunxi/clk-sunxi.c
+++ b/drivers/clk/sunxi/clk-sunxi.c
@@ -507,6 +507,8 @@ static const struct factors_data sun6i_a31_pll6_data __initconst = {
507}; 507};
508 508
509static const struct factors_data sun4i_apb1_data __initconst = { 509static const struct factors_data sun4i_apb1_data __initconst = {
510 .mux = 24,
511 .muxmask = BIT(1) | BIT(0),
510 .table = &sun4i_apb1_config, 512 .table = &sun4i_apb1_config,
511 .getter = sun4i_get_apb1_factors, 513 .getter = sun4i_get_apb1_factors,
512}; 514};
@@ -545,10 +547,6 @@ static const struct mux_data sun6i_a31_ahb1_mux_data __initconst = {
545 .shift = 12, 547 .shift = 12,
546}; 548};
547 549
548static const struct mux_data sun4i_apb1_mux_data __initconst = {
549 .shift = 24,
550};
551
552static void __init sunxi_mux_clk_setup(struct device_node *node, 550static void __init sunxi_mux_clk_setup(struct device_node *node,
553 struct mux_data *data) 551 struct mux_data *data)
554{ 552{
@@ -1109,7 +1107,6 @@ static const struct of_device_id clk_divs_match[] __initconst = {
1109/* Matches for mux clocks */ 1107/* Matches for mux clocks */
1110static const struct of_device_id clk_mux_match[] __initconst = { 1108static const struct of_device_id clk_mux_match[] __initconst = {
1111 {.compatible = "allwinner,sun4i-a10-cpu-clk", .data = &sun4i_cpu_mux_data,}, 1109 {.compatible = "allwinner,sun4i-a10-cpu-clk", .data = &sun4i_cpu_mux_data,},
1112 {.compatible = "allwinner,sun4i-a10-apb1-mux-clk", .data = &sun4i_apb1_mux_data,},
1113 {.compatible = "allwinner,sun6i-a31-ahb1-mux-clk", .data = &sun6i_a31_ahb1_mux_data,}, 1110 {.compatible = "allwinner,sun6i-a31-ahb1-mux-clk", .data = &sun6i_a31_ahb1_mux_data,},
1114 {} 1111 {}
1115}; 1112};