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)
commitec008fa2a9e5686081053750893de5f407a8d076
treea98be8885c8c33b373a9fea9bc4eed5c922f6ac4
parent86b6ba171d4bcce72ffbdc33b42b0b4c0e6d99d0
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