]> git.baikalelectronics.ru Git - kernel.git/commit
ethernet: ti: am65-cpts: add routines to support taprio offload
authorIvan Khoronzhuk <ivan.khoronzhuk@linaro.org>
Wed, 13 May 2020 13:26:14 +0000 (09:26 -0400)
committerDavid S. Miller <davem@davemloft.net>
Fri, 15 May 2020 00:33:29 +0000 (17:33 -0700)
commit72bfd32e9c6b29a9b396742a7eccad8b3154e565
treea98be8885c8c33b373a9fea9bc4eed5c922f6ac4
parentf4c373474a6e5638ec34f5bb4b11a1c20cc514cc
ethernet: ti: am65-cpts: add routines to support taprio offload

TAPRIO/EST offload support in CPSW2G requires EST scheduler
function enabled in CPTS. So this patch add a function to
set cycle time for EST scheduler.  It also add a function for
getting time in ns of PHC clock for taprio qdisc configuration.
Mostly to verify if timer update is needed or to get actual
state of oper/admin schedule.

Signed-off-by: Ivan Khoronzhuk <ivan.khoronzhuk@linaro.org>
Signed-off-by: Murali Karicheri <m-karicheri2@ti.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ti/am65-cpts.c
drivers/net/ethernet/ti/am65-cpts.h