Searched refs:acp_base (Results 1 – 11 of 11) sorted by relevance
/linux/sound/soc/amd/renoir/ |
A D | acp3x-pdm-dma.c | 67 void __iomem *acp_base) in init_pdm_ring_buffer() argument 128 enable_pdm_clock(acp_base); in start_pdm_dma() 153 pdm_dma_enable = rn_readl(acp_base + in stop_pdm_dma() 228 pdm_data->acp_base = adata->acp_base; in acp_pdm_dma_open() 249 rtd->acp_base); in acp_pdm_dma_hw_params() 259 rn_readl(rtd->acp_base + in acp_pdm_get_byte_count() 262 rn_readl(rtd->acp_base + in acp_pdm_get_byte_count() 332 ret = start_pdm_dma(rtd->acp_base); in acp_pdm_dai_trigger() 339 ret = stop_pdm_dma(rtd->acp_base); in acp_pdm_dai_trigger() 399 if (!adata->acp_base) in acp_pdm_audio_probe() [all …]
|
A D | rn-pci-acp3x.c | 33 void __iomem *acp_base; member 51 acp_base + ACP_PGFSM_CONTROL); in rn_acp_power_on() 68 acp_base + ACP_PGFSM_CONTROL); in rn_acp_power_off() 125 ret = rn_acp_power_on(acp_base); in rn_acp_init() 132 ret = rn_acp_reset(acp_base); in rn_acp_init() 138 rn_acp_enable_interrupts(acp_base); in rn_acp_init() 146 rn_acp_disable_interrupts(acp_base); in rn_acp_deinit() 148 ret = rn_acp_reset(acp_base); in rn_acp_deinit() 157 ret = rn_acp_power_off(acp_base); in rn_acp_deinit() 253 if (!adata->acp_base) { in snd_rn_acp_probe() [all …]
|
A D | rn_acp3x.h | 62 void __iomem *acp_base; member 71 void __iomem *acp_base; member
|
/linux/sound/soc/amd/yc/ |
A D | pci-acp6x.c | 31 val = acp6x_readl(acp_base + ACP_PGFSM_STATUS); in acp6x_power_on() 48 static int acp6x_reset(void __iomem *acp_base) in acp6x_reset() argument 53 acp6x_writel(1, acp_base + ACP_SOFT_RESET); in acp6x_reset() 61 acp6x_writel(0, acp_base + ACP_SOFT_RESET); in acp6x_reset() 90 ret = acp6x_power_on(acp_base); in acp6x_init() 95 acp6x_writel(0x01, acp_base + ACP_CONTROL); in acp6x_init() 97 ret = acp6x_reset(acp_base); in acp6x_init() 103 acp6x_enable_interrupts(acp_base); in acp6x_init() 111 acp6x_disable_interrupts(acp_base); in acp6x_deinit() 113 ret = acp6x_reset(acp_base); in acp6x_deinit() [all …]
|
A D | acp6x-pdm-dma.c | 41 u32 watermark_size, void __iomem *acp_base) in acp6x_init_pdm_ring_buffer() argument 46 acp6x_writel(0x01, acp_base + ACPAXI2AXI_ATU_CTRL); in acp6x_init_pdm_ring_buffer() 49 static void acp6x_enable_pdm_clock(void __iomem *acp_base) in acp6x_enable_pdm_clock() argument 57 pdm_ctrl = acp6x_readl(acp_base + ACP_WOV_MISC_CTRL); in acp6x_enable_pdm_clock() 59 acp6x_writel(pdm_ctrl, acp_base + ACP_WOV_MISC_CTRL); in acp6x_enable_pdm_clock() 86 pdm_enable = acp6x_readl(acp_base + ACP_WOV_PDM_ENABLE); in acp6x_check_pdm_dma_status() 94 static int acp6x_start_pdm_dma(void __iomem *acp_base) in acp6x_start_pdm_dma() argument 103 acp6x_enable_pdm_clock(acp_base); in acp6x_start_pdm_dma() 104 acp6x_writel(pdm_enable, acp_base + ACP_WOV_PDM_ENABLE); in acp6x_start_pdm_dma() 116 static int acp6x_stop_pdm_dma(void __iomem *acp_base) in acp6x_stop_pdm_dma() argument [all …]
|
/linux/sound/soc/amd/acp/ |
A D | acp-i2s.c | 84 val = readl(adata->acp_base + reg_val); in acp_i2s_hwparams() 87 writel(val, adata->acp_base + reg_val); in acp_i2s_hwparams() 145 writel(buf_size, adata->acp_base + buf_reg); in acp_i2s_trigger() 146 val = readl(adata->acp_base + reg_val); in acp_i2s_trigger() 148 writel(val, adata->acp_base + reg_val); in acp_i2s_trigger() 149 writel(1, adata->acp_base + ier_val); in acp_i2s_trigger() 180 val = readl(adata->acp_base + reg_val); in acp_i2s_trigger() 182 writel(val, adata->acp_base + reg_val); in acp_i2s_trigger() 186 writel(0, adata->acp_base + ACP_BTTDM_IER); in acp_i2s_trigger() 189 writel(0, adata->acp_base + ACP_I2STDM_IER); in acp_i2s_trigger() [all …]
|
A D | amd.h | 85 void __iomem *acp_base; member 113 high = readl(adata->acp_base + ACP_BT_TX_LINEARPOSITIONCNTR_HIGH); in acp_get_byte_count() 114 low = readl(adata->acp_base + ACP_BT_TX_LINEARPOSITIONCNTR_LOW); in acp_get_byte_count() 117 high = readl(adata->acp_base + ACP_I2S_TX_LINEARPOSITIONCNTR_HIGH); in acp_get_byte_count() 118 low = readl(adata->acp_base + ACP_I2S_TX_LINEARPOSITIONCNTR_LOW); in acp_get_byte_count() 127 high = readl(adata->acp_base + ACP_BT_RX_LINEARPOSITIONCNTR_HIGH); in acp_get_byte_count() 128 low = readl(adata->acp_base + ACP_BT_RX_LINEARPOSITIONCNTR_LOW); in acp_get_byte_count() 131 high = readl(adata->acp_base + ACP_I2S_RX_LINEARPOSITIONCNTR_HIGH); in acp_get_byte_count() 132 low = readl(adata->acp_base + ACP_I2S_RX_LINEARPOSITIONCNTR_LOW); in acp_get_byte_count()
|
A D | acp-platform.c | 101 val = readl(adata->acp_base + ACP_EXTERNAL_INTR_STAT); in i2s_irq_handler() 106 writel(stream->irq_bit, adata->acp_base + ACP_EXTERNAL_INTR_STAT); in i2s_irq_handler() 130 writel(reg_val | BIT(31), adata->acp_base + pte_reg); in config_pte_for_stream() 131 writel(PAGE_SIZE_4K_ENABLE, adata->acp_base + pte_size); in config_pte_for_stream() 149 writel(low, adata->acp_base + ACP_SCRATCH_REG_0 + val); in config_acp_dma() 151 writel(high, adata->acp_base + ACP_SCRATCH_REG_0 + val + 4); in config_acp_dma() 190 writel(1, adata->acp_base + ACP_EXTERNAL_INTR_ENB); in acp_dma_open()
|
A D | acp-renoir.c | 118 adata->acp_base = devm_ioremap(&pdev->dev, res->start, resource_size(res)); in renoir_audio_probe() 119 if (!adata->acp_base) in renoir_audio_probe()
|
/linux/drivers/gpu/drm/amd/amdgpu/ |
A D | amdgpu_acp.c | 196 uint64_t acp_base; in acp_hw_init() local 222 acp_base = adev->rmmio_base; in acp_hw_init() 302 adev->acp.acp_res[0].start = acp_base; in acp_hw_init() 303 adev->acp.acp_res[0].end = acp_base + ACP_DMA_REGS_END; in acp_hw_init() 307 adev->acp.acp_res[1].start = acp_base + ACP_I2S_PLAY_REGS_START; in acp_hw_init() 308 adev->acp.acp_res[1].end = acp_base + ACP_I2S_PLAY_REGS_END; in acp_hw_init() 312 adev->acp.acp_res[2].start = acp_base + ACP_I2S_CAP_REGS_START; in acp_hw_init() 313 adev->acp.acp_res[2].end = acp_base + ACP_I2S_CAP_REGS_END; in acp_hw_init() 317 adev->acp.acp_res[3].start = acp_base + ACP_BT_PLAY_REGS_START; in acp_hw_init() 318 adev->acp.acp_res[3].end = acp_base + ACP_BT_PLAY_REGS_END; in acp_hw_init()
|
/linux/sound/soc/amd/raven/ |
A D | pci-acp3x.c | 79 static void acp3x_enable_interrupts(void __iomem *acp_base) in acp3x_enable_interrupts() argument 81 rv_writel(0x01, acp_base + mmACP_EXTERNAL_INTR_ENB); in acp3x_enable_interrupts() 84 static void acp3x_disable_interrupts(void __iomem *acp_base) in acp3x_disable_interrupts() argument 86 rv_writel(ACP_EXT_INTR_STAT_CLEAR_MASK, acp_base + in acp3x_disable_interrupts() 88 rv_writel(0x00, acp_base + mmACP_EXTERNAL_INTR_CNTL); in acp3x_disable_interrupts() 89 rv_writel(0x00, acp_base + mmACP_EXTERNAL_INTR_ENB); in acp3x_disable_interrupts()
|
Completed in 18 milliseconds