]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
dpll: zl3073x: Add output pin frequency helper
authorIvan Vecera <ivecera@redhat.com>
Thu, 5 Feb 2026 15:43:49 +0000 (16:43 +0100)
committerJakub Kicinski <kuba@kernel.org>
Sat, 7 Feb 2026 04:44:20 +0000 (20:44 -0800)
commit24e4336a87f5c51263535201218889b5f324511f
tree3579f67cf1d3a2c0ba01c77580c22cd79dae5897
parenta14d9317904559a6948946de05bf9fb6f2a34fba
dpll: zl3073x: Add output pin frequency helper

Introduce zl3073x_dev_output_pin_freq_get() helper function to compute
the output pin frequency based on synthesizer frequency, output divisor,
and signal format. For N-div signal formats, the N-pin frequency is
additionally divided by esync_n_period.

Add zl3073x_out_is_ndiv() helper to check if an output is configured
in N-div mode (2_NDIV or 2_NDIV_INV signal formats).

Refactor zl3073x_dpll_output_pin_frequency_get() callback to use the
new helper, reducing code duplication and enabling reuse of the
frequency calculation logic in other contexts.

This is a preparatory change for adding current frequency to the
supported frequencies list in pin properties.

Signed-off-by: Ivan Vecera <ivecera@redhat.com>
Link: https://patch.msgid.link/20260205154350.3180465-2-ivecera@redhat.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/dpll/zl3073x/core.h
drivers/dpll/zl3073x/dpll.c
drivers/dpll/zl3073x/out.h