Lines Matching full:madera
23 #include <linux/irqchip/irq-madera.h>
24 #include <linux/mfd/madera/core.h>
25 #include <linux/mfd/madera/registers.h>
27 #include "madera.h"
61 struct madera *madera = priv->madera; in cs47l92_put_demux() local
82 ret = regmap_read(madera->regmap, MADERA_OUTPUT_ENABLES_1, &cur); in cs47l92_put_demux()
84 dev_warn(madera->dev, "Failed to read outputs: %d\n", ret); in cs47l92_put_demux()
87 ret = regmap_update_bits(madera->regmap, MADERA_OUTPUT_ENABLES_1, in cs47l92_put_demux()
90 dev_warn(madera->dev, "Failed to disable outputs: %d\n", ret); in cs47l92_put_demux()
94 ret = regmap_update_bits(madera->regmap, MADERA_OUTPUT_ENABLES_1, in cs47l92_put_demux()
97 dev_err(madera->dev, "Failed to set OUT3 demux: %d\n", ret); in cs47l92_put_demux()
99 out_mono = madera->pdata.codec.out_mono[2 + mux]; in cs47l92_put_demux()
103 dev_warn(madera->dev, in cs47l92_put_demux()
107 ret = regmap_update_bits(madera->regmap, MADERA_OUTPUT_ENABLES_1, in cs47l92_put_demux()
110 dev_warn(madera->dev, "Failed to restore outputs: %d\n", ret); in cs47l92_put_demux()
124 dev_err(madera->dev, "Failed to update demux power state: %d\n", ret); in cs47l92_put_demux()
148 struct madera *madera = priv->madera; in cs47l92_adsp_power_ev() local
152 ret = regmap_read(madera->regmap, MADERA_DSP_CLOCK_2, &freq); in cs47l92_adsp_power_ev()
154 dev_err(madera->dev, in cs47l92_adsp_power_ev()
180 struct madera *madera = priv->madera; in cs47l92_outclk_ev() local
184 ret = regmap_read(madera->regmap, MADERA_OUTPUT_RATE_1, &val); in cs47l92_outclk_ev()
186 dev_err(madera->dev, "Failed to read OUTCLK source: %d\n", ret); in cs47l92_outclk_ev()
200 ret = clk_prepare_enable(madera->mclk[val].clk); in cs47l92_outclk_ev()
205 clk_disable_unprepare(madera->mclk[val].clk); in cs47l92_outclk_ev()
1850 struct madera *madera = priv->madera; in cs47l92_open() local
1856 dev_err(madera->dev, in cs47l92_open()
1869 struct madera *madera = priv->madera; in cs47l92_adsp2_irq() local
1874 dev_err(madera->dev, "Spurious compressed data IRQ\n"); in cs47l92_adsp2_irq()
1891 struct madera *madera = cs47l92->core.madera; in cs47l92_component_probe() local
1894 snd_soc_component_init_regmap(component, madera->regmap); in cs47l92_component_probe()
1896 mutex_lock(&madera->dapm_ptr_lock); in cs47l92_component_probe()
1897 madera->dapm = snd_soc_component_get_dapm(component); in cs47l92_component_probe()
1898 mutex_unlock(&madera->dapm_ptr_lock); in cs47l92_component_probe()
1924 struct madera *madera = cs47l92->core.madera; in cs47l92_component_remove() local
1926 mutex_lock(&madera->dapm_ptr_lock); in cs47l92_component_remove()
1927 madera->dapm = NULL; in cs47l92_component_remove()
1928 mutex_unlock(&madera->dapm_ptr_lock); in cs47l92_component_remove()
1975 struct madera *madera = dev_get_drvdata(pdev->dev.parent); in cs47l92_probe() local
1981 /* quick exit if Madera irqchip driver hasn't completed probe */ in cs47l92_probe()
1982 if (!madera->irq_dev) { in cs47l92_probe()
1993 cs47l92->core.madera = madera; in cs47l92_probe()
2001 ret = madera_request_irq(madera, MADERA_IRQ_DSP_IRQ1, in cs47l92_probe()
2009 ret = madera_set_irq_wake(madera, MADERA_IRQ_DSP_IRQ1, 1); in cs47l92_probe()
2017 cs47l92->core.adsp[0].cs_dsp.dev = madera->dev; in cs47l92_probe()
2018 cs47l92->core.adsp[0].cs_dsp.regmap = madera->regmap_32bit; in cs47l92_probe()
2034 madera_init_fll(madera, 1, MADERA_FLL1_CONTROL_1 - 1, in cs47l92_probe()
2036 madera_init_fll(madera, 2, MADERA_FLL2_CONTROL_1 - 1, in cs47l92_probe()
2044 regmap_update_bits(madera->regmap, cs47l92_digital_vu[i], in cs47l92_probe()
2067 madera_set_irq_wake(madera, MADERA_IRQ_DSP_IRQ1, 0); in cs47l92_probe()
2068 madera_free_irq(madera, MADERA_IRQ_DSP_IRQ1, cs47l92); in cs47l92_probe()
2084 madera_set_irq_wake(cs47l92->core.madera, MADERA_IRQ_DSP_IRQ1, 0); in cs47l92_remove()
2085 madera_free_irq(cs47l92->core.madera, MADERA_IRQ_DSP_IRQ1, cs47l92); in cs47l92_remove()
2100 MODULE_SOFTDEP("pre: madera irq-madera arizona-micsupp");