* [PATCH] clk: meson: make shipped controller configurable
@ 2020-08-28 15:47 Jerome Brunet
2020-09-10 7:52 ` Stephen Boyd
0 siblings, 1 reply; 3+ messages in thread
From: Jerome Brunet @ 2020-08-28 15:47 UTC (permalink / raw)
To: Neil Armstrong, linux-clk
Cc: Jerome Brunet, Kevin Hilman, linux-amlogic, devicetree, linux-kernel
Add the necessary so bits so unnecessary amlogic clock controllers can be
compiled out. This allows to save a few kB when necessary.
Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
---
drivers/clk/meson/Kconfig | 26 +++++++++++++++++---------
1 file changed, 17 insertions(+), 9 deletions(-)
diff --git a/drivers/clk/meson/Kconfig b/drivers/clk/meson/Kconfig
index dabeb435d067..034da203e8e0 100644
--- a/drivers/clk/meson/Kconfig
+++ b/drivers/clk/meson/Kconfig
@@ -1,4 +1,7 @@
# SPDX-License-Identifier: GPL-2.0-only
+menu "Clock support for Amlogic platforms"
+ depends on ARCH_MESON || COMPILE_TEST
+
config COMMON_CLK_MESON_REGMAP
tristate
select REGMAP
@@ -41,8 +44,9 @@ config COMMON_CLK_MESON_CPU_DYNDIV
select COMMON_CLK_MESON_REGMAP
config COMMON_CLK_MESON8B
- bool
- depends on ARCH_MESON
+ bool "Meson8 SoC Clock controller support"
+ depends on ARM
+ default y
select COMMON_CLK_MESON_REGMAP
select COMMON_CLK_MESON_MPLL
select COMMON_CLK_MESON_PLL
@@ -54,8 +58,9 @@ config COMMON_CLK_MESON8B
want peripherals and CPU frequency scaling to work.
config COMMON_CLK_GXBB
- bool
- depends on ARCH_MESON
+ bool "GXBB and GXL SoC clock controllers support"
+ depends on ARM64
+ default y
select COMMON_CLK_MESON_REGMAP
select COMMON_CLK_MESON_DUALDIV
select COMMON_CLK_MESON_VID_PLL_DIV
@@ -69,8 +74,9 @@ config COMMON_CLK_GXBB
Say Y if you want peripherals and CPU frequency scaling to work.
config COMMON_CLK_AXG
- bool
- depends on ARCH_MESON
+ bool "AXG SoC clock controllers support"
+ depends on ARM64
+ default y
select COMMON_CLK_MESON_REGMAP
select COMMON_CLK_MESON_DUALDIV
select COMMON_CLK_MESON_MPLL
@@ -84,7 +90,7 @@ config COMMON_CLK_AXG
config COMMON_CLK_AXG_AUDIO
tristate "Meson AXG Audio Clock Controller Driver"
- depends on ARCH_MESON
+ depends on ARM64
select COMMON_CLK_MESON_REGMAP
select COMMON_CLK_MESON_PHASE
select COMMON_CLK_MESON_SCLK_DIV
@@ -94,8 +100,9 @@ config COMMON_CLK_AXG_AUDIO
aka axg, Say Y if you want audio subsystem to work.
config COMMON_CLK_G12A
- bool
- depends on ARCH_MESON
+ bool "G12 and SM1 SoC clock controllers support"
+ depends on ARM64
+ default y
select COMMON_CLK_MESON_REGMAP
select COMMON_CLK_MESON_DUALDIV
select COMMON_CLK_MESON_MPLL
@@ -107,3 +114,4 @@ config COMMON_CLK_G12A
help
Support for the clock controller on Amlogic S905D2, S905X2 and S905Y2
devices, aka g12a. Say Y if you want peripherals to work.
+endmenu
--
2.25.4
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] clk: meson: make shipped controller configurable
2020-08-28 15:47 [PATCH] clk: meson: make shipped controller configurable Jerome Brunet
@ 2020-09-10 7:52 ` Stephen Boyd
2020-09-10 9:49 ` Jerome Brunet
0 siblings, 1 reply; 3+ messages in thread
From: Stephen Boyd @ 2020-09-10 7:52 UTC (permalink / raw)
To: Jerome Brunet, Neil Armstrong, linux-clk
Cc: Jerome Brunet, Kevin Hilman, linux-amlogic, devicetree, linux-kernel
Quoting Jerome Brunet (2020-08-28 08:47:35)
> Add the necessary so bits so unnecessary amlogic clock controllers can be
s/so//
> compiled out. This allows to save a few kB when necessary.
>
> Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
> ---
Reviewed-by: Stephen Boyd <sboyd@kernel.org>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] clk: meson: make shipped controller configurable
2020-09-10 7:52 ` Stephen Boyd
@ 2020-09-10 9:49 ` Jerome Brunet
0 siblings, 0 replies; 3+ messages in thread
From: Jerome Brunet @ 2020-09-10 9:49 UTC (permalink / raw)
To: Stephen Boyd, Neil Armstrong, linux-clk
Cc: Kevin Hilman, linux-amlogic, devicetree, linux-kernel
On Thu 10 Sep 2020 at 09:52, Stephen Boyd <sboyd@kernel.org> wrote:
> Quoting Jerome Brunet (2020-08-28 08:47:35)
>> Add the necessary so bits so unnecessary amlogic clock controllers can be
>
> s/so//
Fixed and applied
>
>> compiled out. This allows to save a few kB when necessary.
>>
>> Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
Thx
>> ---
>
> Reviewed-by: Stephen Boyd <sboyd@kernel.org>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2020-09-10 9:49 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-28 15:47 [PATCH] clk: meson: make shipped controller configurable Jerome Brunet
2020-09-10 7:52 ` Stephen Boyd
2020-09-10 9:49 ` Jerome Brunet
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).