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
F83009068: D26006.id75646.diff
Sun, May 5, 4:02 AM
Unknown Object (File)
Mon, Apr 29, 3:34 AM
Unknown Object (File)
Sun, Apr 28, 12:21 PM
Unknown Object (File)
Sat, Apr 27, 11:02 AM
Unknown Object (File)
Wed, Apr 17, 6:03 PM
Unknown Object (File)
Apr 2 2024, 1:45 AM
Unknown Object (File)
Jan 22 2024, 3:45 PM
Unknown Object (File)
Dec 21 2023, 11:11 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 Passed
Unit
No Test Coverage
Build Status
Buildable 32881
Build 30284: arc lint + arc unit

Event Timeline

gonzo requested review of this revision.Aug 8 2020, 6:33 AM
sys/arm64/rockchip/if_dwc_rk.c
63–79

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

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

79

0 << 2

186

if (bootverbose)

187

Leftover from debug code ?

sys/dev/dwc/if_dwc.c
1221

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.