yuezonghe | 824eb0c | 2024-06-27 02:32:26 -0700 | [diff] [blame] | 1 | #ifndef __SND_SOC_SANECHIPS_I2S_H
|
| 2 | #define __SND_SOC_SANECHIPS_I2S_H
|
| 3 | #include <linux/printk.h>
|
| 4 |
|
| 5 | #define ZX29_I2S_WCLK_SEL 0
|
| 6 |
|
| 7 | #define ZX29_I2S_WCLK_FREQ_26M (26*1000*1000)
|
| 8 | #define ZX29_I2S_WCLK_FREQ_104M (104*1000*1000)
|
| 9 | #define ZX29_I2S_WCLK_FREQ_122M88 (12288*10000)
|
| 10 | #define ZX29_I2S_LOOP_CFG ((volatile unsigned int *)(ZX_SOC_SYS_BASE + 0x60))
|
| 11 |
|
| 12 | #define ZX29_TDM_MOD_CLK_SEL ((volatile unsigned int *)(ZX_MATRIX_CRM_BASE+0x50))
|
| 13 | #define ZX29_I2S_DMA_SEL_CFG ((volatile unsigned int *)(ZX_SOC_SYS_BASE+0x120))
|
| 14 | //#ifdef CONFIG_KERNEL_GLOBAL_DEBUG
|
| 15 | #define print_audio(fmt, ...) \
|
| 16 | printk(fmt, ##__VA_ARGS__)
|
| 17 | //#else
|
| 18 | //#define print_audio(fmt, ...) \
|
| 19 | // no_printk(fmt, ##__VA_ARGS__)
|
| 20 | //#endif
|
| 21 | #endif /* __SND_SOC_SANECHIPS_I2S_H*/
|