Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

atge: register L1C reset funtction in atge_l1c_mii_ops table #80

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion usr/src/uts/common/io/atge/atge_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ static mii_ops_t atge_l1c_mii_ops = {
atge_l1c_mii_read,
atge_l1c_mii_write,
atge_mii_notify,
NULL
atge_l1c_mii_reset
};

/*
Expand Down
6 changes: 2 additions & 4 deletions usr/src/uts/common/io/atge/atge_mii.c
Original file line number Diff line number Diff line change
Expand Up @@ -248,14 +248,12 @@ atge_l1c_mii_reset(void *arg)
phyaddr = mii_get_addr(atgep->atge_mii);

/* Reset magic from Linux, via Freebsd */
OUTW(atgep, ATGE_GPHY_CTRL,
GPHY_CTRL_HIB_EN | GPHY_CTRL_HIB_PULSE | GPHY_CTRL_SEL_ANA_RESET);
OUTW(atgep, ATGE_GPHY_CTRL, GPHY_CTRL_SEL_ANA_RESET);
(void) INW(atgep, ATGE_GPHY_CTRL);
drv_usecwait(10 * 1000);

OUTW(atgep, ATGE_GPHY_CTRL,
GPHY_CTRL_EXT_RESET | GPHY_CTRL_HIB_EN | GPHY_CTRL_HIB_PULSE |
GPHY_CTRL_SEL_ANA_RESET);
GPHY_CTRL_EXT_RESET | GPHY_CTRL_SEL_ANA_RESET);
(void) INW(atgep, ATGE_GPHY_CTRL);
drv_usecwait(10 * 1000);

Expand Down