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>
This commit is contained in:
parent
c3582a2c4d
commit
b0ba512e25
4 changed files with 143 additions and 33 deletions
18
include/linux/platform_data/bcmgenet.h
Normal file
18
include/linux/platform_data/bcmgenet.h
Normal file
|
@ -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
|
Loading…
Add table
Add a link
Reference in a new issue