diff options
author | Arnd Bergmann <arnd@arndb.de> | 2020-01-12 13:04:45 +0100 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2020-01-12 12:59:53 -0800 |
commit | a41a5b26d29fb0123cd3290dca453857cd8c0c66 (patch) | |
tree | 690a8e37be6e44f4c377bb5efb4cfeef6a0f4182 /arch/arm/mach-ixp4xx | |
parent | 2785543fbf0498eb749adee3d129ba8ac139c729 (diff) | |
download | linux-a41a5b26d29fb0123cd3290dca453857cd8c0c66.tar.gz linux-a41a5b26d29fb0123cd3290dca453857cd8c0c66.tar.bz2 linux-a41a5b26d29fb0123cd3290dca453857cd8c0c66.zip |
ixp4xx_eth: move platform_data definition
The platform data is needed to compile the driver as standalone,
so move it to a global location along with similar files.
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'arch/arm/mach-ixp4xx')
-rw-r--r-- | arch/arm/mach-ixp4xx/include/mach/platform.h | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/arch/arm/mach-ixp4xx/include/mach/platform.h b/arch/arm/mach-ixp4xx/include/mach/platform.h index 04ef8025accc..6d403fe0bf52 100644 --- a/arch/arm/mach-ixp4xx/include/mach/platform.h +++ b/arch/arm/mach-ixp4xx/include/mach/platform.h @@ -15,6 +15,7 @@ #ifndef __ASSEMBLY__ #include <linux/reboot.h> +#include <linux/platform_data/eth_ixp4xx.h> #include <asm/types.h> @@ -92,18 +93,6 @@ struct ixp4xx_pata_data { void __iomem *cs1; }; -#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]; -}; - /* * Frequency of clock used for primary clocksource */ |