diff options
| author | Andrew Lunn <andrew@lunn.ch> | 2018-05-19 16:31:34 -0400 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2018-05-20 18:58:27 -0400 |
| commit | 877b7cb0b6f283593a663134ee52703f12c895cc (patch) | |
| tree | d385c1576f7336851c8c265f0fda0d2bc66508e7 /include/linux/platform_data | |
| parent | 577941eb56fe5fd95e1a60c6dba3dfaf606e3fde (diff) | |
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')
| -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 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0 */ | ||
| 2 | #ifndef __DSA_MV88E6XXX_H | ||
| 3 | #define __DSA_MV88E6XXX_H | ||
| 4 | |||
| 5 | #include <net/dsa.h> | ||
| 6 | |||
| 7 | struct dsa_mv88e6xxx_pdata { | ||
| 8 | /* Must be first, such that dsa_register_switch() can access this | ||
| 9 | * without gory pointer manipulations | ||
| 10 | */ | ||
| 11 | struct dsa_chip_data cd; | ||
| 12 | const char *compatible; | ||
| 13 | unsigned int enabled_ports; | ||
| 14 | struct net_device *netdev; | ||
| 15 | }; | ||
| 16 | |||
| 17 | #endif | ||
