2014-02-05 08:42:28 +00:00
|
|
|
From 6b5cb5cada555c90562aed82e8891439a35009ab Mon Sep 17 00:00:00 2001
|
|
|
|
From: arokux <arokux@gmail.com>
|
|
|
|
Date: Sun, 6 Oct 2013 14:04:50 +0200
|
|
|
|
Subject: [PATCH] clk: sun5i: Add support for USB clocks
|
|
|
|
|
|
|
|
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
|
|
|
|
---
|
|
|
|
drivers/clk/sunxi/clk-sunxi.c | 5 +++++
|
|
|
|
1 file changed, 5 insertions(+)
|
|
|
|
|
|
|
|
--- a/drivers/clk/sunxi/clk-sunxi.c
|
|
|
|
+++ b/drivers/clk/sunxi/clk-sunxi.c
|
2014-02-13 13:27:14 +00:00
|
|
|
@@ -709,6 +709,10 @@ static const struct gates_data sun47i_us
|
2014-02-05 08:42:28 +00:00
|
|
|
.mask = {0x1C0},
|
|
|
|
};
|
|
|
|
|
|
|
|
+static const struct gates_data sun5i_usb_gates_data __initconst = {
|
|
|
|
+ .mask = {0x140},
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
static const struct gates_data sun5i_a10s_ahb_gates_data __initconst = {
|
|
|
|
.mask = {0x147667e7, 0x185915},
|
|
|
|
};
|
2014-02-13 13:27:14 +00:00
|
|
|
@@ -1028,6 +1032,7 @@ static const struct of_device_id clk_gat
|
2014-02-05 08:42:28 +00:00
|
|
|
{.compatible = "allwinner,sun47i-usb-gates-clk", .data = &sun47i_usb_gates_data,},
|
|
|
|
{.compatible = "allwinner,sun5i-a10s-ahb-gates-clk", .data = &sun5i_a10s_ahb_gates_data,},
|
|
|
|
{.compatible = "allwinner,sun5i-a13-ahb-gates-clk", .data = &sun5i_a13_ahb_gates_data,},
|
|
|
|
+ {.compatible = "allwinner,sun5i-usb-gates-clk", .data = &sun5i_usb_gates_data,},
|
|
|
|
{.compatible = "allwinner,sun6i-a31-ahb1-gates-clk", .data = &sun6i_a31_ahb1_gates_data,},
|
|
|
|
{.compatible = "allwinner,sun7i-a20-ahb-gates-clk", .data = &sun7i_a20_ahb_gates_data,},
|
|
|
|
{.compatible = "allwinner,sun4i-apb0-gates-clk", .data = &sun4i_apb0_gates_data,},
|