Page MenuHomeFreeBSD

Improvements for Rockchip's integration of if_dwc
ClosedPublic

Authored by gonzo on Aug 8 2020, 6:33 AM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Apr 23, 2:04 PM
Unknown Object (File)
Mon, Apr 21, 9:40 PM
Unknown Object (File)
Mon, Apr 21, 8:50 AM
Unknown Object (File)
Fri, Apr 18, 4:56 PM
Unknown Object (File)
Wed, Apr 16, 10:04 PM
Unknown Object (File)
Mon, Apr 14, 1:49 PM
Unknown Object (File)
Mon, Apr 14, 11:53 AM
Unknown Object (File)
Mon, Apr 14, 4:25 AM
Subscribers

Details

Summary
  • Add support for RMII
  • Properly set up clocks for both RGMII and RMII cases
  • Handle media switching between 100Mb and 1000Mb networks
Test Plan

Tested on RockPro64, Firefly-RK3399, Rock Pi E (both interfaces), Rock64 (still some issues with functionality)

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

gonzo requested review of this revision.Aug 8 2020, 6:33 AM
sys/arm64/rockchip/if_dwc_rk.c
63 ↗(On Diff #75604)

It's called gmac2io_txclk_dly_ena in the TRM, maybe we should do the same or at least something more close to the TRM. (Same comment for all the other ones)

73 ↗(On Diff #75604)

s/INT/INTF/
This could be confusing as it's not interrupts but interface.

79 ↗(On Diff #75604)

0 << 2

186 ↗(On Diff #75604)

if (bootverbose)

207 ↗(On Diff #75604)

Leftover from debug code ?

sys/dev/dwc/if_dwc.c
1221 ↗(On Diff #75604)

if (bootverbose)

gonzo marked 5 inline comments as done.Aug 8 2020, 7:23 PM

Fix all issues mentioned by manu@

This revision is now accepted and ready to land.Aug 9 2020, 10:30 AM
This revision was automatically updated to reflect the committed changes.