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>
This commit is contained in:

committed by
David S. Miller

parent
577941eb56
commit
877b7cb0b6
17
include/linux/platform_data/mv88e6xxx.h
Normal file
17
include/linux/platform_data/mv88e6xxx.h
Normal file
@@ -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
|
Reference in New Issue
Block a user