diff options
author | Petri Gynther | 2014-12-01 16:18:08 -0800 |
---|---|---|
committer | David S. Miller | 2014-12-08 20:26:59 -0500 |
commit | b0ba512e25d729a43858ad1f6cb8b94dbb95dbeb (patch) | |
tree | a0c2f3ae05bcd1123fef5689562d3c7a6c3e2280 /include | |
parent | c3582a2c4d0baf1fa3955c8b3d3d61308df474c7 (diff) |
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>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/platform_data/bcmgenet.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/include/linux/platform_data/bcmgenet.h b/include/linux/platform_data/bcmgenet.h new file mode 100644 index 000000000000..26af54321958 --- /dev/null +++ b/include/linux/platform_data/bcmgenet.h @@ -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 |