Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5f292354 authored by Sebastian Hesselbarth's avatar Sebastian Hesselbarth Committed by David S. Miller
Browse files

net: mv643xx_eth: add phy_node to platform_data struct



This adds a struct device_node pointer for a phy passed by phandle
to mv643xx_eth node.

Signed-off-by: default avatarSebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 65a6f969
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -30,6 +30,7 @@ struct mv643xx_eth_shared_platform_data {
#define MV643XX_ETH_PHY_ADDR(x)		(0x80 | (x))
#define MV643XX_ETH_PHY_NONE		0xff

struct device_node;
struct mv643xx_eth_platform_data {
	/*
	 * Pointer back to our parent instance, and our port number.
@@ -41,6 +42,7 @@ struct mv643xx_eth_platform_data {
	 * Whether a PHY is present, and if yes, at which address.
	 */
	int			phy_addr;
	struct device_node	*phy_node;

	/*
	 * Use this MAC address if it is valid, overriding the