diff options
| author | David S. Miller <davem@davemloft.net> | 2018-05-20 18:58:28 -0400 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2018-05-20 18:58:28 -0400 |
| commit | bf4bd7a727a13f810c003f592425171adbbd0cda (patch) | |
| tree | 4d8fee548a2e1e414b8bd9bb59725294e2be170d /include/linux/platform_data | |
| parent | 81ee33d87362ac542cd8ad6d6fb7b886a51e2c96 (diff) | |
| parent | 00baabe5286c41d21ed4a78f479b021eba1f0d51 (diff) | |
| download | talos-op-linux-bf4bd7a727a13f810c003f592425171adbbd0cda.tar.gz talos-op-linux-bf4bd7a727a13f810c003f592425171adbbd0cda.zip | |
Merge branch 'mv88exxx-pdata'
Andrew Lunn says:
====================
Platform data support for mv88exxx
There are a few Intel based platforms making use of the mv88exxx.
These don't easily have access to device tree in order to instantiate
the switch driver. These patches allow the use of platform data to
hold the configuration.
====================
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 | 18 |
1 files changed, 18 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..f63af2955ea0 --- /dev/null +++ b/include/linux/platform_data/mv88e6xxx.h @@ -0,0 +1,18 @@ +/* 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; + u32 eeprom_len; +}; + +#endif |

