linux/arch/sh/boards
Stephen Boyd bbd7ffdbef clk: Allow the common clk framework to be selectable
Enable build testing and configuration control of the common clk
framework so that more code coverage and testing can be done on the
common clk framework across various architectures. This also nicely
removes the requirement that architectures must select the framework
when they don't use it in architecture code.

There's one snag with doing this, and that's making sure that randconfig
builds don't select this option when some architecture or platform
implements 'struct clk' outside of the common clk framework. Introduce a
new config option 'HAVE_LEGACY_CLK' to indicate those platforms that
haven't migrated to the common clk framework and therefore shouldn't be
allowed to select this new config option. Also add a note that we hope
one day to remove this config entirely.

Based on a patch by Mark Brown <broonie@kernel.org>.

Cc: Mark Brown <broonie@kernel.org>
Cc: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: Mark Salter <msalter@redhat.com>
Cc: Aurelien Jacquiot <jacquiot.aurelien@gmail.com>
Cc: Jiaxun Yang <jiaxun.yang@flygoat.com>
Cc: Guan Xuetao <gxt@pku.edu.cn>
Cc: Russell King <linux@armlinux.org.uk>
Cc: Arnd Bergmann <arnd@arndb.de>
Cc: Yoshinori Sato <ysato@users.sourceforge.jp>
Cc: Rich Felker <dalias@libc.org>
Cc: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Cc: <linux-mips@vger.kernel.org>
Cc: <linux-c6x-dev@linux-c6x.org>
Cc: <linux-m68k@lists.linux-m68k.org>
Cc: <linux-arm-kernel@lists.infradead.org>
Cc: <linux-sh@vger.kernel.org>
Link: https://lore.kernel.org/r/1470915049-15249-1-git-send-email-broonie@kernel.org
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Link: https://lkml.kernel.org/r/20200409064416.83340-8-sboyd@kernel.org
Reviewed-by: Mark Brown <broonie@kernel.org>
Reviewed-by: Arnd Bergmann <arnd@arndb.de>
2020-05-05 12:34:11 -07:00
..
mach-ap325rxa driver core: initialize a default DMA mask for platform device 2019-08-22 09:41:55 -07:00
mach-cayman sh: Replace setup_irq() by request_irq() 2020-03-29 21:03:43 +02:00
mach-dreamcast arch/sh/boards/mach-dreamcast/irq.c: Remove duplicate header 2019-05-14 09:47:44 -07:00
mach-ecovec24 sh: ecovec24: don't set unused fields in platform data 2019-11-11 11:34:01 +00:00
mach-highlander sh: boards: convert to SPDX identifiers 2018-12-28 12:11:44 -08:00
mach-hp6xx sh: boards: convert to SPDX identifiers 2018-12-28 12:11:44 -08:00
mach-kfr2r09 driver core: initialize a default DMA mask for platform device 2019-08-22 09:41:55 -07:00
mach-landisk sh: boards: convert to SPDX identifiers 2018-12-28 12:11:44 -08:00
mach-lboxre2 sh: boards: convert to SPDX identifiers 2018-12-28 12:11:44 -08:00
mach-microdev treewide: replace #include <asm/sizes.h> with #include <linux/sizes.h> 2019-05-14 19:52:52 -07:00
mach-migor driver core: initialize a default DMA mask for platform device 2019-08-22 09:41:55 -07:00
mach-r2d sh: boards: convert to SPDX identifiers 2018-12-28 12:11:44 -08:00
mach-rsk sh: boards: convert to SPDX identifiers 2018-12-28 12:11:44 -08:00
mach-sdk7780 sh: boards: convert to SPDX identifiers 2018-12-28 12:11:44 -08:00
mach-sdk7786 remove ioremap_nocache and devm_ioremap_nocache 2020-01-06 09:45:59 +01:00
mach-se driver core: initialize a default DMA mask for platform device 2019-08-22 09:41:55 -07:00
mach-sh03 Merge branch 'akpm' (patches from Andrew) 2018-12-28 16:55:46 -08:00
mach-sh7763rdp sh: boards: convert to SPDX identifiers 2018-12-28 12:11:44 -08:00
mach-x3proto sh: boards: convert to SPDX identifiers 2018-12-28 12:11:44 -08:00
board-apsh4a3a.c treewide: replace #include <asm/sizes.h> with #include <linux/sizes.h> 2019-05-14 19:52:52 -07:00
board-apsh4ad0a.c treewide: replace #include <asm/sizes.h> with #include <linux/sizes.h> 2019-05-14 19:52:52 -07:00
board-edosk7705.c treewide: replace #include <asm/sizes.h> with #include <linux/sizes.h> 2019-05-14 19:52:52 -07:00
board-edosk7760.c treewide: replace #include <asm/sizes.h> with #include <linux/sizes.h> 2019-05-14 19:52:52 -07:00
board-espt.c treewide: replace #include <asm/sizes.h> with #include <linux/sizes.h> 2019-05-14 19:52:52 -07:00
board-magicpanelr2.c sh: boards: convert to SPDX identifiers 2018-12-28 12:11:44 -08:00
board-polaris.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
board-secureedge5410.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
board-sh2007.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
board-sh7757lcr.c sh: boards: convert to SPDX identifiers 2018-12-28 12:11:44 -08:00
board-sh7785lcr.c remove ioremap_nocache and devm_ioremap_nocache 2020-01-06 09:45:59 +01:00
board-shmin.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
board-titan.c sh: boards: convert to SPDX identifiers 2018-12-28 12:11:44 -08:00
board-urquell.c treewide: replace #include <asm/sizes.h> with #include <linux/sizes.h> 2019-05-14 19:52:52 -07:00
Kconfig clk: Allow the common clk framework to be selectable 2020-05-05 12:34:11 -07:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
of-generic.c sh: fix multiple function definition build errors 2019-04-05 16:02:31 -10:00