aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/clk
diff options
context:
space:
mode:
authorMaxime Ripard <maxime.ripard@free-electrons.com>2014-05-13 11:44:15 -0400
committerMaxime Ripard <maxime.ripard@free-electrons.com>2014-06-11 03:58:43 -0400
commite0e7943c55984e7dbae3d7d4c65f6b7ca2e61b81 (patch)
tree93dcb75d5095e9bca81e44fbb752440b0504e6e9 /drivers/clk
parent3f6eec9969d24f91a3909d51e86e007ca5efd4c4 (diff)
clk: sunxi: Implement A31 USB clock
The A31 USB clock slightly differ from its older counterparts, mostly because it has a different gate for each PHY, while the older one had a single gate for all the phy. Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com> Reviewed-by: Hans de Goede <hdegoede@redhat.com> Acked-by: Mike Turquette <mturquette@linaro.org> Signed-off-by: Emilio López <emilio@elopez.com.ar>
Diffstat (limited to 'drivers/clk')
-rw-r--r--drivers/clk/sunxi/clk-sunxi.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/clk/sunxi/clk-sunxi.c b/drivers/clk/sunxi/clk-sunxi.c
index 426483422d3d..bf5075e4b20f 100644
--- a/drivers/clk/sunxi/clk-sunxi.c
+++ b/drivers/clk/sunxi/clk-sunxi.c
@@ -1009,6 +1009,11 @@ static const struct gates_data sun5i_a13_usb_gates_data __initconst = {
1009 .reset_mask = 0x03, 1009 .reset_mask = 0x03,
1010}; 1010};
1011 1011
1012static const struct gates_data sun6i_a31_usb_gates_data __initconst = {
1013 .mask = { BIT(18) | BIT(17) | BIT(16) | BIT(10) | BIT(9) | BIT(8) },
1014 .reset_mask = BIT(2) | BIT(1) | BIT(0),
1015};
1016
1012static void __init sunxi_gates_clk_setup(struct device_node *node, 1017static void __init sunxi_gates_clk_setup(struct device_node *node,
1013 struct gates_data *data) 1018 struct gates_data *data)
1014{ 1019{
@@ -1304,6 +1309,7 @@ static const struct of_device_id clk_gates_match[] __initconst = {
1304 {.compatible = "allwinner,sun6i-a31-apb2-gates-clk", .data = &sun6i_a31_apb2_gates_data,}, 1309 {.compatible = "allwinner,sun6i-a31-apb2-gates-clk", .data = &sun6i_a31_apb2_gates_data,},
1305 {.compatible = "allwinner,sun4i-a10-usb-clk", .data = &sun4i_a10_usb_gates_data,}, 1310 {.compatible = "allwinner,sun4i-a10-usb-clk", .data = &sun4i_a10_usb_gates_data,},
1306 {.compatible = "allwinner,sun5i-a13-usb-clk", .data = &sun5i_a13_usb_gates_data,}, 1311 {.compatible = "allwinner,sun5i-a13-usb-clk", .data = &sun5i_a13_usb_gates_data,},
1312 {.compatible = "allwinner,sun6i-a31-usb-clk", .data = &sun6i_a31_usb_gates_data,},
1307 {} 1313 {}
1308}; 1314};
1309 1315