aboutsummaryrefslogtreecommitdiffstats
path: root/arch/mips/cavium-octeon/executive/cvmx-helper-sgmii.c
diff options
context:
space:
mode:
authorDavid Daney <david.daney@cavium.com>2011-11-22 09:47:03 -0500
committerRalf Baechle <ralf@linux-mips.org>2011-12-07 17:03:29 -0500
commit37d3bfd9927a8c509d31eac1036b2c3c905f8241 (patch)
treecf6db6e3ac5335313f1345829b0c9d3cd94da07e /arch/mips/cavium-octeon/executive/cvmx-helper-sgmii.c
parentada11a339dc1dd5cf6724638675bfc008de99fac (diff)
MIPS: Octeon: Rearrange CVMX files in preperation for device tree
Signed-off-by: David Daney <david.daney@cavium.com> Cc: linux-mips@linux-mips.org Cc: netdev@vger.kernel.org Cc: devel@driverdev.osuosl.org Acked-by: Greg Kroah-Hartman <gregkh@suse.de> Patchwork: https://patchwork.linux-mips.org/patch/2941/ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/cavium-octeon/executive/cvmx-helper-sgmii.c')
-rw-r--r--arch/mips/cavium-octeon/executive/cvmx-helper-sgmii.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/arch/mips/cavium-octeon/executive/cvmx-helper-sgmii.c b/arch/mips/cavium-octeon/executive/cvmx-helper-sgmii.c
index 464347ffd362..0c0bf5d30e70 100644
--- a/arch/mips/cavium-octeon/executive/cvmx-helper-sgmii.c
+++ b/arch/mips/cavium-octeon/executive/cvmx-helper-sgmii.c
@@ -326,6 +326,10 @@ static int __cvmx_helper_sgmii_hardware_init(int interface, int num_ports)
326 return 0; 326 return 0;
327} 327}
328 328
329int __cvmx_helper_sgmii_enumerate(int interface)
330{
331 return 4;
332}
329/** 333/**
330 * Probe a SGMII interface and determine the number of ports 334 * Probe a SGMII interface and determine the number of ports
331 * connected to it. The SGMII interface should still be down after 335 * connected to it. The SGMII interface should still be down after
@@ -347,7 +351,7 @@ int __cvmx_helper_sgmii_probe(int interface)
347 mode.u64 = cvmx_read_csr(CVMX_GMXX_INF_MODE(interface)); 351 mode.u64 = cvmx_read_csr(CVMX_GMXX_INF_MODE(interface));
348 mode.s.en = 1; 352 mode.s.en = 1;
349 cvmx_write_csr(CVMX_GMXX_INF_MODE(interface), mode.u64); 353 cvmx_write_csr(CVMX_GMXX_INF_MODE(interface), mode.u64);
350 return 4; 354 return __cvmx_helper_sgmii_enumerate(interface);
351} 355}
352 356
353/** 357/**