net: stmmac: add flexible PPS to dwmac 4.10a
authorAntonio Borneo <antonio.borneo@st.com>
Mon, 7 Oct 2019 15:43:06 +0000 (17:43 +0200)
committerJakub Kicinski <jakub.kicinski@netronome.com>
Wed, 9 Oct 2019 22:20:30 +0000 (15:20 -0700)
commit75792624783659b6712b8cacb01fc0f04150eebb
tree321e24ab14fd376d5b38dd710f06713a0484dc1c
parent31d7c17e3f1b21989f554886e09dd77886bbcc36
net: stmmac: add flexible PPS to dwmac 4.10a

All the registers and the functionalities used in the callback
dwmac5_flex_pps_config() are common between dwmac 4.10a [1] and
5.00a [2].

Reuse the same callback for dwmac 4.10a too.

Tested on STM32MP15x, based on dwmac 4.10a.

[1] DWC Ethernet QoS Databook 4.10a October 2014
[2] DWC Ethernet QoS Databook 5.00a September 2017

Signed-off-by: Antonio Borneo <antonio.borneo@st.com>
Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
drivers/net/ethernet/stmicro/stmmac/dwmac4_core.c