Training courses

Kernel and Embedded Linux

Bootlin training courses

Embedded Linux, kernel,
Yocto Project, Buildroot, real-time,
graphics, boot time, debugging...

Bootlin logo

Elixir Cross Referencer

# SPDX-License-Identifier: GPL-2.0

config CONFIG_CLK_RENESAS
	bool "Renesas SoC clock support" if CONFIG_COMPILE_TEST && !CONFIG_ARCH_RENESAS
	default y if CONFIG_ARCH_RENESAS
	select CONFIG_CLK_EMEV2 if CONFIG_ARCH_EMEV2
	select CONFIG_CLK_RZA1 if CONFIG_ARCH_R7S72100
	select CONFIG_CLK_R7S9210 if CONFIG_ARCH_R7S9210
	select CONFIG_CLK_R8A73A4 if CONFIG_ARCH_R8A73A4
	select CONFIG_CLK_R8A7740 if CONFIG_ARCH_R8A7740
	select CONFIG_CLK_R8A7743 if CONFIG_ARCH_R8A7743 || CONFIG_ARCH_R8A7744
	select CONFIG_CLK_R8A7745 if CONFIG_ARCH_R8A7745
	select CONFIG_CLK_R8A77470 if CONFIG_ARCH_R8A77470
	select CONFIG_CLK_R8A774A1 if CONFIG_ARCH_R8A774A1
	select CONFIG_CLK_R8A774C0 if CONFIG_ARCH_R8A774C0
	select CONFIG_CLK_R8A7778 if CONFIG_ARCH_R8A7778
	select CONFIG_CLK_R8A7779 if CONFIG_ARCH_R8A7779
	select CONFIG_CLK_R8A7790 if CONFIG_ARCH_R8A7790
	select CONFIG_CLK_R8A7791 if CONFIG_ARCH_R8A7791 || CONFIG_ARCH_R8A7793
	select CONFIG_CLK_R8A7792 if CONFIG_ARCH_R8A7792
	select CONFIG_CLK_R8A7794 if CONFIG_ARCH_R8A7794
	select CONFIG_CLK_R8A7795 if CONFIG_ARCH_R8A7795
	select CONFIG_CLK_R8A7796 if CONFIG_ARCH_R8A7796
	select CONFIG_CLK_R8A77965 if CONFIG_ARCH_R8A77965
	select CONFIG_CLK_R8A77970 if CONFIG_ARCH_R8A77970
	select CONFIG_CLK_R8A77980 if CONFIG_ARCH_R8A77980
	select CONFIG_CLK_R8A77990 if CONFIG_ARCH_R8A77990
	select CONFIG_CLK_R8A77995 if CONFIG_ARCH_R8A77995
	select CONFIG_CLK_R9A06G032 if CONFIG_ARCH_R9A06G032
	select CONFIG_CLK_SH73A0 if CONFIG_ARCH_SH73A0

if CONFIG_CLK_RENESAS

config CONFIG_CLK_RENESAS_LEGACY
	bool "Legacy DT clock support"
	depends on CONFIG_CLK_R8A7790 || CONFIG_CLK_R8A7791 || CONFIG_CLK_R8A7792 || CONFIG_CLK_R8A7794
	help
	  Enable backward compatibility with old device trees describing a
	  hierarchical representation of the various CPG and MSTP clocks.

	  Say Y if you want your kernel to work with old DTBs.
	  It is safe to say N if you use the DTS that is supplied with the
	  current kernel source tree.

# SoC
config CONFIG_CLK_EMEV2
	bool "Emma Mobile EV2 clock support" if CONFIG_COMPILE_TEST

config CONFIG_CLK_RZA1
	bool "RZ/A1H clock support" if CONFIG_COMPILE_TEST
	select CONFIG_CLK_RENESAS_CPG_MSTP

config CONFIG_CLK_R7S9210
	bool "RZ/A2 clock support" if CONFIG_COMPILE_TEST
	select CONFIG_CLK_RENESAS_CPG_MSSR

config CONFIG_CLK_R8A73A4
	bool "R-Mobile APE6 clock support" if CONFIG_COMPILE_TEST
	select CONFIG_CLK_RENESAS_CPG_MSTP
	select CONFIG_CLK_RENESAS_DIV6

config CONFIG_CLK_R8A7740
	bool "R-Mobile A1 clock support" if CONFIG_COMPILE_TEST
	select CONFIG_CLK_RENESAS_CPG_MSTP
	select CONFIG_CLK_RENESAS_DIV6

config CONFIG_CLK_R8A7743
	bool "RZ/G1M clock support" if CONFIG_COMPILE_TEST
	select CONFIG_CLK_RCAR_GEN2_CPG

config CONFIG_CLK_R8A7745
	bool "RZ/G1E clock support" if CONFIG_COMPILE_TEST
	select CONFIG_CLK_RCAR_GEN2_CPG

config CONFIG_CLK_R8A77470
	bool "RZ/G1C clock support" if CONFIG_COMPILE_TEST
	select CONFIG_CLK_RCAR_GEN2_CPG

config CONFIG_CLK_R8A774A1
	bool "RZ/G2M clock support" if CONFIG_COMPILE_TEST
	select CONFIG_CLK_RCAR_GEN3_CPG

config CONFIG_CLK_R8A774C0
	bool "RZ/G2E clock support" if CONFIG_COMPILE_TEST
	select CONFIG_CLK_RCAR_GEN3_CPG

config CONFIG_CLK_R8A7778
	bool "R-Car M1A clock support" if CONFIG_COMPILE_TEST
	select CONFIG_CLK_RENESAS_CPG_MSTP

config CONFIG_CLK_R8A7779
	bool "R-Car H1 clock support" if CONFIG_COMPILE_TEST
	select CONFIG_CLK_RENESAS_CPG_MSTP

config CONFIG_CLK_R8A7790
	bool "R-Car H2 clock support" if CONFIG_COMPILE_TEST
	select CONFIG_CLK_RCAR_GEN2 if CONFIG_CLK_RENESAS_LEGACY
	select CONFIG_CLK_RCAR_GEN2_CPG
	select CONFIG_CLK_RENESAS_DIV6

config CONFIG_CLK_R8A7791
	bool "R-Car M2-W/N clock support" if CONFIG_COMPILE_TEST
	select CONFIG_CLK_RCAR_GEN2 if CONFIG_CLK_RENESAS_LEGACY
	select CONFIG_CLK_RCAR_GEN2_CPG
	select CONFIG_CLK_RENESAS_DIV6

config CONFIG_CLK_R8A7792
	bool "R-Car V2H clock support" if CONFIG_COMPILE_TEST
	select CONFIG_CLK_RCAR_GEN2 if CONFIG_CLK_RENESAS_LEGACY
	select CONFIG_CLK_RCAR_GEN2_CPG

config CONFIG_CLK_R8A7794
	bool "R-Car E2 clock support" if CONFIG_COMPILE_TEST
	select CONFIG_CLK_RCAR_GEN2 if CONFIG_CLK_RENESAS_LEGACY
	select CONFIG_CLK_RCAR_GEN2_CPG
	select CONFIG_CLK_RENESAS_DIV6

config CONFIG_CLK_R8A7795
	bool "R-Car H3 clock support" if CONFIG_COMPILE_TEST
	select CONFIG_CLK_RCAR_GEN3_CPG

config CONFIG_CLK_R8A7796
	bool "R-Car M3-W clock support" if CONFIG_COMPILE_TEST
	select CONFIG_CLK_RCAR_GEN3_CPG

config CONFIG_CLK_R8A77965
	bool "R-Car M3-N clock support" if CONFIG_COMPILE_TEST
	select CONFIG_CLK_RCAR_GEN3_CPG

config CONFIG_CLK_R8A77970
	bool "R-Car V3M clock support" if CONFIG_COMPILE_TEST
	select CONFIG_CLK_RCAR_GEN3_CPG

config CONFIG_CLK_R8A77980
	bool "R-Car V3H clock support" if CONFIG_COMPILE_TEST
	select CONFIG_CLK_RCAR_GEN3_CPG

config CONFIG_CLK_R8A77990
	bool "R-Car E3 clock support" if CONFIG_COMPILE_TEST
	select CONFIG_CLK_RCAR_GEN3_CPG

config CONFIG_CLK_R8A77995
	bool "R-Car D3 clock support" if CONFIG_COMPILE_TEST
	select CONFIG_CLK_RCAR_GEN3_CPG

config CONFIG_CLK_R9A06G032
	bool "Renesas R9A06G032 clock driver"
	help
	  This is a driver for R9A06G032 clocks

config CONFIG_CLK_SH73A0
	bool "SH-Mobile AG5 clock support" if CONFIG_COMPILE_TEST
	select CONFIG_CLK_RENESAS_CPG_MSTP
	select CONFIG_CLK_RENESAS_DIV6


# Family
config CONFIG_CLK_RCAR_GEN2
	bool "R-Car Gen2 legacy clock support" if CONFIG_COMPILE_TEST
	select CONFIG_CLK_RENESAS_CPG_MSTP
	select CONFIG_CLK_RENESAS_DIV6

config CONFIG_CLK_RCAR_GEN2_CPG
	bool "R-Car Gen2 CPG clock support" if CONFIG_COMPILE_TEST
	select CONFIG_CLK_RENESAS_CPG_MSSR

config CONFIG_CLK_RCAR_GEN3_CPG
	bool "R-Car Gen3 CPG clock support" if CONFIG_COMPILE_TEST
	select CONFIG_CLK_RENESAS_CPG_MSSR

config CONFIG_CLK_RCAR_USB2_CLOCK_SEL
	bool "Renesas R-Car USB2 clock selector support"
	depends on CONFIG_ARCH_RENESAS || CONFIG_COMPILE_TEST
	help
	  This is a driver for R-Car USB2 clock selector

# Generic
config CONFIG_CLK_RENESAS_CPG_MSSR
	bool "CPG/MSSR clock support" if CONFIG_COMPILE_TEST
	select CONFIG_CLK_RENESAS_DIV6

config CONFIG_CLK_RENESAS_CPG_MSTP
	bool "MSTP clock support" if CONFIG_COMPILE_TEST

config CONFIG_CLK_RENESAS_DIV6
	bool "DIV6 clock support" if CONFIG_COMPILE_TEST

endif # CONFIG_CLK_RENESAS