Commit 6e65f5f5 authored by Pieter Van Trappen's avatar Pieter Van Trappen Committed by David S. Miller

net: dsa: microchip: rename ksz8 series files

The first KSZ8 series implementation was done for a KSZ8795 device but
since several other KSZ8 devices have been added. Rename these files
to adhere to the ksz8 naming convention as already used in most
functions and the existing ksz8.h; add an explanatory note.
Signed-off-by: default avatarPieter Van Trappen <pieter.van.trappen@cern.ch>
Acked-by: default avatarArun Ramadoss <arun.ramadoss@microchip.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 76930d3d
# SPDX-License-Identifier: GPL-2.0-only # SPDX-License-Identifier: GPL-2.0-only
menuconfig NET_DSA_MICROCHIP_KSZ_COMMON menuconfig NET_DSA_MICROCHIP_KSZ_COMMON
tristate "Microchip KSZ8795/KSZ9477/LAN937x series switch support" tristate "Microchip KSZ8XXX/KSZ9XXX/LAN937X series switch support"
depends on NET_DSA depends on NET_DSA
select NET_DSA_TAG_KSZ select NET_DSA_TAG_KSZ
select NET_DSA_TAG_NONE select NET_DSA_TAG_NONE
select NET_IEEE8021Q_HELPERS select NET_IEEE8021Q_HELPERS
select DCB select DCB
help help
This driver adds support for Microchip KSZ9477 series switch and This driver adds support for Microchip KSZ8, KSZ9 and
KSZ8795/KSZ88x3 switch chips. LAN937X series switch chips, being KSZ8863/8873,
KSZ8895/8864, KSZ8794/8795/8765,
KSZ9477/9897/9896/9567/8567, KSZ9893/9563/8563 and
LAN9370/9371/9372/9373/9374.
config NET_DSA_MICROCHIP_KSZ9477_I2C config NET_DSA_MICROCHIP_KSZ9477_I2C
tristate "KSZ series I2C connected switch driver" tristate "KSZ series I2C connected switch driver"
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
obj-$(CONFIG_NET_DSA_MICROCHIP_KSZ_COMMON) += ksz_switch.o obj-$(CONFIG_NET_DSA_MICROCHIP_KSZ_COMMON) += ksz_switch.o
ksz_switch-objs := ksz_common.o ksz_dcb.o ksz_switch-objs := ksz_common.o ksz_dcb.o
ksz_switch-objs += ksz9477.o ksz9477_acl.o ksz9477_tc_flower.o ksz_switch-objs += ksz9477.o ksz9477_acl.o ksz9477_tc_flower.o
ksz_switch-objs += ksz8795.o ksz_switch-objs += ksz8.o
ksz_switch-objs += lan937x_main.o ksz_switch-objs += lan937x_main.o
ifdef CONFIG_NET_DSA_MICROCHIP_KSZ_PTP ifdef CONFIG_NET_DSA_MICROCHIP_KSZ_PTP
......
// SPDX-License-Identifier: GPL-2.0 // SPDX-License-Identifier: GPL-2.0
/* /*
* Microchip KSZ8795 switch driver * Microchip KSZ8XXX series switch driver
*
* It supports the following switches:
* - KSZ8863, KSZ8873 aka KSZ88X3
* - KSZ8895, KSZ8864 aka KSZ8895 family
* - KSZ8794, KSZ8795, KSZ8765 aka KSZ87XX
* Note that it does NOT support:
* - KSZ8563, KSZ8567 - see KSZ9477 driver
* *
* Copyright (C) 2017 Microchip Technology Inc. * Copyright (C) 2017 Microchip Technology Inc.
* Tristram Ha <Tristram.Ha@microchip.com> * Tristram Ha <Tristram.Ha@microchip.com>
...@@ -23,7 +30,7 @@ ...@@ -23,7 +30,7 @@
#include <linux/phylink.h> #include <linux/phylink.h>
#include "ksz_common.h" #include "ksz_common.h"
#include "ksz8795_reg.h" #include "ksz8_reg.h"
#include "ksz8.h" #include "ksz8.h"
static void ksz_cfg(struct ksz_device *dev, u32 addr, u8 bits, bool set) static void ksz_cfg(struct ksz_device *dev, u32 addr, u8 bits, bool set)
......
/* SPDX-License-Identifier: GPL-2.0-or-later */ /* SPDX-License-Identifier: GPL-2.0-or-later */
/* /*
* Microchip KSZ8795 register definitions * Microchip KSZ8XXX series register definitions
*
* The base for these definitions is KSZ8795 but unless indicated
* differently by their prefix, they apply to all KSZ8 series
* devices. Registers and masks that do change are defined in
* dedicated structures in ksz_common.c.
* *
* Copyright (c) 2017 Microchip Technology Inc. * Copyright (c) 2017 Microchip Technology Inc.
* Tristram Ha <Tristram.Ha@microchip.com> * Tristram Ha <Tristram.Ha@microchip.com>
*/ */
#ifndef __KSZ8795_REG_H #ifndef __KSZ8_REG_H
#define __KSZ8795_REG_H #define __KSZ8_REG_H
#define KS_PORT_M 0x1F #define KS_PORT_M 0x1F
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment