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)
commit08db5d5c7198d38ec51e12b8a65fc2b68dd92acc
tree1e4e44855b3f81bb52b0882a416ce6effbbf7e98
parent3d15245502c4bc069c1a9d0268dbe5e833c529e2
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