diff options
author | Chen-Yu Tsai <wens@csie.org> | 2015-11-28 22:03:07 -0500 |
---|---|---|
committer | Maxime Ripard <maxime.ripard@free-electrons.com> | 2015-12-01 06:15:47 -0500 |
commit | bfcba2ed83f00e06f82fca3edcb5d723acce74c1 (patch) | |
tree | 9220ae60e2fa04524c03db2a07960dffd1f032ad | |
parent | 7bec0200ac214b5cba44e2c2c4385815be4b9f00 (diff) |
clk: sunxi: Add sun9i A80 apbs gates support
This patch adds support for the PRCM apbs clock gates found on the
Allwinner A80 SoC.
Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
-rw-r--r-- | Documentation/devicetree/bindings/clock/sunxi.txt | 1 | ||||
-rw-r--r-- | drivers/clk/sunxi/clk-simple-gates.c | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/clock/sunxi.txt b/Documentation/devicetree/bindings/clock/sunxi.txt index a94bb56a0e9e..b6859ed6913f 100644 --- a/Documentation/devicetree/bindings/clock/sunxi.txt +++ b/Documentation/devicetree/bindings/clock/sunxi.txt | |||
@@ -55,6 +55,7 @@ Required properties: | |||
55 | "allwinner,sun9i-a80-apb1-gates-clk" - for the APB1 gates on A80 | 55 | "allwinner,sun9i-a80-apb1-gates-clk" - for the APB1 gates on A80 |
56 | "allwinner,sun6i-a31-apb2-gates-clk" - for the APB2 gates on A31 | 56 | "allwinner,sun6i-a31-apb2-gates-clk" - for the APB2 gates on A31 |
57 | "allwinner,sun8i-a23-apb2-gates-clk" - for the APB2 gates on A23 | 57 | "allwinner,sun8i-a23-apb2-gates-clk" - for the APB2 gates on A23 |
58 | "allwinner,sun9i-a80-apbs-gates-clk" - for the APBS gates on A80 | ||
58 | "allwinner,sun5i-a13-mbus-clk" - for the MBUS clock on A13 | 59 | "allwinner,sun5i-a13-mbus-clk" - for the MBUS clock on A13 |
59 | "allwinner,sun4i-a10-mmc-clk" - for the MMC clock | 60 | "allwinner,sun4i-a10-mmc-clk" - for the MMC clock |
60 | "allwinner,sun9i-a80-mmc-clk" - for mmc module clocks on A80 | 61 | "allwinner,sun9i-a80-mmc-clk" - for mmc module clocks on A80 |
diff --git a/drivers/clk/sunxi/clk-simple-gates.c b/drivers/clk/sunxi/clk-simple-gates.c index 0214c6548afd..c8acc0612c15 100644 --- a/drivers/clk/sunxi/clk-simple-gates.c +++ b/drivers/clk/sunxi/clk-simple-gates.c | |||
@@ -140,6 +140,8 @@ CLK_OF_DECLARE(sun9i_a80_apb0, "allwinner,sun9i-a80-apb0-gates-clk", | |||
140 | sunxi_simple_gates_init); | 140 | sunxi_simple_gates_init); |
141 | CLK_OF_DECLARE(sun9i_a80_apb1, "allwinner,sun9i-a80-apb1-gates-clk", | 141 | CLK_OF_DECLARE(sun9i_a80_apb1, "allwinner,sun9i-a80-apb1-gates-clk", |
142 | sunxi_simple_gates_init); | 142 | sunxi_simple_gates_init); |
143 | CLK_OF_DECLARE(sun9i_a80_apbs, "allwinner,sun9i-a80-apbs-gates-clk", | ||
144 | sunxi_simple_gates_init); | ||
143 | 145 | ||
144 | static const int sun4i_a10_ahb_critical_clocks[] __initconst = { | 146 | static const int sun4i_a10_ahb_critical_clocks[] __initconst = { |
145 | 14, /* ahb_sdram */ | 147 | 14, /* ahb_sdram */ |