History

net: ethernet: ixp4xx: Support device tree probing

This adds device tree probing to the IXP4xx ethernet driver. Add a platform data bool to tell us whether to register an MDIO bus for the device or not, as well as the corresponding NPE. We need to drop the memory region request as part of this since the OF core will request the memory for the device.

Linus Walleij committed 5 years ago

Commit 95aafe91 parent 3e8047a3 files · +150 −63Browse files

Showing the changes to include/linux/platform_data (1 of 3 files). Show all

Unified · Split

include/linux/platform_data/eth_ixp4xx.h+2−0
@@ -14,6 +14,8 @@ struct eth_plat_info { · 13 unmodified lines
14 u8 rxq; /* configurable, currently 0 - 31 only */14 u8 rxq; /* configurable, currently 0 - 31 only */
15 u8 txreadyq;15 u8 txreadyq;
16 u8 hwaddr[6];16 u8 hwaddr[6];
17 u8 npe; /* NPE instance used by this interface */
18 bool has_mdio; /* If this instance has an MDIO bus */
17};19};
18 20
19#endif21#endif

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t