]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
ixp4xx_eth: move platform_data definition
authorArnd Bergmann <arnd@arndb.de>
Sun, 12 Jan 2020 12:04:45 +0000 (13:04 +0100)
committerJakub Kicinski <kuba@kernel.org>
Sun, 12 Jan 2020 20:59:53 +0000 (12:59 -0800)
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>
arch/arm/mach-ixp4xx/include/mach/platform.h
drivers/net/ethernet/xscale/ixp46x_ts.h [moved from drivers/net/ethernet/xscale/ptp_ixp46x.h with 100% similarity]
drivers/net/ethernet/xscale/ixp4xx_eth.c
include/linux/platform_data/eth_ixp4xx.h [new file with mode: 0644]

index 04ef8025acccf74cd579ca296aa4052b9f7fb6c7..6d403fe0bf529a0ad21efcf538815c5df87efd11 100644 (file)
@@ -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
  */
index 0075ecdb21f4d2896bc2223321a98bb22f6fbec5..e811bf0d23cb2307fee178edbee2432f1ef65336 100644 (file)
@@ -29,6 +29,7 @@
 #include <linux/net_tstamp.h>
 #include <linux/of.h>
 #include <linux/phy.h>
+#include <linux/platform_data/eth_ixp4xx.h>
 #include <linux/platform_device.h>
 #include <linux/ptp_classify.h>
 #include <linux/slab.h>
diff --git a/include/linux/platform_data/eth_ixp4xx.h b/include/linux/platform_data/eth_ixp4xx.h
new file mode 100644 (file)
index 0000000..6f652ea
--- /dev/null
@@ -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