2015-04-04 13:51:21 -06:00
|
|
|
/*
|
|
|
|
* This file is based on code from OCTEON SDK by Cavium Networks.
|
2009-05-05 18:35:21 -06:00
|
|
|
*
|
|
|
|
* Copyright (c) 2003-2007 Cavium Networks
|
|
|
|
*
|
|
|
|
* This file is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License, Version 2, as
|
|
|
|
* published by the Free Software Foundation.
|
2015-04-04 13:51:21 -06:00
|
|
|
*/
|
|
|
|
|
2014-05-29 04:10:02 -06:00
|
|
|
#include <linux/phy.h>
|
2009-05-05 18:35:21 -06:00
|
|
|
#include <linux/kernel.h>
|
|
|
|
#include <linux/netdevice.h>
|
2011-06-04 09:35:58 -06:00
|
|
|
#include <linux/ratelimit.h>
|
2009-05-05 18:35:21 -06:00
|
|
|
#include <net/dst.h>
|
|
|
|
|
|
|
|
#include <asm/octeon/octeon.h>
|
|
|
|
|
|
|
|
#include "ethernet-defines.h"
|
|
|
|
#include "octeon-ethernet.h"
|
|
|
|
#include "ethernet-util.h"
|
2014-05-29 04:10:02 -06:00
|
|
|
#include "ethernet-mdio.h"
|
2009-05-05 18:35:21 -06:00
|
|
|
|
2011-11-22 07:47:00 -07:00
|
|
|
#include <asm/octeon/cvmx-helper.h>
|
2009-05-05 18:35:21 -06:00
|
|
|
|
2011-11-22 07:47:00 -07:00
|
|
|
#include <asm/octeon/cvmx-gmxx-defs.h>
|
2009-05-05 18:35:21 -06:00
|
|
|
|
2014-05-29 04:10:02 -06:00
|
|
|
int cvm_oct_sgmii_open(struct net_device *dev)
|
2009-05-05 18:35:21 -06:00
|
|
|
{
|
2015-10-17 13:28:55 -06:00
|
|
|
return cvm_oct_common_open(dev, cvm_oct_link_poll);
|
2014-05-29 04:10:02 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
int cvm_oct_sgmii_init(struct net_device *dev)
|
|
|
|
{
|
2009-05-05 18:35:21 -06:00
|
|
|
cvm_oct_common_init(dev);
|
|
|
|
|
|
|
|
/* FIXME: Need autoneg logic */
|
|
|
|
return 0;
|
|
|
|
}
|