soc: soundwire: Update auto enum value from HW

remove macro for supported auto_enum slaves and
read from master comp_params. Update num_dev logic
to compare with supported auto enum slaves.

Change-Id: Iedadde5a3ee83645c4d8d16e738376e1797fc649
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
This commit is contained in:
Laxminath Kasam
2020-11-03 19:20:27 +05:30
committed by Gerrit - the friendly Code Review server
parent 38adb70f3c
commit 98799c5e2f
4 changed files with 35 additions and 32 deletions

View File

@@ -193,6 +193,7 @@ struct swr_mstr_ctrl {
u32 disable_div2_clk_switch;
u32 rd_fifo_depth;
u32 wr_fifo_depth;
u32 num_auto_enum;
bool enable_slave_irq;
u64 logical_dev[SWRM_NUM_AUTO_ENUM_SLAVES];
u32 is_always_on;