summaryrefslogtreecommitdiffstats
path: root/drivers/net/dsa/microchip/lan937x.h
diff options
context:
space:
mode:
authorArun Ramadoss <arun.ramadoss@microchip.com>2022-07-01 20:31:46 +0530
committerDavid S. Miller <davem@davemloft.net>2022-07-02 16:34:05 +0100
commit55ab6ffaf378d6a5ed9682f24fec4b947eb29930 (patch)
tree57e130f1a027a6a1aaa1654257b843319ea42ef3 /drivers/net/dsa/microchip/lan937x.h
parent457c182af597a5a2a9c1c4d12beac1ff35ee76e2 (diff)
downloadlinux-55ab6ffaf378d6a5ed9682f24fec4b947eb29930.tar.gz
linux-55ab6ffaf378d6a5ed9682f24fec4b947eb29930.tar.bz2
linux-55ab6ffaf378d6a5ed9682f24fec4b947eb29930.zip
net: dsa: microchip: add DSA support for microchip LAN937x
Basic DSA driver support for lan937x and the device will be configured through SPI interface. It adds the lan937x_dev_ops in ksz_common.c file and tries to reuse the functionality of ksz9477 series switch. drivers/net/dsa/microchip/ path is already part of MAINTAINERS & the new files come under this path. Hence no update needed to the MAINTAINERS Signed-off-by: Arun Ramadoss <arun.ramadoss@microchip.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/dsa/microchip/lan937x.h')
-rw-r--r--drivers/net/dsa/microchip/lan937x.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/drivers/net/dsa/microchip/lan937x.h b/drivers/net/dsa/microchip/lan937x.h
new file mode 100644
index 000000000000..534f5a7a1129
--- /dev/null
+++ b/drivers/net/dsa/microchip/lan937x.h
@@ -0,0 +1,15 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+/* Microchip lan937x dev ops headers
+ * Copyright (C) 2019-2022 Microchip Technology Inc.
+ */
+
+#ifndef __LAN937X_CFG_H
+#define __LAN937X_CFG_H
+
+int lan937x_reset_switch(struct ksz_device *dev);
+int lan937x_setup(struct dsa_switch *ds);
+void lan937x_port_setup(struct ksz_device *dev, int port, bool cpu_port);
+void lan937x_config_cpu_port(struct dsa_switch *ds);
+int lan937x_switch_init(struct ksz_device *dev);
+void lan937x_switch_exit(struct ksz_device *dev);
+#endif