net: dsa: mv88e6xxx: move device mapping setup
Move the Device Mapping setup out of the specific Global 2 code, into the top level device setup function. Signed-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
b28f872dc4
commit
c7f047b6c7
@@ -60,7 +60,8 @@
|
||||
#define MV88E6XXX_G2_DEVICE_MAPPING 0x06
|
||||
#define MV88E6XXX_G2_DEVICE_MAPPING_UPDATE 0x8000
|
||||
#define MV88E6XXX_G2_DEVICE_MAPPING_DEV_MASK 0x1f00
|
||||
#define MV88E6XXX_G2_DEVICE_MAPPING_PORT_MASK 0x000f
|
||||
#define MV88E6352_G2_DEVICE_MAPPING_PORT_MASK 0x000f
|
||||
#define MV88E6390_G2_DEVICE_MAPPING_PORT_MASK 0x001f
|
||||
|
||||
/* Offset 0x07: Trunk Mask Table Register */
|
||||
#define MV88E6XXX_G2_TRUNK_MASK 0x07
|
||||
@@ -329,6 +330,9 @@ int mv88e6xxx_g2_pot_clear(struct mv88e6xxx_chip *chip);
|
||||
|
||||
int mv88e6xxx_g2_trunk_clear(struct mv88e6xxx_chip *chip);
|
||||
|
||||
int mv88e6xxx_g2_device_mapping_write(struct mv88e6xxx_chip *chip, int target,
|
||||
int port);
|
||||
|
||||
extern const struct mv88e6xxx_irq_ops mv88e6097_watchdog_ops;
|
||||
extern const struct mv88e6xxx_irq_ops mv88e6390_watchdog_ops;
|
||||
|
||||
@@ -502,6 +506,12 @@ static inline int mv88e6xxx_g2_trunk_clear(struct mv88e6xxx_chip *chip)
|
||||
return -EOPNOTSUPP;
|
||||
}
|
||||
|
||||
static inline int mv88e6xxx_g2_device_mapping_write(struct mv88e6xxx_chip *chip,
|
||||
int target, int port)
|
||||
{
|
||||
return -EOPNOTSUPP;
|
||||
}
|
||||
|
||||
#endif /* CONFIG_NET_DSA_MV88E6XXX_GLOBAL2 */
|
||||
|
||||
#endif /* _MV88E6XXX_GLOBAL2_H */
|
||||
|
Reference in New Issue
Block a user