Lines Matching refs:acp_base
46 u32 watermark_size, void __iomem *acp_base) in acp63_init_pdm_ring_buffer() argument
48 writel(physical_addr, acp_base + ACP_WOV_RX_RINGBUFADDR); in acp63_init_pdm_ring_buffer()
49 writel(buffer_size, acp_base + ACP_WOV_RX_RINGBUFSIZE); in acp63_init_pdm_ring_buffer()
50 writel(watermark_size, acp_base + ACP_WOV_RX_INTR_WATERMARK_SIZE); in acp63_init_pdm_ring_buffer()
51 writel(0x01, acp_base + ACPAXI2AXI_ATU_CTRL); in acp63_init_pdm_ring_buffer()
54 static void acp63_enable_pdm_clock(void __iomem *acp_base) in acp63_enable_pdm_clock() argument
61 writel(pdm_clk_enable, acp_base + ACP_WOV_CLK_CTRL); in acp63_enable_pdm_clock()
62 pdm_ctrl = readl(acp_base + ACP_WOV_MISC_CTRL); in acp63_enable_pdm_clock()
65 writel(pdm_ctrl, acp_base + ACP_WOV_MISC_CTRL); in acp63_enable_pdm_clock()
90 static bool acp63_check_pdm_dma_status(void __iomem *acp_base) in acp63_check_pdm_dma_status() argument
96 pdm_enable = readl(acp_base + ACP_WOV_PDM_ENABLE); in acp63_check_pdm_dma_status()
97 pdm_dma_enable = readl(acp_base + ACP_WOV_PDM_DMA_ENABLE); in acp63_check_pdm_dma_status()
104 static int acp63_start_pdm_dma(void __iomem *acp_base) in acp63_start_pdm_dma() argument
113 acp63_enable_pdm_clock(acp_base); in acp63_start_pdm_dma()
114 writel(pdm_enable, acp_base + ACP_WOV_PDM_ENABLE); in acp63_start_pdm_dma()
115 writel(pdm_dma_enable, acp_base + ACP_WOV_PDM_DMA_ENABLE); in acp63_start_pdm_dma()
118 pdm_dma_enable = readl(acp_base + ACP_WOV_PDM_DMA_ENABLE); in acp63_start_pdm_dma()
126 static int acp63_stop_pdm_dma(void __iomem *acp_base) in acp63_stop_pdm_dma() argument
134 pdm_enable = readl(acp_base + ACP_WOV_PDM_ENABLE); in acp63_stop_pdm_dma()
135 pdm_dma_enable = readl(acp_base + ACP_WOV_PDM_DMA_ENABLE); in acp63_stop_pdm_dma()
138 writel(pdm_dma_enable, acp_base + ACP_WOV_PDM_DMA_ENABLE); in acp63_stop_pdm_dma()
141 pdm_dma_enable = readl(acp_base + ACP_WOV_PDM_DMA_ENABLE); in acp63_stop_pdm_dma()
151 writel(pdm_enable, acp_base + ACP_WOV_PDM_ENABLE); in acp63_stop_pdm_dma()
153 writel(0x01, acp_base + ACP_WOV_PDM_FIFO_FLUSH); in acp63_stop_pdm_dma()