diff options
author | Andrew Lunn <andrew@lunn.ch> | 2018-05-19 23:31:34 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-05-21 01:58:27 +0300 |
commit | 877b7cb0b6f283593a663134ee52703f12c895cc (patch) | |
tree | d385c1576f7336851c8c265f0fda0d2bc66508e7 /include/linux/platform_data/mv88e6xxx.h | |
parent | 577941eb56fe5fd95e1a60c6dba3dfaf606e3fde (diff) | |
download | linux-877b7cb0b6f283593a663134ee52703f12c895cc.tar.xz |
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 'include/linux/platform_data/mv88e6xxx.h')
-rw-r--r-- | include/linux/platform_data/mv88e6xxx.h | 17 |
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 |