]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Add support for bcm54213PE in brgphy.
authorMike Karels <karels@FreeBSD.org>
Thu, 18 Jun 2020 23:57:10 +0000 (23:57 +0000)
committerMike Karels <karels@FreeBSD.org>
Thu, 18 Jun 2020 23:57:10 +0000 (23:57 +0000)
commit349eddbd07d112698c5c6e51a3e8126759f651a6
tree4716d5da246efd7e91c42c2294dd0598913065d9
parent0a0c18180cfe5adf0017a7481f1eddda10fe1917
Add support for bcm54213PE in brgphy.

This chip is used in the Rasperry Pi 4, and is supported by the if_genet
driver. Currently we use the ukphy mii driver, this patch switches over
to the brgphy mii driver instead. To support the rgmii-rxid phy mode,
which is now the default in the Linux dtb, we add support for clock
skewing.

These changes are taken from OpenBSD and NetBSD, except for the bailout
in brgphy_bcm54xx_clock_delay() in rgmii mode, which was found necessary
after testing.

Submitted by: Robert Crowston, crowston at protomail.com
Differential Revision: https://reviews.freebsd.org/D25251
sys/arm64/broadcom/genet/if_genet.c
sys/dev/mii/brgphy.c
sys/dev/mii/brgphyreg.h
sys/dev/mii/miidevs
sys/dev/mii/miivar.h