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 17, 6:03 PM
Unknown Object (File)
Tue, Apr 2, 1:45 AM
Unknown Object (File)
Jan 22 2024, 3:45 PM
Unknown Object (File)
Dec 21 2023, 11:11 AM
Unknown Object (File)
Dec 20 2023, 9:11 PM
Unknown Object (File)
Nov 11 2023, 6:45 PM
Unknown Object (File)
Oct 12 2023, 12:14 AM
Unknown Object (File)
Sep 22 2023, 2:46 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.