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.
Showing the changes to include/linux/platform_data (1 of 3 files). Show all
Unified · Split
| @@ -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 | #endif | 21 | #endif |