jme: Rework software reset procedure
authorSepherosa Ziehau <sephe@dragonflybsd.org>
Sun, 19 Dec 2010 12:07:13 +0000 (20:07 +0800)
committerSepherosa Ziehau <sephe@dragonflybsd.org>
Sun, 19 Dec 2010 12:18:04 +0000 (20:18 +0800)
commit409fe405305531a8d3b32c64f1eb28ec95d6b0eb
tree000d53e0e9bcf88245338c7c487ac8523a3d3a59
parent10cbe91407c5be57954145b01a6dcc1dce373ea6
jme: Rework software reset procedure

There is a wired TX/RX clock synchronization issues during software reset.
To address these issues we have to disable and enable TX/RX clocks several
times according to JMicron's document.

These clock synchronization issues seem to affect JMC250C/JMC260C chips,
however, it is claimed that these issues affact all JMC250/JMC260 chips.

Thank JMicron for providing JMC250C samples and detailed document.
sys/dev/netif/jme/if_jme.c
sys/dev/netif/jme/if_jmereg.h