Skip to content

Commit

Permalink
Fix packet reception and other issues arising from incorrect ASX clock
Browse files Browse the repository at this point in the history
configuration on the physical ports of the Ubiquiti EdgeRouter Lite.
  • Loading branch information
caladri committed Jan 21, 2013
1 parent 88e660f commit 59faf5b
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions sys/contrib/octeon-sdk/cvmx-helper-board.c
Original file line number Diff line number Diff line change
Expand Up @@ -1394,6 +1394,21 @@ int __cvmx_helper_board_hardware_enable(int interface)
}
}
}
#if defined(OCTEON_VENDOR_UBIQUITI)
else if (cvmx_sysinfo_get()->board_type == CVMX_BOARD_TYPE_CUST_UBIQUITI_E100)
{
/* Configure ASX cloks for all ports on interface 0. */
if (interface == 0)
{
int port;

for (port = 0; port < 3; port++) {
cvmx_write_csr(CVMX_ASXX_TX_CLK_SETX(port, interface), 16);
cvmx_write_csr(CVMX_ASXX_RX_CLK_SETX(port, interface), 0);
}
}
}
#endif
return 0;
}

Expand Down

0 comments on commit 59faf5b

Please sign in to comment.