/openbmc/linux/drivers/mfd/ |
H A D | cs42l43.c | 520 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 …]
|
H A D | cs42l43-sdw.c | 91 struct cs42l43 *cs42l43 = dev_get_drvdata(&sdw->dev); in cs42l43_sdw_update_status() local 95 dev_dbg(cs42l43->dev, "Device attach\n"); in cs42l43_sdw_update_status() 100 cs42l43->attached = true; in cs42l43_sdw_update_status() 102 complete(&cs42l43->device_attach); in cs42l43_sdw_update_status() 105 dev_dbg(cs42l43->dev, "Device detach\n"); in cs42l43_sdw_update_status() 107 cs42l43->attached = false; in cs42l43_sdw_update_status() 109 reinit_completion(&cs42l43->device_attach); in cs42l43_sdw_update_status() 110 complete(&cs42l43->device_detach); in cs42l43_sdw_update_status() 139 struct cs42l43 *cs42l43 = dev_get_drvdata(&sdw->dev); in cs42l43_sdw_bus_config() local 142 mutex_lock(&cs42l43->pll_lock); in cs42l43_sdw_bus_config() [all …]
|
H A D | cs42l43-i2c.c | 36 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 …]
|
H A D | cs42l43.h | 25 int cs42l43_dev_probe(struct cs42l43 *cs42l43); 26 void cs42l43_dev_remove(struct cs42l43 *cs42l43);
|
H A D | Makefile | 16 obj-$(CONFIG_MFD_CS42L43) += cs42l43.o 17 obj-$(CONFIG_MFD_CS42L43_I2C) += cs42l43-i2c.o 18 obj-$(CONFIG_MFD_CS42L43_SDW) += cs42l43-sdw.o
|
/openbmc/linux/sound/soc/codecs/ |
H A D | cs42l43-jack.c | 44 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 …]
|
H A D | cs42l43.c | 222 struct cs42l43 *cs42l43 = priv->core; in cs42l43_startup() local 223 int provider = !dai->id || !!regmap_test_bits(cs42l43->regmap, in cs42l43_startup() 266 struct cs42l43 *cs42l43 = priv->core; in cs42l43_set_sample_rate() local 276 regmap_update_bits(cs42l43->regmap, CS42L43_SAMPLE_RATE1, in cs42l43_set_sample_rate() 287 struct cs42l43 *cs42l43 = priv->core; in cs42l43_asp_hw_params() local 288 int dsp_mode = !!regmap_test_bits(cs42l43->regmap, CS42L43_ASP_CTRL, in cs42l43_asp_hw_params() 290 int provider = !!regmap_test_bits(cs42l43->regmap, CS42L43_ASP_CLK_CONFIG2, in cs42l43_asp_hw_params() 327 regmap_update_bits(cs42l43->regmap, CS42L43_ASP_CLK_CONFIG1, in cs42l43_asp_hw_params() 331 regmap_update_bits(cs42l43->regmap, CS42L43_ASP_FSYNC_CTRL1, in cs42l43_asp_hw_params() 335 regmap_update_bits(cs42l43->regmap, CS42L43_ASP_FSYNC_CTRL4, in cs42l43_asp_hw_params() [all …]
|
H A D | cs42l43.h | 38 struct cs42l43 *core;
|
H A D | Makefile | 80 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
|
/openbmc/linux/drivers/spi/ |
H A D | spi-cs42l43.c | 207 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()
|
H A D | Makefile | 43 obj-$(CONFIG_SPI_CS42L43) += spi-cs42l43.o
|
/openbmc/linux/drivers/pinctrl/cirrus/ |
H A D | pinctrl-cs42l43.c | 537 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()
|
H A D | Makefile | 3 obj-$(CONFIG_PINCTRL_CS42L43) += pinctrl-cs42l43.o
|
/openbmc/linux/include/linux/mfd/ |
H A D | cs42l43.h | 72 struct cs42l43 { struct
|
/openbmc/linux/ |
H A D | MAINTAINERS | 4946 F: drivers/mfd/cs42l43* 4947 F: drivers/pinctrl/cirrus/pinctrl-cs42l43* 4948 F: drivers/spi/spi-cs42l43* 4950 F: include/linux/mfd/cs42l43*
|
H A D | opengrok1.0.log | [all...] |
H A D | opengrok0.0.log | 1884 2024-12-28 20:09:06.323-0600 FINEST t1098 PendingFileCompleter.doRename: Moved pending as file: '/opengrok/data/xref/openbmc/linux/drivers/pinctrl/cirrus/pinctrl-cs42l43.c.gz' 3105 2024-12-28 20:09:06.517-0600 FINEST t1078 PendingFileCompleter.doRename: Moved pending as file: '/opengrok/data/xref/openbmc/linux/sound/soc/codecs/cs42l43.c.gz' [all...] |