diff options
author | Michael Tretter <[email protected]> | 2023-10-06 17:07:05 +0200 |
---|---|---|
committer | Neil Armstrong <[email protected]> | 2023-10-09 11:06:22 +0200 |
commit | 846307185f0ffbbe6b34d53b97c31c0fc392cff0 (patch) | |
tree | b0b845e1a96e837f1f1e93031388590bf0b85f93 /rust/helpers/helpers.c | |
parent | eb26c6ab2a11e6c595ee88ce30c7de9578d957aa (diff) |
drm/bridge: samsung-dsim: update PLL reference clock
The PLL requires a clock frequency in a certain platform-dependent range
after the pre-divider. The reference clock for the PLL may change due to
changes to it's parent clock. Thus, the frequency may be out of range or
unsuited for generating the high speed clock for MIPI DSI.
Try to keep the pre-devider small, and set the reference clock close to
the upper limit before recalculating the PLL configuration. Use a
divider with a power of two for the reference clock as this seems to
work best in my tests.
Reviewed-by: Marco Felsch <[email protected]>
Tested-by: Frieder Schrempf <[email protected]> # Kontron BL i.MX8MM + Waveshare 10.1inch HDMI LCD (E)
Signed-off-by: Michael Tretter <[email protected]>
Tested-by: Marek Szyprowski <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Neil Armstrong <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'rust/helpers/helpers.c')
0 files changed, 0 insertions, 0 deletions