sun8i_emac: add support for setting EMAC TX/RX delay
authorIcenowy Zheng <icenowy@aosc.io>
Thu, 22 Nov 2018 23:37:48 +0000 (00:37 +0100)
committerJagan Teki <jagan@amarulasolutions.com>
Fri, 23 Nov 2018 05:31:09 +0000 (11:01 +0530)
commit9b16ede4a4e898564f54e1c09ae658a5975b432b
tree2bb4de82415f971012c109c82ba5e27b3d108f15
parentaa09a071c3295011816c0e2f18532f61bc8b74f3
sun8i_emac: add support for setting EMAC TX/RX delay

Some boards have the EMAC TX/RX lanes wired with a different length with
the clock lane, which can be workarounded by setting a TX/RX delay in
the EMAC.

This kind of delays are already defined in the newest device tree
binding of dwmac-sun8i, which has already entered linux-next.

Add support for setting these delays.

Signed-off-by: Icenowy Zheng <icenowy@aosc.io>
Reviewed-by: Jagan Teki <jagan@openedev.com>
drivers/net/sun8i_emac.c