net: ti: icss-iep: Add pwidth configuration for perout signal
authorMeghana Malladi <m-malladi@ti.com>
Tue, 4 Mar 2025 10:57:52 +0000 (16:27 +0530)
committerJakub Kicinski <kuba@kernel.org>
Fri, 7 Mar 2025 01:47:01 +0000 (17:47 -0800)
commite5b456a14215e3c0e84844c2926861b972e03632
treea622510ea4a5dc0f3e1fcf7e813d65c87ec1fbc8
parent1cc3462159babb69c84c39cb1b4e262aef3ea325
net: ti: icss-iep: Add pwidth 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.

But icss_iep_perout_enable_hw() function is missing to hook the
configuration params passed by the app, causing perout to behave
same a pps (except being able to configure the period). As duty cycle
is also one feature which can configured for perout, incorporate this
in the function to get the expected signal.

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-2-m-malladi@ti.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/ti/icssg/icss_iep.c