clk: stm32mp1: add support of SYSCFG clock
authorPatrick Delaunay <patrick.delaunay@foss.st.com>
Tue, 29 Jun 2021 10:04:22 +0000 (12:04 +0200)
committerPatrick Delaunay <patrick.delaunay@foss.st.com>
Fri, 16 Jul 2021 07:28:46 +0000 (09:28 +0200)
commit3105836c9e5d7c2823dc5817b60d6940bb1b817f
tree3dc710904860a4b6fc25ac39d7d63c0f9470743d
parent7e549345329a5c870fbc10b59b6a4cd6aab531a5
clk: stm32mp1: add support of SYSCFG clock

Add the support of SYSCFG clock used by syscon driver
to prepare the clock management of STM32MP_SYSCON_SYSCFG.

This clock is already defined in kernel device tree,
stm32mp151.dtsi but not yet supported in the syscon driver:

syscfg: syscon@50020000 {
compatible = "st,stm32mp157-syscfg", "syscon";
reg = <0x50020000 0x400>;
clocks = <&rcc SYSCFG>;
};

It is safe to support this clock in U-Boot driver with
RCC_MC_APB3ENSETR, Bit 11 SYSCFGEN: SYSCFG peripheral clocks
enable.

Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com>
drivers/clk/clk_stm32mp1.c