diff options
author | Adam Ford <aford173@gmail.com> | 2024-10-26 16:19:59 +0300 |
---|---|---|
committer | Vinod Koul <vkoul@kernel.org> | 2024-12-08 18:51:20 +0300 |
commit | d567679f2b6a8bcea20589bbea6488c0236886cd (patch) | |
tree | 93a2d21ed862530391601787a2fa1ee744856a0a /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | 1b9b8b159601d174526ce1c3a62ebe3a7286003b (diff) | |
download | linux-d567679f2b6a8bcea20589bbea6488c0236886cd.tar.xz |
phy: freescale: fsl-samsung-hdmi: Clean up fld_tg_code calculation
Currently, the calcuation for fld_tg_code is based on a lookup table,
but there are gaps in the lookup table, and frequencies in these
gaps may not properly use the correct divider. Based on the description
of FLD_CK_DIV, the internal PLL frequency should be less than 50 MHz,
so directly calcuate the value of FLD_CK_DIV from pixclk.
This allow for proper calcuation of any pixel clock and eliminates a
few gaps in the LUT.
Since the value of the int_pllclk is in Hz, do the fixed-point
math in Hz to achieve a more accurate value and reduces the complexity
of the caluation to 24MHz * (256 / int_pllclk).
Fixes: 6ad082bee902 ("phy: freescale: add Samsung HDMI PHY")
Signed-off-by: Adam Ford <aford173@gmail.com>
Reviewed-by: Frieder Schrempf <frieder.schrempf@kontron.de>
Link: https://lore.kernel.org/r/20241026132014.73050-3-aford173@gmail.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions