git: 3fc4ddb0151d - main - rk_i2s: correct some bit-field definitions, add more bits
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 19 May 2025 09:19:25 UTC
The branch main has been updated by avg:
URL: https://cgit.FreeBSD.org/src/commit/?id=3fc4ddb0151d1a4fec5ba6c878f4b8afc6aa83b8
commit 3fc4ddb0151d1a4fec5ba6c878f4b8afc6aa83b8
Author: Andriy Gapon <avg@FreeBSD.org>
AuthorDate: 2021-09-24 17:05:22 +0000
Commit: Andriy Gapon <avg@FreeBSD.org>
CommitDate: 2025-05-19 09:19:03 +0000
rk_i2s: correct some bit-field definitions, add more bits
MFC after: 2 weeks
---
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 3d6aaf523c4a..5f1b6bbdeabf 100644
--- a/sys/arm64/rockchip/rk_i2s.c
+++ b/sys/arm64/rockchip/rk_i2s.c
@@ -91,16 +91,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)