diff options
| author | Andriy Gapon <avg@FreeBSD.org> | 2021-09-24 17:05:22 +0000 |
|---|---|---|
| committer | Andriy Gapon <avg@FreeBSD.org> | 2025-06-27 07:37:55 +0000 |
| commit | ce773fbaec9b4fd790803ce253232405bee89f91 (patch) | |
| tree | 036d0c2e6033bd739b23c2f072361bcb8c9b693e | |
| parent | b4e40a47d37939713196a2530b4759a7a8e11148 (diff) | |
rk_i2s: correct some bit-field definitions, add more bits
(cherry picked from commit 3fc4ddb0151d1a4fec5ba6c878f4b8afc6aa83b8)
| -rw-r--r-- | sys/arm64/rockchip/rk_i2s.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/sys/arm64/rockchip/rk_i2s.c b/sys/arm64/rockchip/rk_i2s.c index 2ec7d21ad7e8..e7fe8eb46a07 100644 --- a/sys/arm64/rockchip/rk_i2s.c +++ b/sys/arm64/rockchip/rk_i2s.c @@ -92,16 +92,20 @@ #define TXFIFO0LR_MASK 0x3f #define I2S_DMACR 0x0010 #define I2S_DMACR_RDE_ENABLE (1 << 24) -#define I2S_DMACR_RDL(n) ((n) << 16) +#define I2S_DMACR_RDL(n) (((n) - 1) << 16) #define I2S_DMACR_TDE_ENABLE (1 << 8) #define I2S_DMACR_TDL(n) ((n) << 0) #define I2S_INTCR 0x0014 #define I2S_INTCR_RFT(n) (((n) - 1) << 20) -#define I2S_INTCR_TFT(n) (((n) - 1) << 4) +#define I2S_INTCR_TFT(n) ((n) << 4) +#define I2S_INTCR_RXOIC (1 << 18) +#define I2S_INTCR_RXOIE (1 << 17) #define I2S_INTCR_RXFIE (1 << 16) #define I2S_INTCR_TXUIC (1 << 2) +#define I2S_INTCR_TXUIE (1 << 1) #define I2S_INTCR_TXEIE (1 << 0) #define I2S_INTSR 0x0018 +#define I2S_INTSR_RXOI (1 << 17) #define I2S_INTSR_RXFI (1 << 16) #define I2S_INTSR_TXUI (1 << 1) #define I2S_INTSR_TXEI (1 << 0) |
