linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] clk: bcm: Allow CLK_BCM2835 for ARCH_BRCMSTB
@ 2019-05-09 20:29 Florian Fainelli
  2019-05-09 20:29 ` [PATCH 1/2] clk: bcm: Make BCM2835 clock drivers selectable Florian Fainelli
  2019-05-09 20:29 ` [PATCH 2/2] clk: bcm: Allow CLK_BCM2835 for ARCH_BRCMSTB Florian Fainelli
  0 siblings, 2 replies; 6+ messages in thread
From: Florian Fainelli @ 2019-05-09 20:29 UTC (permalink / raw)
  To: linux-arm-kernel
  Cc: Florian Fainelli, Michael Turquette, Stephen Boyd,
	open list:COMMON CLK FRAMEWORK, open list,
	bcm-kernel-feedback-list, wahrenst, eric, stefan.wahren

Hi Stephen,

This small patch series allows making use of the CLK_BCM2835 driver(s)
on ARCH_BRCMSTB since we have newer chips that make use of the CPRMAN
block that this driver supports.

Thanks!

Florian Fainelli (2):
  clk: bcm: Make BCM2835 clock drivers selectable
  clk: bcm: Allow CLK_BCM2835 for ARCH_BRCMSTB

 drivers/clk/bcm/Kconfig  | 9 +++++++++
 drivers/clk/bcm/Makefile | 4 ++--
 2 files changed, 11 insertions(+), 2 deletions(-)

-- 
2.17.1


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [PATCH 1/2] clk: bcm: Make BCM2835 clock drivers selectable
  2019-05-09 20:29 [PATCH 0/2] clk: bcm: Allow CLK_BCM2835 for ARCH_BRCMSTB Florian Fainelli
@ 2019-05-09 20:29 ` Florian Fainelli
  2019-05-09 22:48   ` Eric Anholt
  2019-06-06 20:35   ` Stephen Boyd
  2019-05-09 20:29 ` [PATCH 2/2] clk: bcm: Allow CLK_BCM2835 for ARCH_BRCMSTB Florian Fainelli
  1 sibling, 2 replies; 6+ messages in thread
From: Florian Fainelli @ 2019-05-09 20:29 UTC (permalink / raw)
  To: linux-arm-kernel
  Cc: Florian Fainelli, Michael Turquette, Stephen Boyd,
	open list:COMMON CLK FRAMEWORK, open list,
	bcm-kernel-feedback-list, wahrenst, eric, stefan.wahren

Make the BCM2835 clock driver selectable by other
architectures/platforms. ARCH_BRCMSTB will be selecting that driver in
the next commit since new chips like 7211 use the same CPRMAN clock
controller that this driver supports.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
---
 drivers/clk/bcm/Kconfig  | 9 +++++++++
 drivers/clk/bcm/Makefile | 4 ++--
 2 files changed, 11 insertions(+), 2 deletions(-)

diff --git a/drivers/clk/bcm/Kconfig b/drivers/clk/bcm/Kconfig
index 4c4bd85f707c..0b873e23f128 100644
--- a/drivers/clk/bcm/Kconfig
+++ b/drivers/clk/bcm/Kconfig
@@ -1,3 +1,12 @@
+config CLK_BCM2835
+	bool "Broadcom BCM2835 clock support"
+	depends on ARCH_BCM2835 || COMPILE_TEST
+	depends on COMMON_CLK
+	default ARCH_BCM2835
+	help
+	  Enable common clock framework support for Broadcom BCM2835
+	  SoCs.
+
 config CLK_BCM_63XX
 	bool "Broadcom BCM63xx clock support"
 	depends on ARCH_BCM_63XX || COMPILE_TEST
diff --git a/drivers/clk/bcm/Makefile b/drivers/clk/bcm/Makefile
index 002661d39128..e924f25bc6c8 100644
--- a/drivers/clk/bcm/Makefile
+++ b/drivers/clk/bcm/Makefile
@@ -5,8 +5,8 @@ obj-$(CONFIG_CLK_BCM_KONA)	+= clk-kona-setup.o
 obj-$(CONFIG_CLK_BCM_KONA)	+= clk-bcm281xx.o
 obj-$(CONFIG_CLK_BCM_KONA)	+= clk-bcm21664.o
 obj-$(CONFIG_COMMON_CLK_IPROC)	+= clk-iproc-armpll.o clk-iproc-pll.o clk-iproc-asiu.o
-obj-$(CONFIG_ARCH_BCM2835)	+= clk-bcm2835.o
-obj-$(CONFIG_ARCH_BCM2835)	+= clk-bcm2835-aux.o
+obj-$(CONFIG_CLK_BCM2835)	+= clk-bcm2835.o
+obj-$(CONFIG_CLK_BCM2835)	+= clk-bcm2835-aux.o
 obj-$(CONFIG_ARCH_BCM_53573)	+= clk-bcm53573-ilp.o
 obj-$(CONFIG_CLK_BCM_CYGNUS)	+= clk-cygnus.o
 obj-$(CONFIG_CLK_BCM_HR2)	+= clk-hr2.o
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [PATCH 2/2] clk: bcm: Allow CLK_BCM2835 for ARCH_BRCMSTB
  2019-05-09 20:29 [PATCH 0/2] clk: bcm: Allow CLK_BCM2835 for ARCH_BRCMSTB Florian Fainelli
  2019-05-09 20:29 ` [PATCH 1/2] clk: bcm: Make BCM2835 clock drivers selectable Florian Fainelli
@ 2019-05-09 20:29 ` Florian Fainelli
  2019-06-06 20:36   ` Stephen Boyd
  1 sibling, 1 reply; 6+ messages in thread
From: Florian Fainelli @ 2019-05-09 20:29 UTC (permalink / raw)
  To: linux-arm-kernel
  Cc: Florian Fainelli, Michael Turquette, Stephen Boyd,
	open list:COMMON CLK FRAMEWORK, open list,
	bcm-kernel-feedback-list, wahrenst, eric, stefan.wahren

ARCH_BRCMSTB needs to use the BCM2835 clock driver for chips like
BCM7211 which adopted that clock controller, make that possible and the
driver default to be enabled for ARCH_BRCMSTB.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
---
 drivers/clk/bcm/Kconfig | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/clk/bcm/Kconfig b/drivers/clk/bcm/Kconfig
index 0b873e23f128..0eb281d597fc 100644
--- a/drivers/clk/bcm/Kconfig
+++ b/drivers/clk/bcm/Kconfig
@@ -1,8 +1,8 @@
 config CLK_BCM2835
 	bool "Broadcom BCM2835 clock support"
-	depends on ARCH_BCM2835 || COMPILE_TEST
+	depends on ARCH_BCM2835 || ARCH_BRCMSTB || COMPILE_TEST
 	depends on COMMON_CLK
-	default ARCH_BCM2835
+	default ARCH_BCM2835 || ARCH_BRCMSTB
 	help
 	  Enable common clock framework support for Broadcom BCM2835
 	  SoCs.
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* Re: [PATCH 1/2] clk: bcm: Make BCM2835 clock drivers selectable
  2019-05-09 20:29 ` [PATCH 1/2] clk: bcm: Make BCM2835 clock drivers selectable Florian Fainelli
@ 2019-05-09 22:48   ` Eric Anholt
  2019-06-06 20:35   ` Stephen Boyd
  1 sibling, 0 replies; 6+ messages in thread
From: Eric Anholt @ 2019-05-09 22:48 UTC (permalink / raw)
  To: Florian Fainelli, linux-arm-kernel
  Cc: Florian Fainelli, Michael Turquette, Stephen Boyd,
	open list:COMMON CLK FRAMEWORK, open list,
	bcm-kernel-feedback-list, wahrenst, stefan.wahren

[-- Attachment #1: Type: text/plain, Size: 344 bytes --]

Florian Fainelli <f.fainelli@gmail.com> writes:

> Make the BCM2835 clock driver selectable by other
> architectures/platforms. ARCH_BRCMSTB will be selecting that driver in
> the next commit since new chips like 7211 use the same CPRMAN clock
> controller that this driver supports.

These two are:

Reviewed-by: Eric Anholt <eric@anholt.net>

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH 1/2] clk: bcm: Make BCM2835 clock drivers selectable
  2019-05-09 20:29 ` [PATCH 1/2] clk: bcm: Make BCM2835 clock drivers selectable Florian Fainelli
  2019-05-09 22:48   ` Eric Anholt
@ 2019-06-06 20:35   ` Stephen Boyd
  1 sibling, 0 replies; 6+ messages in thread
From: Stephen Boyd @ 2019-06-06 20:35 UTC (permalink / raw)
  To: Florian Fainelli, linux-arm-kernel
  Cc: Florian Fainelli, Michael Turquette,
	open list:COMMON CLK FRAMEWORK, open list,
	bcm-kernel-feedback-list, wahrenst, eric, stefan.wahren

Quoting Florian Fainelli (2019-05-09 13:29:55)
> Make the BCM2835 clock driver selectable by other
> architectures/platforms. ARCH_BRCMSTB will be selecting that driver in
> the next commit since new chips like 7211 use the same CPRMAN clock
> controller that this driver supports.
> 
> Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
> ---
>  drivers/clk/bcm/Kconfig  | 9 +++++++++
>  drivers/clk/bcm/Makefile | 4 ++--
>  2 files changed, 11 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/clk/bcm/Kconfig b/drivers/clk/bcm/Kconfig
> index 4c4bd85f707c..0b873e23f128 100644
> --- a/drivers/clk/bcm/Kconfig
> +++ b/drivers/clk/bcm/Kconfig
> @@ -1,3 +1,12 @@
> +config CLK_BCM2835
> +       bool "Broadcom BCM2835 clock support"
> +       depends on ARCH_BCM2835 || COMPILE_TEST
> +       depends on COMMON_CLK

This whole thing is inside the COMMON_CLK menu so this line probably
doesn't matter. Anyway, I'm just going to apply this to clk-next.

> +       default ARCH_BCM2835
> +       help
> +         Enable common clock framework support for Broadcom BCM2835
> +         SoCs.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH 2/2] clk: bcm: Allow CLK_BCM2835 for ARCH_BRCMSTB
  2019-05-09 20:29 ` [PATCH 2/2] clk: bcm: Allow CLK_BCM2835 for ARCH_BRCMSTB Florian Fainelli
@ 2019-06-06 20:36   ` Stephen Boyd
  0 siblings, 0 replies; 6+ messages in thread
From: Stephen Boyd @ 2019-06-06 20:36 UTC (permalink / raw)
  To: Florian Fainelli, linux-arm-kernel
  Cc: Florian Fainelli, Michael Turquette,
	open list:COMMON CLK FRAMEWORK, open list,
	bcm-kernel-feedback-list, wahrenst, eric, stefan.wahren

Quoting Florian Fainelli (2019-05-09 13:29:56)
> ARCH_BRCMSTB needs to use the BCM2835 clock driver for chips like
> BCM7211 which adopted that clock controller, make that possible and the
> driver default to be enabled for ARCH_BRCMSTB.
> 
> Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
> ---

Applied to clk-next


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2019-06-06 20:36 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-05-09 20:29 [PATCH 0/2] clk: bcm: Allow CLK_BCM2835 for ARCH_BRCMSTB Florian Fainelli
2019-05-09 20:29 ` [PATCH 1/2] clk: bcm: Make BCM2835 clock drivers selectable Florian Fainelli
2019-05-09 22:48   ` Eric Anholt
2019-06-06 20:35   ` Stephen Boyd
2019-05-09 20:29 ` [PATCH 2/2] clk: bcm: Allow CLK_BCM2835 for ARCH_BRCMSTB Florian Fainelli
2019-06-06 20:36   ` Stephen Boyd

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).