From 59faf5b75f8503e2135478a2ffc119654e1d8a2d Mon Sep 17 00:00:00 2001 From: jmallett Date: Mon, 21 Jan 2013 06:47:06 +0000 Subject: Fix packet reception and other issues arising from incorrect ASX clock configuration on the physical ports of the Ubiquiti EdgeRouter Lite. --- sys/contrib/octeon-sdk/cvmx-helper-board.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) 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; } -- cgit v1.1