diff options
author | jmallett <jmallett@FreeBSD.org> | 2013-01-21 06:47:06 +0000 |
---|---|---|
committer | jmallett <jmallett@FreeBSD.org> | 2013-01-21 06:47:06 +0000 |
commit | 59faf5b75f8503e2135478a2ffc119654e1d8a2d (patch) | |
tree | c1e604c853e7a6d6552c1c59d8b4e35b9a140a40 /sys/contrib | |
parent | 88e660f780165423ebb47addf8ec4d835cecd97d (diff) | |
download | FreeBSD-src-59faf5b75f8503e2135478a2ffc119654e1d8a2d.zip FreeBSD-src-59faf5b75f8503e2135478a2ffc119654e1d8a2d.tar.gz |
Fix packet reception and other issues arising from incorrect ASX clock
configuration on the physical ports of the Ubiquiti EdgeRouter Lite.
Diffstat (limited to 'sys/contrib')
-rw-r--r-- | sys/contrib/octeon-sdk/cvmx-helper-board.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/sys/contrib/octeon-sdk/cvmx-helper-board.c b/sys/contrib/octeon-sdk/cvmx-helper-board.c index 8d2b0bd..d97813e 100644 --- a/sys/contrib/octeon-sdk/cvmx-helper-board.c +++ b/sys/contrib/octeon-sdk/cvmx-helper-board.c @@ -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; } |