soc: swr-mstr: Support to execute commands on command ignore
If the optional commands/registers in soundwire slave(s) are not implemented, then soundwire bus will ignore the corresponding commands and executes the next commands in queue. Change-Id: I24dd929975218a150717f03f5c17c2be173a5005 Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
This commit is contained in:

committed by
Gerrit - the friendly Code Review server

parent
bbcb107778
commit
63f4815535
@@ -1631,6 +1631,15 @@ static int swrm_master_init(struct swr_mstr_ctrl *swrm)
|
|||||||
|
|
||||||
swr_master_bulk_write(swrm, reg, value, len);
|
swr_master_bulk_write(swrm, reg, value, len);
|
||||||
|
|
||||||
|
/*
|
||||||
|
* For SWR master version 1.5.1, continue
|
||||||
|
* execute on command ignore.
|
||||||
|
*/
|
||||||
|
if (swrm->version == SWRM_VERSION_1_5_1)
|
||||||
|
swr_master_write(swrm, SWRM_CMD_FIFO_CFG_ADDR,
|
||||||
|
(swr_master_read(swrm,
|
||||||
|
SWRM_CMD_FIFO_CFG_ADDR) | 0x80000000));
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -25,6 +25,7 @@
|
|||||||
#define SWRM_VERSION_1_2 0x01030000
|
#define SWRM_VERSION_1_2 0x01030000
|
||||||
#define SWRM_VERSION_1_3 0x01040000
|
#define SWRM_VERSION_1_3 0x01040000
|
||||||
#define SWRM_VERSION_1_5 0x01050000
|
#define SWRM_VERSION_1_5 0x01050000
|
||||||
|
#define SWRM_VERSION_1_5_1 0x01050001
|
||||||
|
|
||||||
#define SWR_MAX_CH_PER_PORT 8
|
#define SWR_MAX_CH_PER_PORT 8
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user