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>
15 lines
508 B
C
15 lines
508 B
C
/* 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
|