mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-23 07:01:23 +00:00
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>
This commit is contained in:
parent
2785543fbf
commit
a41a5b26d2
4 changed files with 21 additions and 12 deletions
|
@ -15,6 +15,7 @@
|
||||||
#ifndef __ASSEMBLY__
|
#ifndef __ASSEMBLY__
|
||||||
|
|
||||||
#include <linux/reboot.h>
|
#include <linux/reboot.h>
|
||||||
|
#include <linux/platform_data/eth_ixp4xx.h>
|
||||||
|
|
||||||
#include <asm/types.h>
|
#include <asm/types.h>
|
||||||
|
|
||||||
|
@ -92,18 +93,6 @@ struct ixp4xx_pata_data {
|
||||||
void __iomem *cs1;
|
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
|
* Frequency of clock used for primary clocksource
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -29,6 +29,7 @@
|
||||||
#include <linux/net_tstamp.h>
|
#include <linux/net_tstamp.h>
|
||||||
#include <linux/of.h>
|
#include <linux/of.h>
|
||||||
#include <linux/phy.h>
|
#include <linux/phy.h>
|
||||||
|
#include <linux/platform_data/eth_ixp4xx.h>
|
||||||
#include <linux/platform_device.h>
|
#include <linux/platform_device.h>
|
||||||
#include <linux/ptp_classify.h>
|
#include <linux/ptp_classify.h>
|
||||||
#include <linux/slab.h>
|
#include <linux/slab.h>
|
||||||
|
|
19
include/linux/platform_data/eth_ixp4xx.h
Normal file
19
include/linux/platform_data/eth_ixp4xx.h
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
/* 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];
|
||||||
|
};
|
||||||
|
|
||||||
|
#endif
|
Loading…
Add table
Add a link
Reference in a new issue