]> git.baikalelectronics.ru Git - uboot.git/commit
clk: stm32mp1: gets root clocks from fdt
authorEtienne Carriere <etienne.carriere@st.com>
Wed, 24 Feb 2021 10:19:42 +0000 (11:19 +0100)
committerPatrice Chotard <patrice.chotard@foss.st.com>
Thu, 11 Mar 2021 16:03:19 +0000 (17:03 +0100)
commitf1fd8a14ad1ffc8a9ffcbc1eb613b3b7a747506f
tree1e4e44855b3f81bb52b0882a416ce6effbbf7e98
parentda86da2398c99129ba157dec02a4623e8c2e5392
clk: stm32mp1: gets root clocks from fdt

This change makes stm32mp1 clock driver to get the root clocks
reference from the device node in the FDT rather than fetching
straight these clocks by their name. Driver now stores the
clock reference and use it to know if a root clock is present,
get its rate or gets its related udevice reference.

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