]> git.ipfire.org Git - thirdparty/u-boot.git/commit
net: ravb: Add tx/rx delay flag checks and support for rgmii-rxid
authorAdam Ford <aford173@gmail.com>
Fri, 25 Feb 2022 20:32:52 +0000 (14:32 -0600)
committerMarek Vasut <marek.vasut+renesas@gmail.com>
Fri, 25 Feb 2022 20:42:07 +0000 (21:42 +0100)
commita26c2b155bfd97437dcb64f0ac51a4e0ab8ea7cf
tree8ef9ee0ed824d72c1a9dd2c7d614de507a2fcfd3
parentc6ae38b38967a5c33d729c20e508a03ba3e0e3f6
net: ravb: Add tx/rx delay flag checks and support for rgmii-rxid

Some boards like the Beacon RZ/G2 SOM use either flags for
tx-internal-delay-ps, rx-internal-delay-ps or rgmii-rxid.

In Linux the APSR_RDM flag is set when either rx-internal-delay-ps
is set or the mode is rgmii-rxid, and the APSR_TDM is set when
tx-internal-delay-ps is found or rgmii-txid is set, and both
are set if rgmii-id is set.

The ravb driver in U-Boot driver was missing rgmii-rxid support,
so add that support in a similar fashion to what is done in Linux.

Signed-off-by: Adam Ford <aford173@gmail.com>
drivers/net/ravb.c