diff options
author | Tristram Ha <Tristram.Ha@microchip.com> | 2019-09-10 16:18:34 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-09-12 13:36:12 +0300 |
commit | 20e03777d70923fe7eae0d7f043ef9488393ab95 (patch) | |
tree | b49e7a62d1b86ba47f8f3836a78495ecea8558db /drivers/net/dsa/microchip/ksz_common.h | |
parent | 421bceb270e21b6db92988923445460c2e498888 (diff) | |
download | linux-20e03777d70923fe7eae0d7f043ef9488393ab95.tar.xz |
net: dsa: microchip: add KSZ9477 I2C driver
Add KSZ9477 I2C driver support. The code ksz9477.c and ksz_common.c are
used together to generate the I2C driver.
Signed-off-by: Tristram Ha <Tristram.Ha@microchip.com>
[george.mccollister@gmail.com: bring up to date, use ksz_common regmap macros]
Signed-off-by: George McCollister <george.mccollister@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/dsa/microchip/ksz_common.h')
-rw-r--r-- | drivers/net/dsa/microchip/ksz_common.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/dsa/microchip/ksz_common.h b/drivers/net/dsa/microchip/ksz_common.h index 13d027baaa8b..a24d8e61fbe7 100644 --- a/drivers/net/dsa/microchip/ksz_common.h +++ b/drivers/net/dsa/microchip/ksz_common.h @@ -294,6 +294,8 @@ static inline void ksz_pwrite32(struct ksz_device *dev, int port, int offset, #define KSZ_SPI_OP_RD 3 #define KSZ_SPI_OP_WR 2 +#define swabnot_used(x) 0 + #define KSZ_SPI_OP_FLAG_MASK(opcode, swp, regbits, regpad) \ swab##swp((opcode) << ((regbits) + (regpad))) |