Lines Matching +full:loongson +full:- +full:1 +full:c
1 /* SPDX-License-Identifier: GPL-2.0 */
3 * ALSA I2S interface for the Loongson platform
5 * Copyright (C) 2023 Loongson Technology Corporation Limited
6 * Author: Yingkun Meng <mengyingkun@loongson.cn>
29 /* Loongson I2S Control Register */
30 #define I2S_CTRL_MCLK_READY (1 << 16) /* MCLK ready */
31 #define I2S_CTRL_MASTER (1 << 15) /* Master mode */
32 #define I2S_CTRL_MSB (1 << 14) /* MSB bit order */
33 #define I2S_CTRL_RX_EN (1 << 13) /* RX enable */
34 #define I2S_CTRL_TX_EN (1 << 12) /* TX enable */
35 #define I2S_CTRL_RX_DMA_EN (1 << 11) /* DMA RX enable */
36 #define I2S_CTRL_CLK_READY (1 << 8) /* BCLK ready */
37 #define I2S_CTRL_TX_DMA_EN (1 << 7) /* DMA TX enable */
38 #define I2S_CTRL_RESET (1 << 4) /* Controller soft reset */
39 #define I2S_CTRL_MCLK_EN (1 << 3) /* Enable MCLK */
40 #define I2S_CTRL_RX_INT_EN (1 << 1) /* RX interrupt enable */
41 #define I2S_CTRL_TX_INT_EN (1 << 0) /* TX interrupt enable */
43 #define LS_I2S_DRVNAME "loongson-i2s"