diff options
author | Marek Vasut <marek.vasut+renesas@gmail.com> | 2018-01-08 16:32:38 +0100 |
---|---|---|
committer | Marek Vasut <marex@denx.de> | 2018-01-24 23:27:22 +0100 |
commit | 65f1bbf678ed4a9c95c5664815954cb577400f4a (patch) | |
tree | 779008921a2e606f6d93e58f9ab17336bc711e81 /drivers | |
parent | ff50b323b325b0bf44753682656d28c76e9dfda1 (diff) |
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/clk/renesas/Kconfig | 28 | ||||
-rw-r--r-- | 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 |