-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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>
- Loading branch information
Andrew Lunn
authored and
David S. Miller
committed
May 20, 2018
1 parent
577941e
commit 877b7cb
Showing
3 changed files
with
67 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |