-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
net: ll_temac: Extend support to non-device-tree platforms
Support initialization with platdata, so the driver can be used on non-device-tree platforms. For currently supported device-tree platforms, the driver should behave as before. Signed-off-by: Esben Haabendal <esben@geanix.com> Signed-off-by: David S. Miller <davem@davemloft.net>
- Loading branch information
Esben Haabendal
authored and
David S. Miller
committed
May 1, 2019
1 parent
a63625d
commit 8425c41
Showing
4 changed files
with
166 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
/* SPDX-License-Identifier: GPL-2.0 */ | ||
#ifndef __LINUX_XILINX_LL_TEMAC_H | ||
#define __LINUX_XILINX_LL_TEMAC_H | ||
|
||
#include <linux/if_ether.h> | ||
#include <linux/phy.h> | ||
|
||
struct ll_temac_platform_data { | ||
bool txcsum; /* Enable/disable TX checksum */ | ||
bool rxcsum; /* Enable/disable RX checksum */ | ||
u8 mac_addr[ETH_ALEN]; /* MAC address (6 bytes) */ | ||
/* Clock frequency for input to MDIO clock generator */ | ||
u32 mdio_clk_freq; | ||
unsigned long long mdio_bus_id; /* Unique id for MDIO bus */ | ||
int phy_addr; /* Address of the PHY to connect to */ | ||
phy_interface_t phy_interface; /* PHY interface mode */ | ||
}; | ||
|
||
#endif /* __LINUX_XILINX_LL_TEMAC_H */ |