]> www.infradead.org Git - users/jedix/linux-maple.git/commit
net: ti: icss-iep: Add phase offset configuration for perout signal
authorMeghana Malladi <m-malladi@ti.com>
Tue, 4 Mar 2025 10:57:53 +0000 (16:27 +0530)
committerJakub Kicinski <kuba@kernel.org>
Fri, 7 Mar 2025 01:47:01 +0000 (17:47 -0800)
commit220cb1be647a7ca4e60241405c66f8f612c9b046
tree2bd86c096c01cc0c3871b31d6d79c38a926b7eb0
parente5b456a14215e3c0e84844c2926861b972e03632
net: ti: icss-iep: Add phase offset configuration for perout signal

icss_iep_perout_enable_hw() is a common function for generating
both pps and perout signals. When enabling pps, the application needs
to only pass enable/disable argument, whereas for perout it supports
different flags to configure the signal.

In case the app passes a valid phase offset value, the signal should
start toggling after that phase offset, else start immediately or
as soon as possible. ICSS_IEP_SYNC_START_REG register take number of
clock cycles to wait before starting the signal after activation time.
Set appropriate value to this register to support phase offset.

Signed-off-by: Meghana Malladi <m-malladi@ti.com>
Reviewed-by: Jacob Keller <jacob.e.keller@intel.com>
Reviewed-by: Kory Maincent <kory.maincent@bootlin.com>
Link: https://patch.msgid.link/20250304105753.1552159-3-m-malladi@ti.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/ti/icssg/icss_iep.c