Skip to content

Commit 34b1cb4

Browse files
Venkata-Prasad-Potturuvinodkoul
authored andcommitted
soundwire: amd: Add support for acp7.2 platform
Add soundwire support for acp7.2 platform. Signed-off-by: Venkata Prasad Potturu <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Vinod Koul <[email protected]>
1 parent dba7d9d commit 34b1cb4

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

drivers/soundwire/amd_manager.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -499,6 +499,7 @@ static int amd_sdw_port_params(struct sdw_bus *bus, struct sdw_port_params *p_pa
499499
break;
500500
case ACP70_PCI_REV_ID:
501501
case ACP71_PCI_REV_ID:
502+
case ACP72_PCI_REV_ID:
502503
frame_fmt_reg = acp70_sdw_dp_reg[p_params->num].frame_fmt_reg;
503504
break;
504505
default:
@@ -551,6 +552,7 @@ static int amd_sdw_transport_params(struct sdw_bus *bus,
551552
break;
552553
case ACP70_PCI_REV_ID:
553554
case ACP71_PCI_REV_ID:
555+
case ACP72_PCI_REV_ID:
554556
frame_fmt_reg = acp70_sdw_dp_reg[params->port_num].frame_fmt_reg;
555557
sample_int_reg = acp70_sdw_dp_reg[params->port_num].sample_int_reg;
556558
hctrl_dp0_reg = acp70_sdw_dp_reg[params->port_num].hctrl_dp0_reg;
@@ -614,6 +616,7 @@ static int amd_sdw_port_enable(struct sdw_bus *bus,
614616
break;
615617
case ACP70_PCI_REV_ID:
616618
case ACP71_PCI_REV_ID:
619+
case ACP72_PCI_REV_ID:
617620
lane_ctrl_ch_en_reg = acp70_sdw_dp_reg[enable_ch->port_num].lane_ctrl_ch_en_reg;
618621
break;
619622
default:
@@ -1038,6 +1041,7 @@ static int amd_sdw_manager_probe(struct platform_device *pdev)
10381041
break;
10391042
case ACP70_PCI_REV_ID:
10401043
case ACP71_PCI_REV_ID:
1044+
case ACP72_PCI_REV_ID:
10411045
amd_manager->num_dout_ports = AMD_ACP70_SDW_MAX_TX_PORTS;
10421046
amd_manager->num_din_ports = AMD_ACP70_SDW_MAX_RX_PORTS;
10431047
break;

include/linux/soundwire/sdw_amd.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
#define ACP63_PCI_REV_ID 0x63
3131
#define ACP70_PCI_REV_ID 0x70
3232
#define ACP71_PCI_REV_ID 0x71
33+
#define ACP72_PCI_REV_ID 0x72
3334

3435
struct acp_sdw_pdata {
3536
u16 instance;

0 commit comments

Comments
 (0)