summaryrefslogtreecommitdiffstats
path: root/include/sound/cs35l56.h
diff options
context:
space:
mode:
authorSimon Trimmer <simont@opensource.cirrus.com>2023-07-21 14:21:17 +0100
committerMark Brown <broonie@kernel.org>2023-07-23 23:40:21 +0100
commitf32a2bcbc092d60ba8a1b00a22607b220d53a25e (patch)
tree618e51100e07d65b8845787faff3650326cf9222 /include/sound/cs35l56.h
parent84851aa055c890f2ea731a128e8feb64520c2c8e (diff)
downloadlinux-stable-f32a2bcbc092d60ba8a1b00a22607b220d53a25e.tar.gz
linux-stable-f32a2bcbc092d60ba8a1b00a22607b220d53a25e.tar.bz2
linux-stable-f32a2bcbc092d60ba8a1b00a22607b220d53a25e.zip
ASoC: cs35l56: Make common function for control port wait
Move the waits for CS35L56_CONTROL_PORT_READY_US into a common function, and also allow a wider range of allowed wait times. Signed-off-by: Simon Trimmer <simont@opensource.cirrus.com> Signed-off-by: Richard Fitzgerald <rf@opensource.cirrus.com> Acked-by: Mark Brown <broonie@kernel.org> Link: https://lore.kernel.org/r/20230721132120.5523-9-rf@opensource.cirrus.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'include/sound/cs35l56.h')
-rw-r--r--include/sound/cs35l56.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/sound/cs35l56.h b/include/sound/cs35l56.h
index 0d6cdfb6107b..79e117abee06 100644
--- a/include/sound/cs35l56.h
+++ b/include/sound/cs35l56.h
@@ -275,6 +275,7 @@ extern const unsigned int cs35l56_tx_input_values[CS35L56_NUM_INPUT_SRC];
int cs35l56_set_patch(struct cs35l56_base *cs35l56_base);
int cs35l56_mbox_send(struct cs35l56_base *cs35l56_base, unsigned int command);
int cs35l56_wait_for_firmware_boot(struct cs35l56_base *cs35l56_base);
+void cs35l56_wait_control_port_ready(void);
void cs35l56_wait_min_reset_pulse(void);
void cs35l56_system_reset(struct cs35l56_base *cs35l56_base, bool is_soundwire);
int cs35l56_irq_request(struct cs35l56_base *cs35l56_base, int irq);