aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/platform_data/mv88e6xxx.h
diff options
context:
space:
mode:
authorAndrew Lunn <andrew@lunn.ch>2018-05-19 22:31:34 +0200
committerDavid S. Miller <davem@davemloft.net>2018-05-20 18:58:27 -0400
commit877b7cb0b6f283593a663134ee52703f12c895cc (patch)
treed385c1576f7336851c8c265f0fda0d2bc66508e7 /include/linux/platform_data/mv88e6xxx.h
parentnet: dsa: mv88e6xxx: Remove OF check for IRQ domain (diff)
downloadlinux-dev-877b7cb0b6f283593a663134ee52703f12c895cc.tar.xz
linux-dev-877b7cb0b6f283593a663134ee52703f12c895cc.zip
net: dsa: mv88e6xxx: Add minimal platform_data support
Not all the world uses device tree. Some parts of the world still use platform devices and platform data. Add basic support for probing a Marvell switch via platform data. Signed-off-by: Andrew Lunn <andrew@lunn.ch> Reviewed-by: Florian Fainelli <f.fainelli@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to '')
-rw-r--r--include/linux/platform_data/mv88e6xxx.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/include/linux/platform_data/mv88e6xxx.h b/include/linux/platform_data/mv88e6xxx.h
new file mode 100644
index 000000000000..88e91e05f48f
--- /dev/null
+++ b/include/linux/platform_data/mv88e6xxx.h
@@ -0,0 +1,17 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+#ifndef __DSA_MV88E6XXX_H
+#define __DSA_MV88E6XXX_H
+
+#include <net/dsa.h>
+
+struct dsa_mv88e6xxx_pdata {
+ /* Must be first, such that dsa_register_switch() can access this
+ * without gory pointer manipulations
+ */
+ struct dsa_chip_data cd;
+ const char *compatible;
+ unsigned int enabled_ports;
+ struct net_device *netdev;
+};
+
+#endif