git: ce773fbaec9b - stable/14 - rk_i2s: correct some bit-field definitions, add more bits
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 27 Jun 2025 07:38:20 UTC
The branch stable/14 has been updated by avg: URL: https://cgit.FreeBSD.org/src/commit/?id=ce773fbaec9b4fd790803ce253232405bee89f91 commit ce773fbaec9b4fd790803ce253232405bee89f91 Author: Andriy Gapon <avg@FreeBSD.org> AuthorDate: 2021-09-24 17:05:22 +0000 Commit: Andriy Gapon <avg@FreeBSD.org> CommitDate: 2025-06-27 07:37:55 +0000 rk_i2s: correct some bit-field definitions, add more bits (cherry picked from commit 3fc4ddb0151d1a4fec5ba6c878f4b8afc6aa83b8) --- sys/arm64/rockchip/rk_i2s.c | 8 ++++++-- 1 file 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)