Skip to content

Commit

Permalink
amd: add probe functionality in AMD/rembrandt platform.
Browse files Browse the repository at this point in the history
Add probe functionality in AMD/rembrandt platform.

Signed-off-by: Kalva, DineshKumar <dineshkumar.kalva@amd.com>
  • Loading branch information
DINESHKUMARK1 committed Dec 15, 2023
1 parent 6a2a8db commit 9b973d3
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/arch/xtensa/configs/rembrandt_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,5 @@ CONFIG_COMP_TDFB=n
##CONFIG_COMP_MUX=n
CONFIG_COMP_SEL=n
CONFIG_COMP_MIXER=n
CONFIG_PROBE=y
CONFIG_PROBE_POINTS_MAX=16
5 changes: 4 additions & 1 deletion src/drivers/amd/rembrandt/acp_dma.c
Original file line number Diff line number Diff line change
Expand Up @@ -238,8 +238,11 @@ int dma_setup(struct dma_chan_data *channel,
(dma_config_dscr[dscr_strt_idx].src_addr &
ACP_DRAM_ADDRESS_MASK);
dma_cfg->base = dma_config_dscr[dscr_strt_idx].src_addr | ACP_SRAM;
dma_cfg->wr_size = dma_cfg->size;
dma_cfg->rd_size = 0;
if (channel->index == dma_cfg->probe_channel)
dma_cfg->wr_size = 0;
else
dma_cfg->wr_size = dma_cfg->size;
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
#define ACP_SW_INTR_TRIG 0x1241810
#define DSP_INTERRUPT_ROUTING_CTRL_0 0x1241814
#define DSP_INTERRUPT_ROUTING_CTRL_1 0x1241818
#define ACP_FUTURE_REG_ACLK_0 0x1241854
#define ACP_AXI2DAGB_SEM_0 0x1241874
#define ACP_DSP0_INTR_CNTL1 0x1241920
#define ACP_DSP0_INTR_STAT1 0x1241924
Expand Down

0 comments on commit 9b973d3

Please sign in to comment.