diff options
author | David Gwynne <dlg@cvs.openbsd.org> | 2023-04-22 05:01:45 +0000 |
---|---|---|
committer | David Gwynne <dlg@cvs.openbsd.org> | 2023-04-22 05:01:45 +0000 |
commit | fecdff9b3d213972c88296b60961db77b2d3a229 (patch) | |
tree | 3a3969921c2b25fb553b3ebfb58aacfcda9709a6 /sys/dev/ic/rt2661reg.h | |
parent | 3383e0b7ca66cbd8b3c49dd73d6f43fd683e437c (diff) |
use if_baudrate and if_link_state for mac config, not mii media values
the phy code sets if_baudrate and if_link_state, so the information
needed to config the mac on the chip is there anyway. it also has
the benefit that the driver doesnt have to understand every type
of media (eg, 1000baseTX vs 1000baseSX) because they're both the
same speed and that's what matters when configuring the chip and
the clocks etc.
this is a step toward being able to use a fixed-link node in the
device tree instead of a phy, as is found on the banana pi bpi-r2
pro on the gmac connected to a switch chip.
Diffstat (limited to 'sys/dev/ic/rt2661reg.h')
0 files changed, 0 insertions, 0 deletions