diff options
author | Stephen Boyd <sboyd@codeaurora.org> | 2015-11-20 18:47:07 -0500 |
---|---|---|
committer | Stephen Boyd <sboyd@codeaurora.org> | 2015-11-20 18:47:07 -0500 |
commit | f49afecc8213c88435f44641d7f0ac8dca403bc7 (patch) | |
tree | 6aad97e2da1aae3f63a9e7e52ff49f6f0b76f3c6 | |
parent | 329cabcecf94d8d7821e729dda284ba9dec44c87 (diff) | |
parent | addc3ba666fc5439a05f33263cc52f2c3f77af15 (diff) |
Merge branch 'clk-bcm63xx' into clk-next
* clk-bcm63xx:
clk: bcm: Add BCM63138 clock support
clk: iproc: Extend binding to cover BCM63138
-rw-r--r-- | Documentation/devicetree/bindings/clock/brcm,iproc-clocks.txt | 5 | ||||
-rw-r--r-- | drivers/clk/bcm/Kconfig | 10 | ||||
-rw-r--r-- | drivers/clk/bcm/Makefile | 1 | ||||
-rw-r--r-- | drivers/clk/bcm/clk-bcm63xx.c | 22 |
4 files changed, 38 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/clock/brcm,iproc-clocks.txt b/Documentation/devicetree/bindings/clock/brcm,iproc-clocks.txt index ede65a55e21b..0b35e71b39e8 100644 --- a/Documentation/devicetree/bindings/clock/brcm,iproc-clocks.txt +++ b/Documentation/devicetree/bindings/clock/brcm,iproc-clocks.txt | |||
@@ -208,3 +208,8 @@ These clock IDs are defined in: | |||
208 | ch3_unused lcpll_ports 4 BCM_NS2_LCPLL_PORTS_CH3_UNUSED | 208 | ch3_unused lcpll_ports 4 BCM_NS2_LCPLL_PORTS_CH3_UNUSED |
209 | ch4_unused lcpll_ports 5 BCM_NS2_LCPLL_PORTS_CH4_UNUSED | 209 | ch4_unused lcpll_ports 5 BCM_NS2_LCPLL_PORTS_CH4_UNUSED |
210 | ch5_unused lcpll_ports 6 BCM_NS2_LCPLL_PORTS_CH5_UNUSED | 210 | ch5_unused lcpll_ports 6 BCM_NS2_LCPLL_PORTS_CH5_UNUSED |
211 | |||
212 | BCM63138 | ||
213 | -------- | ||
214 | PLL and leaf clock compatible strings for BCM63138 are: | ||
215 | "brcm,bcm63138-armpll" | ||
diff --git a/drivers/clk/bcm/Kconfig b/drivers/clk/bcm/Kconfig index 85260fb96b36..f2878459199a 100644 --- a/drivers/clk/bcm/Kconfig +++ b/drivers/clk/bcm/Kconfig | |||
@@ -1,3 +1,13 @@ | |||
1 | config CLK_BCM_63XX | ||
2 | bool "Broadcom BCM63xx clock support" | ||
3 | depends on ARCH_BCM_63XX || COMPILE_TEST | ||
4 | depends on COMMON_CLK | ||
5 | select COMMON_CLK_IPROC | ||
6 | default ARCH_BCM_63XX | ||
7 | help | ||
8 | Enable common clock framework support for Broadcom BCM63xx DSL SoCs | ||
9 | based on the ARM architecture | ||
10 | |||
1 | config CLK_BCM_KONA | 11 | config CLK_BCM_KONA |
2 | bool "Broadcom Kona CCU clock support" | 12 | bool "Broadcom Kona CCU clock support" |
3 | depends on ARCH_BCM_MOBILE || COMPILE_TEST | 13 | depends on ARCH_BCM_MOBILE || COMPILE_TEST |
diff --git a/drivers/clk/bcm/Makefile b/drivers/clk/bcm/Makefile index 3fc95060d875..247c26750d8b 100644 --- a/drivers/clk/bcm/Makefile +++ b/drivers/clk/bcm/Makefile | |||
@@ -1,3 +1,4 @@ | |||
1 | obj-$(CONFIG_CLK_BCM_63XX) += clk-bcm63xx.o | ||
1 | obj-$(CONFIG_CLK_BCM_KONA) += clk-kona.o | 2 | obj-$(CONFIG_CLK_BCM_KONA) += clk-kona.o |
2 | obj-$(CONFIG_CLK_BCM_KONA) += clk-kona-setup.o | 3 | obj-$(CONFIG_CLK_BCM_KONA) += clk-kona-setup.o |
3 | obj-$(CONFIG_CLK_BCM_KONA) += clk-bcm281xx.o | 4 | obj-$(CONFIG_CLK_BCM_KONA) += clk-bcm281xx.o |
diff --git a/drivers/clk/bcm/clk-bcm63xx.c b/drivers/clk/bcm/clk-bcm63xx.c new file mode 100644 index 000000000000..fbc17ae5ff2b --- /dev/null +++ b/drivers/clk/bcm/clk-bcm63xx.c | |||
@@ -0,0 +1,22 @@ | |||
1 | /* | ||
2 | * Copyright (C) 2015 Broadcom Corporation | ||
3 | * | ||
4 | * This program is free software; you can redistribute it and/or | ||
5 | * modify it under the terms of the GNU General Public License as | ||
6 | * published by the Free Software Foundation version 2. | ||
7 | * | ||
8 | * This program is distributed "as is" WITHOUT ANY WARRANTY of any | ||
9 | * kind, whether express or implied; without even the implied warranty | ||
10 | * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
11 | * GNU General Public License for more details. | ||
12 | */ | ||
13 | #include <linux/init.h> | ||
14 | #include <linux/clk-provider.h> | ||
15 | #include <linux/of.h> | ||
16 | #include "clk-iproc.h" | ||
17 | |||
18 | static void __init bcm63138_armpll_init(struct device_node *node) | ||
19 | { | ||
20 | iproc_armpll_setup(node); | ||
21 | } | ||
22 | CLK_OF_DECLARE(bcm63138_armpll, "brcm,bcm63138-armpll", bcm63138_armpll_init); | ||