phy: freescale: fsl-samsung-hdmi: Support dynamic integer
authorAdam Ford <aford173@gmail.com>
Sat, 14 Sep 2024 11:27:47 +0000 (06:27 -0500)
committerVinod Koul <vkoul@kernel.org>
Thu, 17 Oct 2024 13:13:36 +0000 (18:43 +0530)
commit1951dbb41d1dff7c135eed4fa1a6330df6971549
treee085b756fea9896133bacb3305dded2f9056ecbc
parent375ee44adb3640099508c5c0c01d86f0bdb16e97
phy: freescale: fsl-samsung-hdmi: Support dynamic integer

There is currently a look-up table for a variety of resolutions.
Since the phy has the ability to dynamically calculate the values
necessary to use the intger divider which should allow more
resolutions without having to update the look-up-table.

If the lookup table cannot find an exact match, fall back to the
dynamic calculator of the integer divider.

Previously, the value of P was hard-coded to 1, this required an
update to the phy_pll_cfg table to add in the extra value into the
table, so if the value of P is calculated to be something else
by the PMS calculator, the calculated_phy_pll_cfg structure
can be used instead without having to keep track of which method
was used.

Signed-off-by: Adam Ford <aford173@gmail.com>
Reviewed-by: Dominique Martinet <dominique.martinet@atmark-techno.com>
Tested-by: Dominique Martinet <dominique.martinet@atmark-techno.com>
Reviewed-by: Frieder Schrempf <frieder.schrempf@kontron.de>
Link: https://lore.kernel.org/r/20240914112816.520224-4-aford173@gmail.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/phy/freescale/phy-fsl-samsung-hdmi.c