Lines Matching +full:gmii +full:- +full:to +full:- +full:rgmii
7 * Copyright (C) 2003-2018 Cavium, Inc.
14 * AS-IS and WITHOUT ANY WARRANTY; without even the implied warranty
20 * along with this file; if not, write to the Free Software
21 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
29 * Functions for RGMII/GMII/MII initialization, configuration,
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>
46 * Probe RGMII ports and determine the number present
48 * @interface: Interface to probe
50 * Returns Number of RGMII/GMII/MII ports (0-4).
61 cvmx_dprintf("ERROR: RGMII initialize called in " in __cvmx_helper_rgmii_probe()
68 * GMII/MII mode. This limits us to 2 ports in __cvmx_helper_rgmii_probe()
92 * Put an RGMII interface in loopback mode. Internal packets sent
96 * @port: IPD port number to loop.
126 * @interface: Interface to setup
127 * @port: Port to setup (0..3)
136 /* Set hi water mark as per errata GMX-4 */ in __cvmx_helper_errata_asx_pass1()
153 * to get RGMII to function on the supplied interface.
155 * @interface: PKO Interface to configure (0 or 1)
171 return -1; in __cvmx_helper_rgmii_enable()
175 return -1; in __cvmx_helper_rgmii_enable()
177 /* Configure the ASX registers needed to use the RGMII ports */ in __cvmx_helper_rgmii_enable()
186 /* Configure the GMX registers needed to use the RGMII ports */ in __cvmx_helper_rgmii_enable()
188 /* Setting of CVMX_GMXX_TXX_THRESH has been moved to in __cvmx_helper_rgmii_enable()
193 sys_info_ptr-> in __cvmx_helper_rgmii_enable()
197 * Configure more flexible RGMII preamble in __cvmx_helper_rgmii_enable()
215 * pause frame (0 time) will be transmitted to restart in __cvmx_helper_rgmii_enable()
258 * the last call to cvmx_helper_link_set().
260 * @ipd_port: IPD/PKO port to query
289 * @ipd_port: IPD/PKO port to configure
309 if (cvmx_sysinfo_get()->board_type == CVMX_BOARD_TYPE_SIM) in __cvmx_helper_rgmii_link_set()
344 * Poll the GMX state machine waiting for it to become in __cvmx_helper_rgmii_link_set()
372 /* Set the link speed. Anything unknown is set to 1Gbps */ in __cvmx_helper_rgmii_link_set()
406 * ---- --- ----- ------ ----------------------------------------- in __cvmx_helper_rgmii_link_set()
408 * 0 1 X 0 Port 0 is RGMII in __cvmx_helper_rgmii_link_set()
410 * 1 1 0 X Ports 1 and 2 are configured as RGMII ports. in __cvmx_helper_rgmii_link_set()
411 * 1 1 1 X Port 1: GMII/MII; Port 2: disabled. GMII or in __cvmx_helper_rgmii_link_set()
424 /* Do a read to make sure all setup stuff is complete */ in __cvmx_helper_rgmii_link_set()
435 /* Re-enable the TX path */ in __cvmx_helper_rgmii_link_set()