net: ethernet: ixp4xx: Support device tree probing
authorLinus Walleij <linus.walleij@linaro.org>
Sun, 25 Apr 2021 00:30:38 +0000 (02:30 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 26 Apr 2021 01:27:13 +0000 (18:27 -0700)
commit95aafe911db602d19b00d2a88c3d54a84119f5dc
tree6651d20a4ab4913e16063218aa2442042634cf54
parent3e8047a98553e234a751f4f7f42d687ba98c0822
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.

Cc: Zoltan HERPAI <wigyori@uid0.hu>
Cc: Raylynn Knight <rayknight@me.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/xscale/Kconfig
drivers/net/ethernet/xscale/ixp4xx_eth.c
include/linux/platform_data/eth_ixp4xx.h