upgrade 3.13 targets to 3.13.2, refresh patches
[openwrt/openwrt.git] / target / linux / sunxi / patches-3.13 / 170-clk-sunxi-add-support-for-usbclocks.patch
1 From 109e7dc17a77f84d56e76dea873363a8262bc806 Mon Sep 17 00:00:00 2001
2 From: arokux <arokux@gmail.com>
3 Date: Thu, 19 Sep 2013 21:59:32 +0200
4 Subject: [PATCH] clk: sunxi: Add support for USB clocks
5
6 Signed-off-by: Hans de Goede <hdegoede@redhat.com>
7 ---
8 drivers/clk/sunxi/clk-sunxi.c | 5 +++++
9 1 file changed, 5 insertions(+)
10
11 --- a/drivers/clk/sunxi/clk-sunxi.c
12 +++ b/drivers/clk/sunxi/clk-sunxi.c
13 @@ -705,6 +705,10 @@ static const struct gates_data sun4i_ahb
14 .mask = {0x7F77FFF, 0x14FB3F},
15 };
16
17 +static const struct gates_data sun47i_usb_gates_data __initconst = {
18 + .mask = {0x1C0},
19 +};
20 +
21 static const struct gates_data sun5i_a10s_ahb_gates_data __initconst = {
22 .mask = {0x147667e7, 0x185915},
23 };
24 @@ -1021,6 +1025,7 @@ static const struct of_device_id clk_mux
25 static const struct of_device_id clk_gates_match[] __initconst = {
26 {.compatible = "allwinner,sun4i-axi-gates-clk", .data = &sun4i_axi_gates_data,},
27 {.compatible = "allwinner,sun4i-ahb-gates-clk", .data = &sun4i_ahb_gates_data,},
28 + {.compatible = "allwinner,sun47i-usb-gates-clk", .data = &sun47i_usb_gates_data,},
29 {.compatible = "allwinner,sun5i-a10s-ahb-gates-clk", .data = &sun5i_a10s_ahb_gates_data,},
30 {.compatible = "allwinner,sun5i-a13-ahb-gates-clk", .data = &sun5i_a13_ahb_gates_data,},
31 {.compatible = "allwinner,sun6i-a31-ahb1-gates-clk", .data = &sun6i_a31_ahb1_gates_data,},