mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-07 13:43:51 +00:00
95aafe911d
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>
22 lines
541 B
C
22 lines
541 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#ifndef __PLATFORM_DATA_ETH_IXP4XX
|
|
#define __PLATFORM_DATA_ETH_IXP4XX
|
|
|
|
#include <linux/types.h>
|
|
|
|
#define IXP4XX_ETH_NPEA 0x00
|
|
#define IXP4XX_ETH_NPEB 0x10
|
|
#define IXP4XX_ETH_NPEC 0x20
|
|
|
|
/* Information about built-in Ethernet MAC interfaces */
|
|
struct eth_plat_info {
|
|
u8 phy; /* MII PHY ID, 0 - 31 */
|
|
u8 rxq; /* configurable, currently 0 - 31 only */
|
|
u8 txreadyq;
|
|
u8 hwaddr[6];
|
|
u8 npe; /* NPE instance used by this interface */
|
|
bool has_mdio; /* If this instance has an MDIO bus */
|
|
};
|
|
|
|
#endif
|