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 <marek.vasut+renesas@gmail.com>
Cc: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
master
Marek Vasut 7 years ago committed by Marek Vasut
parent ff50b323b3
commit 65f1bbf678
  1. 28
      drivers/clk/renesas/Kconfig
  2. 10
      drivers/clk/renesas/Makefile

@ -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.

@ -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

Loading…
Cancel
Save