Message ID | 20210215115710.3762276-1-daniel@0x0f.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | [1/2] clk: mstar: Allow MStar clk drivers to be compile tested | expand |
Quoting Daniel Palmer (2021-02-15 03:57:09) > Allow COMPILE_TEST to also build the MStar clk drivers > instead of only building them when ARCH_MSTARV7 is selected. > > Signed-off-by: Daniel Palmer <daniel@0x0f.com> > Suggested-by: Stephen Boyd <sboyd@kernel.org> > --- Applied to clk-next
Quoting Daniel Palmer (2021-02-15 03:57:09) > Allow COMPILE_TEST to also build the MStar clk drivers > instead of only building them when ARCH_MSTARV7 is selected. > > Signed-off-by: Daniel Palmer <daniel@0x0f.com> > Suggested-by: Stephen Boyd <sboyd@kernel.org> > --- > drivers/clk/Makefile | 2 +- > drivers/clk/mstar/Kconfig | 7 ++++++- > 2 files changed, 7 insertions(+), 2 deletions(-) > > diff --git a/drivers/clk/Makefile b/drivers/clk/Makefile > index 7fed7e5944cd..e5e23a44fbe9 100644 > --- a/drivers/clk/Makefile > +++ b/drivers/clk/Makefile > @@ -95,7 +95,7 @@ obj-$(CONFIG_MACH_PIC32) += microchip/ > ifeq ($(CONFIG_COMMON_CLK), y) > obj-$(CONFIG_ARCH_MMP) += mmp/ > endif > -obj-$(CONFIG_ARCH_MSTARV7) += mstar/ > +obj-y += mstar/ > obj-y += mvebu/ > obj-$(CONFIG_ARCH_MXS) += mxs/ > obj-$(CONFIG_COMMON_CLK_NXP) += nxp/ > diff --git a/drivers/clk/mstar/Kconfig b/drivers/clk/mstar/Kconfig > index 23765edde3af..eab8f7dcaa90 100644 > --- a/drivers/clk/mstar/Kconfig > +++ b/drivers/clk/mstar/Kconfig > @@ -1,5 +1,10 @@ > # SPDX-License-Identifier: GPL-2.0-only > config MSTAR_MSC313_MPLL > - bool > + bool "MStar MPLL driver" > + depends on ARCH_MSTARV7 || COMPILE_TEST > + default ARCH_MSTARV7 > select REGMAP I've also removed this select REGMAP. It isn't necessary as this selects REGMAP_MMIO. > select REGMAP_MMIO > + help > + Support for the MPLL PLL and dividers block present on > + MStar/Sigmastar SoCs.
diff --git a/drivers/clk/Makefile b/drivers/clk/Makefile index 7fed7e5944cd..e5e23a44fbe9 100644 --- a/drivers/clk/Makefile +++ b/drivers/clk/Makefile @@ -95,7 +95,7 @@ obj-$(CONFIG_MACH_PIC32) += microchip/ ifeq ($(CONFIG_COMMON_CLK), y) obj-$(CONFIG_ARCH_MMP) += mmp/ endif -obj-$(CONFIG_ARCH_MSTARV7) += mstar/ +obj-y += mstar/ obj-y += mvebu/ obj-$(CONFIG_ARCH_MXS) += mxs/ obj-$(CONFIG_COMMON_CLK_NXP) += nxp/ diff --git a/drivers/clk/mstar/Kconfig b/drivers/clk/mstar/Kconfig index 23765edde3af..eab8f7dcaa90 100644 --- a/drivers/clk/mstar/Kconfig +++ b/drivers/clk/mstar/Kconfig @@ -1,5 +1,10 @@ # SPDX-License-Identifier: GPL-2.0-only config MSTAR_MSC313_MPLL - bool + bool "MStar MPLL driver" + depends on ARCH_MSTARV7 || COMPILE_TEST + default ARCH_MSTARV7 select REGMAP select REGMAP_MMIO + help + Support for the MPLL PLL and dividers block present on + MStar/Sigmastar SoCs.
Allow COMPILE_TEST to also build the MStar clk drivers instead of only building them when ARCH_MSTARV7 is selected. Signed-off-by: Daniel Palmer <daniel@0x0f.com> Suggested-by: Stephen Boyd <sboyd@kernel.org> --- drivers/clk/Makefile | 2 +- drivers/clk/mstar/Kconfig | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-)