]> www.infradead.org Git - users/jedix/linux-maple.git/commit
clk: clocking-wizard: calculate dividers fractional parts
authorShubhrajyoti Datta <shubhrajyoti.datta@amd.com>
Mon, 6 Jan 2025 08:29:37 +0000 (13:59 +0530)
committerStephen Boyd <sboyd@kernel.org>
Tue, 7 Jan 2025 19:50:07 +0000 (11:50 -0800)
commit7681f64e6404edbca2f67501c98d596e5c307993
treecb0201058f9a7dca89034564540c96239913233c
parentb00b08a59674eacc77848d852d7c37de485add81
clk: clocking-wizard: calculate dividers fractional parts

Calculate dividers fractional parts to optimally modulate output frequency.
Clocking wizard supports having multiplier m and divisors d and o.
Currently the fractional parts of m and o are not utilised.
For the pixel clock usecases a higher accuracy is needed..
Adding support for m and o to have fractional values.

Co-developed-by: Anatoliy Klymenko <anatoliy.klymenko@amd.com>
Signed-off-by: Anatoliy Klymenko <anatoliy.klymenko@amd.com>
Signed-off-by: Shubhrajyoti Datta <shubhrajyoti.datta@amd.com>
Tested-by: Anatoliy Klymenko <anatoliy.klymenko@amd.com>
Link: https://lore.kernel.org/r/20250106082937.29555-1-shubhrajyoti.datta@amd.com
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/xilinx/clk-xlnx-clock-wizard.c