summaryrefslogtreecommitdiffstats
path: root/sys/contrib/octeon-sdk
diff options
context:
space:
mode:
authorjmallett <jmallett@FreeBSD.org>2013-01-21 06:47:06 +0000
committerjmallett <jmallett@FreeBSD.org>2013-01-21 06:47:06 +0000
commit59faf5b75f8503e2135478a2ffc119654e1d8a2d (patch)
treec1e604c853e7a6d6552c1c59d8b4e35b9a140a40 /sys/contrib/octeon-sdk
parent88e660f780165423ebb47addf8ec4d835cecd97d (diff)
downloadFreeBSD-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/octeon-sdk')
-rw-r--r--sys/contrib/octeon-sdk/cvmx-helper-board.c15
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;
}
OpenPOWER on IntegriCloud