aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/meson/axg-fifo.h
diff options
context:
space:
mode:
authorJerome Brunet <jbrunet@baylibre.com>2019-12-18 18:24:19 +0100
committerMark Brown <broonie@kernel.org>2019-12-18 20:01:15 +0000
commit23b89e1d62c75f2c1985449e968886e8a97860c0 (patch)
treea0d235212b482f107dc1345bbc8b23978c614d34 /sound/soc/meson/axg-fifo.h
parentASoC: meson: axg-fifo: fix fifo threshold setup (diff)
downloadlinux-stable-23b89e1d62c75f2c1985449e968886e8a97860c0.tar.xz
linux-stable-23b89e1d62c75f2c1985449e968886e8a97860c0.zip
ASoC: meson: axg-fifo: improve depth handling
Let the fifo driver parse the fifo depth from DT. Eventually all DT should have this property. Until it is actually the case, default to 256 bytes if the property is missing. 256 bytes is the size of the smallest fifo on the supported SoCs. On the supported SoC, fifo A is usually bigger than the other ones. With depth known, we can improve the usage of the fifo and adapt the setup of request threshold. Signed-off-by: Jerome Brunet <jbrunet@baylibre.com> Link: https://lore.kernel.org/r/20191218172420.1199117-4-jbrunet@baylibre.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/meson/axg-fifo.h')
-rw-r--r--sound/soc/meson/axg-fifo.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sound/soc/meson/axg-fifo.h b/sound/soc/meson/axg-fifo.h
index c442195ba191..521b54e98fd3 100644
--- a/sound/soc/meson/axg-fifo.h
+++ b/sound/soc/meson/axg-fifo.h
@@ -68,6 +68,7 @@ struct axg_fifo {
struct clk *pclk;
struct reset_control *arb;
struct regmap_field *field_threshold;
+ unsigned int depth;
int irq;
};