From 65f1bbf678ed4a9c95c5664815954cb577400f4a Mon Sep 17 00:00:00 2001 From: Marek Vasut Date: Mon, 8 Jan 2018 16:32:38 +0100 Subject: [PATCH] clk: renesas: Make clock tables Kconfig configurable Add Kconfig entries for each SoC clock table, so they can be compiled in or out at build time. This can reduce the size of the binary if desired. Signed-off-by: Marek Vasut Cc: Nobuhiro Iwamatsu --- drivers/clk/renesas/Kconfig | 28 ++++++++++++++++++++++++++++ drivers/clk/renesas/Makefile | 10 +++++----- 2 files changed, 33 insertions(+), 5 deletions(-) diff --git a/drivers/clk/renesas/Kconfig b/drivers/clk/renesas/Kconfig index 8eca88c6ee..d805f8b36e 100644 --- a/drivers/clk/renesas/Kconfig +++ b/drivers/clk/renesas/Kconfig @@ -10,3 +10,31 @@ config CLK_RCAR_GEN3 depends on CLK_RENESAS help Enable this to support the clocks on Renesas RCar Gen3 SoC. + +config CLK_R8A7795 + bool "Renesas R8A7795 clock driver" + def_bool y if R8A7795 + depends on CLK_RCAR_GEN3 + help + Enable this to support the clocks on Renesas R8A7795 SoC. + +config CLK_R8A7796 + bool "Renesas R8A7796 clock driver" + def_bool y if R8A7796 + depends on CLK_RCAR_GEN3 + help + Enable this to support the clocks on Renesas R8A7796 SoC. + +config CLK_R8A77970 + bool "Renesas R8A77970 clock driver" + def_bool y if R8A77970 + depends on CLK_RCAR_GEN3 + help + Enable this to support the clocks on Renesas R8A77970 SoC. + +config CLK_R8A77995 + bool "Renesas R8A77995 clock driver" + def_bool y if R8A77995 + depends on CLK_RCAR_GEN3 + help + Enable this to support the clocks on Renesas R8A77995 SoC. diff --git a/drivers/clk/renesas/Makefile b/drivers/clk/renesas/Makefile index 969241a4c7..0b8585b850 100644 --- a/drivers/clk/renesas/Makefile +++ b/drivers/clk/renesas/Makefile @@ -1,5 +1,5 @@ -obj-$(CONFIG_CLK_RCAR_GEN3) += clk-rcar-gen3.o \ - r8a7795-cpg-mssr.o \ - r8a7796-cpg-mssr.o \ - r8a77970-cpg-mssr.o \ - r8a77995-cpg-mssr.o +obj-$(CONFIG_CLK_RCAR_GEN3) += clk-rcar-gen3.o +obj-$(CONFIG_CLK_R8A7795) += r8a7795-cpg-mssr.o +obj-$(CONFIG_CLK_R8A7796) += r8a7796-cpg-mssr.o +obj-$(CONFIG_CLK_R8A77970) += r8a77970-cpg-mssr.o +obj-$(CONFIG_CLK_R8A77995) += r8a77995-cpg-mssr.o -- 2.25.1