Home
last modified time | relevance | path

Searched refs:cs42l43 (Results 1 – 15 of 15) sorted by relevance

/Linux-v6.6/drivers/mfd/
Dcs42l43.c520 static int cs42l43_soft_reset(struct cs42l43 *cs42l43) in cs42l43_soft_reset() argument
526 reinit_completion(&cs42l43->device_detach); in cs42l43_soft_reset()
532 regcache_cache_only(cs42l43->regmap, true); in cs42l43_soft_reset()
533 regmap_multi_reg_write_bypassed(cs42l43->regmap, reset, ARRAY_SIZE(reset)); in cs42l43_soft_reset()
537 if (cs42l43->sdw) { in cs42l43_soft_reset()
541 time = wait_for_completion_timeout(&cs42l43->device_detach, timeout); in cs42l43_soft_reset()
543 dev_err(cs42l43->dev, "Timed out waiting for device detach\n"); in cs42l43_soft_reset()
555 static int cs42l43_wait_for_attach(struct cs42l43 *cs42l43) in cs42l43_wait_for_attach() argument
557 if (!cs42l43->attached) { in cs42l43_wait_for_attach()
561 time = wait_for_completion_timeout(&cs42l43->device_attach, timeout); in cs42l43_wait_for_attach()
[all …]
Dcs42l43-sdw.c109 struct cs42l43 *cs42l43 = dev_get_drvdata(&sdw->dev); in cs42l43_sdw_update_status() local
113 dev_dbg(cs42l43->dev, "Device attach\n"); in cs42l43_sdw_update_status()
118 cs42l43->attached = true; in cs42l43_sdw_update_status()
120 complete(&cs42l43->device_attach); in cs42l43_sdw_update_status()
123 dev_dbg(cs42l43->dev, "Device detach\n"); in cs42l43_sdw_update_status()
125 cs42l43->attached = false; in cs42l43_sdw_update_status()
127 reinit_completion(&cs42l43->device_attach); in cs42l43_sdw_update_status()
128 complete(&cs42l43->device_detach); in cs42l43_sdw_update_status()
157 struct cs42l43 *cs42l43 = dev_get_drvdata(&sdw->dev); in cs42l43_sdw_bus_config() local
160 mutex_lock(&cs42l43->pll_lock); in cs42l43_sdw_bus_config()
[all …]
Dcs42l43-i2c.c36 struct cs42l43 *cs42l43; in cs42l43_i2c_probe() local
39 cs42l43 = devm_kzalloc(&i2c->dev, sizeof(*cs42l43), GFP_KERNEL); in cs42l43_i2c_probe()
40 if (!cs42l43) in cs42l43_i2c_probe()
43 cs42l43->dev = &i2c->dev; in cs42l43_i2c_probe()
44 cs42l43->irq = i2c->irq; in cs42l43_i2c_probe()
46 cs42l43->attached = true; in cs42l43_i2c_probe()
48 cs42l43->regmap = devm_regmap_init_i2c(i2c, &cs42l43_i2c_regmap); in cs42l43_i2c_probe()
49 if (IS_ERR(cs42l43->regmap)) { in cs42l43_i2c_probe()
50 ret = PTR_ERR(cs42l43->regmap); in cs42l43_i2c_probe()
51 dev_err(cs42l43->dev, "Failed to allocate regmap: %d\n", ret); in cs42l43_i2c_probe()
[all …]
Dcs42l43.h25 int cs42l43_dev_probe(struct cs42l43 *cs42l43);
26 void cs42l43_dev_remove(struct cs42l43 *cs42l43);
DMakefile16 obj-$(CONFIG_MFD_CS42L43) += cs42l43.o
17 obj-$(CONFIG_MFD_CS42L43_I2C) += cs42l43-i2c.o
18 obj-$(CONFIG_MFD_CS42L43_SDW) += cs42l43-sdw.o
/Linux-v6.6/sound/soc/codecs/
Dcs42l43-jack.c44 struct cs42l43 *cs42l43 = priv->core; in cs42l43_find_index() local
47 ret = device_property_read_u32(cs42l43->dev, prop, &defval); in cs42l43_find_index()
68 struct cs42l43 *cs42l43 = priv->core; in cs42l43_set_jack() local
90 ret = device_property_count_u32(cs42l43->dev, "cirrus,buttons-ohms"); in cs42l43_set_jack()
104 device_property_read_u32_array(cs42l43->dev, "cirrus,buttons-ohms", in cs42l43_set_jack()
120 priv->bias_low = device_property_read_bool(cs42l43->dev, "cirrus,bias-low"); in cs42l43_set_jack()
139 if (!device_property_read_bool(cs42l43->dev, "cirrus,button-automute")) in cs42l43_set_jack()
142 ret = device_property_read_u32(cs42l43->dev, "cirrus,tip-debounce-ms", in cs42l43_set_jack()
150 if (device_property_read_bool(cs42l43->dev, "cirrus,tip-invert")) in cs42l43_set_jack()
153 if (device_property_read_bool(cs42l43->dev, "cirrus,tip-disable-pullup")) in cs42l43_set_jack()
[all …]
Dcs42l43.c222 struct cs42l43 *cs42l43 = priv->core; in cs42l43_startup() local
223 int provider = !!regmap_test_bits(cs42l43->regmap, CS42L43_ASP_CLK_CONFIG2, in cs42l43_startup()
265 struct cs42l43 *cs42l43 = priv->core; in cs42l43_set_sample_rate() local
275 regmap_update_bits(cs42l43->regmap, CS42L43_SAMPLE_RATE1, in cs42l43_set_sample_rate()
286 struct cs42l43 *cs42l43 = priv->core; in cs42l43_asp_hw_params() local
287 int dsp_mode = !!regmap_test_bits(cs42l43->regmap, CS42L43_ASP_CTRL, in cs42l43_asp_hw_params()
289 int provider = !!regmap_test_bits(cs42l43->regmap, CS42L43_ASP_CLK_CONFIG2, in cs42l43_asp_hw_params()
326 regmap_update_bits(cs42l43->regmap, CS42L43_ASP_CLK_CONFIG1, in cs42l43_asp_hw_params()
330 regmap_update_bits(cs42l43->regmap, CS42L43_ASP_FSYNC_CTRL1, in cs42l43_asp_hw_params()
334 regmap_update_bits(cs42l43->regmap, CS42L43_ASP_FSYNC_CTRL4, in cs42l43_asp_hw_params()
[all …]
Dcs42l43.h38 struct cs42l43 *core;
DMakefile80 snd-soc-cs42l43-objs := cs42l43.o cs42l43-jack.o
81 snd-soc-cs42l43-sdw-objs := cs42l43-sdw.o
466 obj-$(CONFIG_SND_SOC_CS42L43) += snd-soc-cs42l43.o
467 obj-$(CONFIG_SND_SOC_CS42L43_SDW) += snd-soc-cs42l43-sdw.o
/Linux-v6.6/drivers/spi/
Dspi-cs42l43.c207 struct cs42l43 *cs42l43 = dev_get_drvdata(pdev->dev.parent); in cs42l43_spi_probe() local
209 struct fwnode_handle *fwnode = dev_fwnode(cs42l43->dev); in cs42l43_spi_probe()
223 priv->regmap = cs42l43->regmap; in cs42l43_spi_probe()
DMakefile43 obj-$(CONFIG_SPI_CS42L43) += spi-cs42l43.o
/Linux-v6.6/drivers/pinctrl/cirrus/
Dpinctrl-cs42l43.c537 struct cs42l43 *cs42l43 = dev_get_drvdata(pdev->dev.parent); in cs42l43_pin_probe() local
540 struct fwnode_handle *fwnode = dev_fwnode(cs42l43->dev); in cs42l43_pin_probe()
548 priv->regmap = cs42l43->regmap; in cs42l43_pin_probe()
550 priv->shutters_locked = cs42l43->hw_lock; in cs42l43_pin_probe()
DMakefile3 obj-$(CONFIG_PINCTRL_CS42L43) += pinctrl-cs42l43.o
/Linux-v6.6/include/linux/mfd/
Dcs42l43.h72 struct cs42l43 { struct
/Linux-v6.6/
DMAINTAINERS4926 F: drivers/mfd/cs42l43*
4927 F: drivers/pinctrl/cirrus/pinctrl-cs42l43*
4928 F: drivers/spi/spi-cs42l43*
4930 F: include/linux/mfd/cs42l43*