]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
dpll: zl3073x: add ref sync and output clock type helpers
authorIvan Vecera <ivecera@redhat.com>
Wed, 8 Apr 2026 10:27:14 +0000 (12:27 +0200)
committerJakub Kicinski <kuba@kernel.org>
Sun, 12 Apr 2026 15:27:33 +0000 (08:27 -0700)
commit63009eb92b0f379afddbba8dfdf8df087f6d5b62
tree55995618b650f50e12bfa5c8d685b79e06eb2285
parent737cb6195c40acf67c876f509e209158436cf287
dpll: zl3073x: add ref sync and output clock type helpers

Add ZL_REF_SYNC_CTRL_MODE_REFSYNC_PAIR and ZL_REF_SYNC_CTRL_PAIR
register definitions.

Add inline helpers to get and set the sync control mode and sync pair
fields of the reference sync control register:

  zl3073x_ref_sync_mode_get/set() - ZL_REF_SYNC_CTRL_MODE field
  zl3073x_ref_sync_pair_get/set() - ZL_REF_SYNC_CTRL_PAIR field

Add inline helpers to get and set the clock type field of the output
mode register:

  zl3073x_out_clock_type_get/set() - ZL_OUTPUT_MODE_CLOCK_TYPE field

Convert existing esync callbacks to use the new helpers.

Reviewed-by: Petr Oros <poros@redhat.com>
Reviewed-by: Prathosh Satish <Prathosh.Satish@microchip.com>
Signed-off-by: Ivan Vecera <ivecera@redhat.com>
Link: https://patch.msgid.link/20260408102716.443099-4-ivecera@redhat.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/dpll/zl3073x/dpll.c
drivers/dpll/zl3073x/out.h
drivers/dpll/zl3073x/ref.h
drivers/dpll/zl3073x/regs.h