Lines Matching +full:disable +full:- +full:hi +full:- +full:speed
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
34 #include <asm/octeon/cvmx-config.h>
36 #include <asm/octeon/cvmx-pko.h>
37 #include <asm/octeon/cvmx-helper.h>
38 #include <asm/octeon/cvmx-helper-board.h>
40 #include <asm/octeon/cvmx-npi-defs.h>
41 #include <asm/octeon/cvmx-gmxx-defs.h>
42 #include <asm/octeon/cvmx-asxx-defs.h>
43 #include <asm/octeon/cvmx-dbg-defs.h>
50 * Returns Number of RGMII/GMII/MII ports (0-4).
108 gmx_cfg.s.speed = 1; in cvmx_helper_rgmii_internal_loopback()
136 /* Set hi water mark as per errata GMX-4 */ in __cvmx_helper_errata_asx_pass1()
171 return -1; in __cvmx_helper_rgmii_enable()
175 return -1; in __cvmx_helper_rgmii_enable()
193 sys_info_ptr-> in __cvmx_helper_rgmii_enable()
277 result.s.speed = 1000; in __cvmx_helper_rgmii_link_get()
308 /* Ignore speed sets in the simulator */ in __cvmx_helper_rgmii_link_set()
309 if (cvmx_sysinfo_get()->board_type == CVMX_BOARD_TYPE_SIM) in __cvmx_helper_rgmii_link_set()
317 /* Disable the lowest level RX */ in __cvmx_helper_rgmii_link_set()
323 /* Disable all queues so that TX should become idle */ in __cvmx_helper_rgmii_link_set()
335 /* Disable backpressure */ in __cvmx_helper_rgmii_link_set()
345 * idle. Preferably we should only change speed when it is in __cvmx_helper_rgmii_link_set()
346 * idle. If it doesn't become idle we will still do the speed in __cvmx_helper_rgmii_link_set()
357 /* Disable the port before we make any changes */ in __cvmx_helper_rgmii_link_set()
372 /* Set the link speed. Anything unknown is set to 1Gbps */ in __cvmx_helper_rgmii_link_set()
373 if (link_info.s.speed == 10) { in __cvmx_helper_rgmii_link_set()
375 new_gmx_cfg.s.speed = 0; in __cvmx_helper_rgmii_link_set()
376 } else if (link_info.s.speed == 100) { in __cvmx_helper_rgmii_link_set()
378 new_gmx_cfg.s.speed = 0; in __cvmx_helper_rgmii_link_set()
381 new_gmx_cfg.s.speed = 1; in __cvmx_helper_rgmii_link_set()
385 if (link_info.s.speed == 10) { in __cvmx_helper_rgmii_link_set()
389 } else if (link_info.s.speed == 100) { in __cvmx_helper_rgmii_link_set()
400 if ((link_info.s.speed == 10) || (link_info.s.speed == 100)) { in __cvmx_helper_rgmii_link_set()
406 * ---- --- ----- ------ ----------------------------------------- in __cvmx_helper_rgmii_link_set()
412 * MII port is selected by GMX_PRT1_CFG[SPEED]. in __cvmx_helper_rgmii_link_set()
435 /* Re-enable the TX path */ in __cvmx_helper_rgmii_link_set()