b53: allow configuration through device tree
[openwrt/staging/noltari.git] / target / linux / generic / files / drivers / net / phy / b53 / b53_priv.h
index 53da97ebbaf179741ddc49f2ba63ee0ad03e3106..277c75d367a8e120e9846fe97f838f717123450a 100644 (file)
@@ -170,6 +170,14 @@ static inline int is_cpu_port(struct b53_device *dev, int port)
        return dev->sw_dev.cpu_port == port;
 }
 
+static inline int is_imp_port(struct b53_device *dev, int port)
+{
+       if (is5325(dev) || is5365(dev))
+               return port == B53_CPU_PORT_25;
+       else
+               return port == B53_CPU_PORT;
+}
+
 static inline struct b53_device *sw_to_b53(struct switch_dev *sw)
 {
        return container_of(sw, struct b53_device, sw_dev);