Skip to content

Commit

Permalink
ASoC: SOF: amd: update descriptor feilds for acp6.3 based platform
Browse files Browse the repository at this point in the history
Update acp descriptor feilds for acp6.3 version based platform.

Signed-off-by: Vijendar Mukunda <[email protected]>
  • Loading branch information
vijendarmukunda committed Nov 13, 2023
1 parent f0d5786 commit 8d1dad5
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
3 changes: 3 additions & 0 deletions sound/soc/sof/amd/acp-dsp-offset.h
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,10 @@
/* Registers from ACP_INTR block */
#define ACP3X_EXT_INTR_STAT 0x1808
#define ACP5X_EXT_INTR_STAT 0x1808
#define ACP6X_EXTERNAL_INTR_ENB 0x1A00
#define ACP6X_EXTERNAL_INTR_CNTL 0x1A04
#define ACP6X_EXT_INTR_STAT 0x1A0C
#define ACP6X_EXT_INTR_STAT1 0x1A10

#define ACP3X_DSP_SW_INTR_BASE 0x1814
#define ACP5X_DSP_SW_INTR_BASE 0x1814
Expand Down
2 changes: 2 additions & 0 deletions sound/soc/sof/amd/acp.h
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,10 @@
#define ACP_ERROR_IRQ_MASK BIT(29)
#define ACP_SDW0_IRQ_MASK BIT(21)
#define ACP_SDW1_IRQ_MASK BIT(2)
#define SDW_ACPI_ADDR_ACP63 5
#define ACP_DEFAULT_SRAM_LENGTH 0x00080000
#define ACP_SRAM_PAGE_COUNT 128
#define ACP6X_SDW_MAX_MANAGER_COUNT 2

enum clock_source {
ACP_CLOCK_96M = 0,
Expand Down
7 changes: 7 additions & 0 deletions sound/soc/sof/amd/pci-acp63.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,19 @@ static const struct sof_amd_acp_desc acp63_chip_info = {
.rev = 6,
.host_bridge_id = HOST_BRIDGE_ACP63,
.pgfsm_base = ACP6X_PGFSM_BASE,
.ext_intr_enb = ACP6X_EXTERNAL_INTR_ENB,
.ext_intr_cntl = ACP6X_EXTERNAL_INTR_CNTL,
.ext_intr_stat = ACP6X_EXT_INTR_STAT,
.ext_intr_stat1 = ACP6X_EXT_INTR_STAT1,
.dsp_intr_base = ACP6X_DSP_SW_INTR_BASE,
.sram_pte_offset = ACP6X_SRAM_PTE_OFFSET,
.hw_semaphore_offset = ACP6X_AXI2DAGB_SEM_0,
.fusion_dsp_offset = ACP6X_DSP_FUSION_RUNSTALL,
.probe_reg_offset = ACP6X_FUTURE_REG_ACLK_0,
.sdw_max_link_count = ACP6X_SDW_MAX_MANAGER_COUNT,
.sdw_acpi_dev_addr = SDW_ACPI_ADDR_ACP63,
.reg_start_addr = ACP6x_REG_START,
.reg_end_addr = ACP6x_REG_END,
};

static const struct sof_dev_desc acp63_desc = {
Expand Down

0 comments on commit 8d1dad5

Please sign in to comment.