File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 78
78
#define S3C64XX_SPI_INT_RX_FIFORDY_EN (1<<1)
79
79
#define S3C64XX_SPI_INT_TX_FIFORDY_EN (1<<0)
80
80
81
+ #define S3C64XX_SPI_ST_TX_FIFO_LVL_SHIFT 6
81
82
#define S3C64XX_SPI_ST_RX_OVERRUN_ERR (1<<5)
82
83
#define S3C64XX_SPI_ST_RX_UNDERRUN_ERR (1<<4)
83
84
#define S3C64XX_SPI_ST_TX_OVERRUN_ERR (1<<3)
108
109
#define FIFO_LVL_MASK (i ) ((i)->port_conf->fifo_lvl_mask[i->port_id])
109
110
#define S3C64XX_SPI_ST_TX_DONE (v , i ) (((v) & \
110
111
(1 << (i)->port_conf->tx_st_done)) ? 1 : 0)
111
- #define TX_FIFO_LVL (v , i ) (((v) >> 6) & FIFO_LVL_MASK(i))
112
+ #define TX_FIFO_LVL (v , i ) (((v) >> S3C64XX_SPI_ST_TX_FIFO_LVL_SHIFT) & \
113
+ FIFO_LVL_MASK(i))
112
114
#define RX_FIFO_LVL (v , i ) (((v) >> (i)->port_conf->rx_lvl_offset) & \
113
115
FIFO_LVL_MASK(i))
114
116
#define FIFO_DEPTH (i ) ((FIFO_LVL_MASK(i) >> 1) + 1)
You can’t perform that action at this time.
0 commit comments