]> git.ipfire.org Git - thirdparty/linux.git/commit
clk: eyeq: add fixed factor clocks infrastructure
authorThéo Lebrun <theo.lebrun@bootlin.com>
Wed, 6 Nov 2024 16:03:56 +0000 (17:03 +0100)
committerStephen Boyd <sboyd@kernel.org>
Thu, 14 Nov 2024 22:52:27 +0000 (14:52 -0800)
commit4a1ae0486dfee0aa3dcf3d312ece326870341f57
treefb4e091b5179b319c917c146f9eb552b576684ae
parentd75fbc82ee9c0c5441a51aecd36d8f42e8f6b2fa
clk: eyeq: add fixed factor clocks infrastructure

Driver can currently host two types of clocks:
 - PLLs derived directly from the main crystal (taken using a fwhandle).
 - Divider clocks derived from those PLLs.

PLLs can be instantiated from of_clk_init() or platform device probe,
using two separate clock providers. Divider clocks are all instantiated
at platform device probe.

Add a third type of clocks: fixed factors. Those can be instantiated at
both stages. They can be parented to any clock from the driver. Early
match data and match data store the list of fixed factor clocks.

Signed-off-by: Théo Lebrun <theo.lebrun@bootlin.com>
Link: https://lore.kernel.org/r/20241106-mbly-clk-v2-5-84cfefb3f485@bootlin.com
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/clk-eyeq.c