Lines Matching +full:1000 +full:- +full:10000
7 * Copyright (C) 2003-2018 Cavium, Inc.
14 * AS-IS and WITHOUT ANY WARRANTY; without even the implied warranty
21 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
35 #include <asm/octeon/cvmx-config.h>
37 #include <asm/octeon/cvmx-helper.h>
38 #include <asm/octeon/cvmx-helper-board.h>
40 #include <asm/octeon/cvmx-gmxx-defs.h>
41 #include <asm/octeon/cvmx-pcsx-defs.h>
42 #include <asm/octeon/cvmx-pcsxx-defs.h>
54 const uint64_t clock_mhz = cvmx_sysinfo_get()->cpu_clock_hz / 1000000; in __cvmx_helper_sgmii_hardware_init_one_time()
66 * appropriate value. 1000BASE-X specifies a 10ms in __cvmx_helper_sgmii_hardware_init_one_time()
74 /* 1000BASE-X */ in __cvmx_helper_sgmii_hardware_init_one_time()
76 (10000ull * clock_mhz) >> 10; in __cvmx_helper_sgmii_hardware_init_one_time()
88 * 1000BASE-X mode, tx_Config_Reg<D15:D0> is PCS*_AN*_ADV_REG. in __cvmx_helper_sgmii_hardware_init_one_time()
95 /* 1000BASE-X */ in __cvmx_helper_sgmii_hardware_init_one_time()
122 /* MAC Mode - Nothing to do */ in __cvmx_helper_sgmii_hardware_init_one_time()
151 if (cvmx_sysinfo_get()->board_type != CVMX_BOARD_TYPE_SIM) { in __cvmx_helper_sgmii_hardware_init_link()
157 union cvmx_pcsx_mrx_control_reg, reset, ==, 0, 10000)) { in __cvmx_helper_sgmii_hardware_init_link()
161 return -1; in __cvmx_helper_sgmii_hardware_init_link()
181 if ((cvmx_sysinfo_get()->board_type != CVMX_BOARD_TYPE_SIM) && in __cvmx_helper_sgmii_hardware_init_link()
184 10000)) { in __cvmx_helper_sgmii_hardware_init_link()
186 return -1; in __cvmx_helper_sgmii_hardware_init_link()
219 rx_idle, ==, 1, 10000) in __cvmx_helper_sgmii_hardware_init_link_speed()
222 10000)) { in __cvmx_helper_sgmii_hardware_init_link_speed()
226 return -1; in __cvmx_helper_sgmii_hardware_init_link_speed()
255 /* Setting from GMX-603 */ in __cvmx_helper_sgmii_hardware_init_link_speed()
268 case 1000: in __cvmx_helper_sgmii_hardware_init_link_speed()
321 if (cvmx_sysinfo_get()->board_type == CVMX_BOARD_TYPE_SIM) in __cvmx_helper_sgmii_hardware_init()
347 * Due to errata GMX-700 on CN56XXp1.x and CN52XXp1.x, the in __cvmx_helper_sgmii_probe()
407 if (cvmx_sysinfo_get()->board_type == CVMX_BOARD_TYPE_SIM) { in __cvmx_helper_sgmii_link_get()
411 result.s.speed = 1000; in __cvmx_helper_sgmii_link_get()
421 result.s.speed = 1000; in __cvmx_helper_sgmii_link_get()
428 /* 1000BASE-X */ in __cvmx_helper_sgmii_link_get()
473 result.s.speed = 1000; in __cvmx_helper_sgmii_link_get()