-
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: bcmgenet: enable driver to work without a device tree
Modify bcmgenet driver so that it can be used on Broadcom 7xxx MIPS-based STB platforms without a device tree. Signed-off-by: Petri Gynther <pgynther@google.com> Acked-by: Florian Fainelli <f.fainelli@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
- Loading branch information
Petri Gynther
authored and
David S. Miller
committed
Dec 9, 2014
1 parent
c3582a2
commit b0ba512
Showing
4 changed files
with
143 additions
and
33 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,18 @@ | ||
#ifndef __LINUX_PLATFORM_DATA_BCMGENET_H__ | ||
#define __LINUX_PLATFORM_DATA_BCMGENET_H__ | ||
|
||
#include <linux/types.h> | ||
#include <linux/if_ether.h> | ||
#include <linux/phy.h> | ||
|
||
struct bcmgenet_platform_data { | ||
bool mdio_enabled; | ||
phy_interface_t phy_interface; | ||
int phy_address; | ||
int phy_speed; | ||
int phy_duplex; | ||
u8 mac_address[ETH_ALEN]; | ||
int genet_version; | ||
}; | ||
|
||
#endif |