Commit 661ec067 authored by Stefan Wahren's avatar Stefan Wahren Committed by David S. Miller

net: qca_7k: Use BIT macro

Use the BIT macro for the CONFIG and INT register values.
Signed-off-by: default avatarStefan Wahren <stefan.wahren@i2se.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent e75977b4
...@@ -54,15 +54,15 @@ ...@@ -54,15 +54,15 @@
#define SPI_REG_ACTION_CTRL 0x1B00 #define SPI_REG_ACTION_CTRL 0x1B00
/* SPI_CONFIG register definition; */ /* SPI_CONFIG register definition; */
#define QCASPI_SLAVE_RESET_BIT (1 << 6) #define QCASPI_SLAVE_RESET_BIT BIT(6)
/* INTR_CAUSE/ENABLE register definition. */ /* INTR_CAUSE/ENABLE register definition. */
#define SPI_INT_WRBUF_BELOW_WM (1 << 10) #define SPI_INT_WRBUF_BELOW_WM BIT(10)
#define SPI_INT_CPU_ON (1 << 6) #define SPI_INT_CPU_ON BIT(6)
#define SPI_INT_ADDR_ERR (1 << 3) #define SPI_INT_ADDR_ERR BIT(3)
#define SPI_INT_WRBUF_ERR (1 << 2) #define SPI_INT_WRBUF_ERR BIT(2)
#define SPI_INT_RDBUF_ERR (1 << 1) #define SPI_INT_RDBUF_ERR BIT(1)
#define SPI_INT_PKT_AVLBL (1 << 0) #define SPI_INT_PKT_AVLBL BIT(0)
void qcaspi_spi_error(struct qcaspi *qca); void qcaspi_spi_error(struct qcaspi *qca);
int qcaspi_read_register(struct qcaspi *qca, u16 reg, u16 *result); int qcaspi_read_register(struct qcaspi *qca, u16 reg, u16 *result);
......
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