[PATCH v2 2/3] clk: ti: Add support to enable configs conditionally
Nishanth Menon
nm at ti.com
Tue Sep 12 17:55:58 CEST 2023
On 18:36-20230912, Udit Kumar wrote:
> TI SOC has two clock domains CLK_TI_SCI and
> CLK_K3. These are mutually exclusive.
>
> Adding conditional check for CLK_TI_SCI
> and CLK_K3 along with other associated configs options.
>
> Suggested-by: Nishanth Menon <nm at ti.com>
> Signed-off-by: Udit Kumar <u-kumar1 at ti.com>
> ---
> drivers/clk/ti/Kconfig | 8 ++++----
> 1 file changed, 4 insertions(+), 4 deletions(-)
>
> diff --git a/drivers/clk/ti/Kconfig b/drivers/clk/ti/Kconfig
> index fbcdefd889..a21359d6b2 100644
> --- a/drivers/clk/ti/Kconfig
> +++ b/drivers/clk/ti/Kconfig
> @@ -36,7 +36,7 @@ config CLK_TI_MUX
>
> config CLK_TI_SCI
> bool "TI System Control Interface (TI SCI) clock driver"
> - depends on CLK && TI_SCI_PROTOCOL && OF_CONTROL
> + depends on CLK && TI_SCI_PROTOCOL && OF_CONTROL && !CLK_K3
> help
> This enables the clock driver support over TI System Control Interface
> available on some new TI's SoCs. If you wish to use clock resources
> @@ -44,13 +44,13 @@ config CLK_TI_SCI
>
> config CLK_K3_PLL
> bool "PLL clock support for K3 SoC family of devices"
> - depends on CLK && LIB_RATIONAL
> + depends on CLK && LIB_RATIONAL && !CLK_TI_SCI
> help
> Enables PLL clock support for K3 SoC family of devices.
>
> config SPL_CLK_K3_PLL
> bool "PLL clock support for K3 SoC family of devices"
> - depends on CLK && LIB_RATIONAL && SPL
> + depends on CLK && LIB_RATIONAL && SPL && !CLK_TI_SCI
> help
> Enables PLL clock support for K3 SoC family of devices.
>
> @@ -62,6 +62,6 @@ config CLK_K3
>
> config SPL_CLK_K3
> bool "Clock support for K3 SoC family of devices"
> - depends on CLK && SPL
> + depends on CLK && SPL && !CLK_TI_SCI
> help
> Enables the clock translation layer from DT to device clocks.
> --
> 2.34.1
>
Reviewed-by: Nishanth Menon <nm at ti.com>
--
Regards,
Nishanth Menon
Key (0xDDB5849D1736249D) / Fingerprint: F8A2 8693 54EB 8232 17A3 1A34 DDB5 849D 1736 249D
More information about the U-Boot
mailing list