Lines Matching refs:acp_base
46 u32 watermark_size, void __iomem *acp_base) in acp6x_init_pdm_ring_buffer() argument
48 acp6x_writel(physical_addr, acp_base + ACP_WOV_RX_RINGBUFADDR); in acp6x_init_pdm_ring_buffer()
49 acp6x_writel(buffer_size, acp_base + ACP_WOV_RX_RINGBUFSIZE); in acp6x_init_pdm_ring_buffer()
50 acp6x_writel(watermark_size, acp_base + ACP_WOV_RX_INTR_WATERMARK_SIZE); in acp6x_init_pdm_ring_buffer()
51 acp6x_writel(0x01, acp_base + ACPAXI2AXI_ATU_CTRL); in acp6x_init_pdm_ring_buffer()
54 static void acp6x_enable_pdm_clock(void __iomem *acp_base) in acp6x_enable_pdm_clock() argument
61 acp6x_writel(pdm_clk_enable, acp_base + ACP_WOV_CLK_CTRL); in acp6x_enable_pdm_clock()
62 pdm_ctrl = acp6x_readl(acp_base + ACP_WOV_MISC_CTRL); in acp6x_enable_pdm_clock()
65 acp6x_writel(pdm_ctrl, acp_base + ACP_WOV_MISC_CTRL); in acp6x_enable_pdm_clock()
68 static void acp6x_enable_pdm_interrupts(void __iomem *acp_base) in acp6x_enable_pdm_interrupts() argument
72 ext_int_ctrl = acp6x_readl(acp_base + ACP_EXTERNAL_INTR_CNTL); in acp6x_enable_pdm_interrupts()
74 acp6x_writel(ext_int_ctrl, acp_base + ACP_EXTERNAL_INTR_CNTL); in acp6x_enable_pdm_interrupts()
77 static void acp6x_disable_pdm_interrupts(void __iomem *acp_base) in acp6x_disable_pdm_interrupts() argument
81 ext_int_ctrl = acp6x_readl(acp_base + ACP_EXTERNAL_INTR_CNTL); in acp6x_disable_pdm_interrupts()
83 acp6x_writel(ext_int_ctrl, acp_base + ACP_EXTERNAL_INTR_CNTL); in acp6x_disable_pdm_interrupts()
86 static bool acp6x_check_pdm_dma_status(void __iomem *acp_base) in acp6x_check_pdm_dma_status() argument
92 pdm_enable = acp6x_readl(acp_base + ACP_WOV_PDM_ENABLE); in acp6x_check_pdm_dma_status()
93 pdm_dma_enable = acp6x_readl(acp_base + ACP_WOV_PDM_DMA_ENABLE); in acp6x_check_pdm_dma_status()
100 static int acp6x_start_pdm_dma(void __iomem *acp_base) in acp6x_start_pdm_dma() argument
109 acp6x_enable_pdm_clock(acp_base); in acp6x_start_pdm_dma()
110 acp6x_writel(pdm_enable, acp_base + ACP_WOV_PDM_ENABLE); in acp6x_start_pdm_dma()
111 acp6x_writel(pdm_dma_enable, acp_base + ACP_WOV_PDM_DMA_ENABLE); in acp6x_start_pdm_dma()
114 pdm_dma_enable = acp6x_readl(acp_base + ACP_WOV_PDM_DMA_ENABLE); in acp6x_start_pdm_dma()
122 static int acp6x_stop_pdm_dma(void __iomem *acp_base) in acp6x_stop_pdm_dma() argument
130 pdm_enable = acp6x_readl(acp_base + ACP_WOV_PDM_ENABLE); in acp6x_stop_pdm_dma()
131 pdm_dma_enable = acp6x_readl(acp_base + ACP_WOV_PDM_DMA_ENABLE); in acp6x_stop_pdm_dma()
134 acp6x_writel(pdm_dma_enable, acp_base + ACP_WOV_PDM_DMA_ENABLE); in acp6x_stop_pdm_dma()
137 pdm_dma_enable = acp6x_readl(acp_base + ACP_WOV_PDM_DMA_ENABLE); in acp6x_stop_pdm_dma()
147 acp6x_writel(pdm_enable, acp_base + ACP_WOV_PDM_ENABLE); in acp6x_stop_pdm_dma()
149 acp6x_writel(0x01, acp_base + ACP_WOV_PDM_FIFO_FLUSH); in acp6x_stop_pdm_dma()