aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/bin
diff options
context:
space:
mode:
authorMatthias Fend <matthias.fend@emfend.at>2025-01-07 17:07:01 +0100
committerHans Verkuil <hverkuil@xs4all.nl>2025-02-25 09:07:25 +0100
commit78d7265e2e1ce349e7f3c6a085f2b66d7b73f4ca (patch)
treea227794f74cc257b52cdc888cd361d08808c2dd7 /tools/perf/scripts/python/bin
parentmedia: tc358746: add support for 8/10/12/14-bit RAW Bayer formats (diff)
downloadlinux-78d7265e2e1ce349e7f3c6a085f2b66d7b73f4ca.tar.gz
linux-78d7265e2e1ce349e7f3c6a085f2b66d7b73f4ca.zip
media: tc358746: improve calculation of the D-PHY timing registers
When calculating D-PHY registers, using data rates that are not multiples of 16 can lead to precision loss in division operations. This can result in register values that produce timing violations against the MIPI standard. An example: cfg->hs_clk_rate = 294MHz hf_clk = 18 If the desired value in cfg->init is 100us, which is the minimum allowed value, then the LINEINITCNT register is calculated as 1799. But since the actual clock is 18.375MHz instead of 18MHz, this setting results in a time that is shorter than 100us and thus violates the standard. The correct value for LINEINITCNT would be 1837. Improve the precision of calculations by using Hz instead of MHz as unit. Signed-off-by: Matthias Fend <matthias.fend@emfend.at> Reviewed-by: Marco Felsch <m.felsch@pengutronix.de> Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions