summaryrefslogtreecommitdiff
path: root/drivers/net/dsa/microchip/ksz9477_spi.c
diff options
context:
space:
mode:
authorTristram Ha <Tristram.Ha@microchip.com>2019-02-28 19:57:24 -0800
committerDavid S. Miller <davem@davemloft.net>2019-03-03 13:48:49 -0800
commit8c29bebb1f8a68556db70088fd8f5938527a7346 (patch)
treeb43e6d6876f27e264c557266bbeb809780ad8b44 /drivers/net/dsa/microchip/ksz9477_spi.c
parent88b573af91dafd60ba35b2dc6af3f9d8d7168146 (diff)
net: dsa: microchip: add KSZ9893 switch support
Add KSZ9893 switch support in KSZ9477 driver. This switch is similar to KSZ9477 except the ingress tail tag has 1 byte instead of 2 bytes, so KSZ9893 tagging will be used. The XMII register that governs how the host port communicates with the MAC also has different register definitions. Signed-off-by: Tristram Ha <Tristram.Ha@microchip.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/dsa/microchip/ksz9477_spi.c')
-rw-r--r--drivers/net/dsa/microchip/ksz9477_spi.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/net/dsa/microchip/ksz9477_spi.c b/drivers/net/dsa/microchip/ksz9477_spi.c
index d757ba151cb1..75178624d3f5 100644
--- a/drivers/net/dsa/microchip/ksz9477_spi.c
+++ b/drivers/net/dsa/microchip/ksz9477_spi.c
@@ -2,7 +2,7 @@
/*
* Microchip KSZ9477 series register access through SPI
*
- * Copyright (C) 2017-2018 Microchip Technology Inc.
+ * Copyright (C) 2017-2019 Microchip Technology Inc.
*/
#include <asm/unaligned.h>
@@ -155,6 +155,8 @@ static void ksz9477_spi_shutdown(struct spi_device *spi)
static const struct of_device_id ksz9477_dt_ids[] = {
{ .compatible = "microchip,ksz9477" },
{ .compatible = "microchip,ksz9897" },
+ { .compatible = "microchip,ksz9893" },
+ { .compatible = "microchip,ksz9563" },
{},
};
MODULE_DEVICE_TABLE(of, ksz9477_dt_ids);