Linux Kernel
3.7.1
|
#include <linux/of_address.h>
#include <linux/of_mdio.h>
#include <linux/jiffies.h>
#include "xilinx_axienet.h"
Go to the source code of this file.
Macros | |
#define | MAX_MDIO_FREQ 2500000 /* 2.5 MHz */ |
#define | DEFAULT_CLOCK_DIVISOR XAE_MDIO_DIV_DFT |
Functions | |
int | axienet_mdio_wait_until_ready (struct axienet_local *lp) |
int | axienet_mdio_setup (struct axienet_local *lp, struct device_node *np) |
void | axienet_mdio_teardown (struct axienet_local *lp) |
#define DEFAULT_CLOCK_DIVISOR XAE_MDIO_DIV_DFT |
Definition at line 17 of file xilinx_axienet_mdio.c.
#define MAX_MDIO_FREQ 2500000 /* 2.5 MHz */ |
Definition at line 16 of file xilinx_axienet_mdio.c.
int axienet_mdio_setup | ( | struct axienet_local * | lp, |
struct device_node * | np | ||
) |
axienet_mdio_setup - MDIO setup function : Pointer to axienet local data structure. : Pointer to device node
returns: 0 on success, -ETIMEDOUT on a timeout, -ENOMEM when mdiobus_alloc (to allocate memory for mii bus structure) fails.
Sets up the MDIO interface by initializing the MDIO clock and enabling the MDIO interface in hardware. Register the MDIO interface.
Definition at line 128 of file xilinx_axienet_mdio.c.
void axienet_mdio_teardown | ( | struct axienet_local * | lp | ) |
axienet_mdio_teardown - MDIO remove function : Pointer to axienet local data structure.
Unregisters the MDIO and frees any associate memory for mii bus.
Definition at line 232 of file xilinx_axienet_mdio.c.
int axienet_mdio_wait_until_ready | ( | struct axienet_local * | lp | ) |
Definition at line 20 of file xilinx_axienet_mdio.c.