Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 63f48155 authored by Sudheer Papothi's avatar Sudheer Papothi Committed by Gerrit - the friendly Code Review server
Browse files

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: default avatarSudheer Papothi <spapothi@codeaurora.org>
parent bbcb1077
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -1631,6 +1631,15 @@ static int swrm_master_init(struct swr_mstr_ctrl *swrm)

	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;
}

+1 −0
Original line number Diff line number Diff line
@@ -25,6 +25,7 @@
#define SWRM_VERSION_1_2 0x01030000
#define SWRM_VERSION_1_3 0x01040000
#define SWRM_VERSION_1_5 0x01050000
#define SWRM_VERSION_1_5_1 0x01050001

#define SWR_MAX_CH_PER_PORT 8