Home
last modified time | relevance | path

Searched refs:arizona (Results 1 – 25 of 33) sorted by relevance

12

/kernel/linux/linux-5.10/drivers/mfd/
Darizona-core.c37 int arizona_clk32k_enable(struct arizona *arizona) in arizona_clk32k_enable() argument
41 mutex_lock(&arizona->clk_lock); in arizona_clk32k_enable()
43 arizona->clk32k_ref++; in arizona_clk32k_enable()
45 if (arizona->clk32k_ref == 1) { in arizona_clk32k_enable()
46 switch (arizona->pdata.clk32k_src) { in arizona_clk32k_enable()
48 ret = pm_runtime_get_sync(arizona->dev); in arizona_clk32k_enable()
51 ret = clk_prepare_enable(arizona->mclk[ARIZONA_MCLK1]); in arizona_clk32k_enable()
53 pm_runtime_put_sync(arizona->dev); in arizona_clk32k_enable()
58 ret = clk_prepare_enable(arizona->mclk[ARIZONA_MCLK2]); in arizona_clk32k_enable()
64 ret = regmap_update_bits(arizona->regmap, ARIZONA_CLOCK_32K_1, in arizona_clk32k_enable()
[all …]
Darizona-irq.c29 static int arizona_map_irq(struct arizona *arizona, int irq) in arizona_map_irq() argument
33 if (arizona->aod_irq_chip) { in arizona_map_irq()
34 ret = regmap_irq_get_virq(arizona->aod_irq_chip, irq); in arizona_map_irq()
39 return regmap_irq_get_virq(arizona->irq_chip, irq); in arizona_map_irq()
42 int arizona_request_irq(struct arizona *arizona, int irq, char *name, in arizona_request_irq() argument
45 irq = arizona_map_irq(arizona, irq); in arizona_request_irq()
54 void arizona_free_irq(struct arizona *arizona, int irq, void *data) in arizona_free_irq() argument
56 irq = arizona_map_irq(arizona, irq); in arizona_free_irq()
64 int arizona_set_irq_wake(struct arizona *arizona, int irq, int on) in arizona_set_irq_wake() argument
66 irq = arizona_map_irq(arizona, irq); in arizona_set_irq_wake()
[all …]
Darizona-spi.c26 struct arizona *arizona; in arizona_spi_probe() local
62 arizona = devm_kzalloc(&spi->dev, sizeof(*arizona), GFP_KERNEL); in arizona_spi_probe()
63 if (arizona == NULL) in arizona_spi_probe()
66 arizona->regmap = devm_regmap_init_spi(spi, regmap_config); in arizona_spi_probe()
67 if (IS_ERR(arizona->regmap)) { in arizona_spi_probe()
68 ret = PTR_ERR(arizona->regmap); in arizona_spi_probe()
74 arizona->type = type; in arizona_spi_probe()
75 arizona->dev = &spi->dev; in arizona_spi_probe()
76 arizona->irq = spi->irq; in arizona_spi_probe()
78 return arizona_dev_init(arizona); in arizona_spi_probe()
[all …]
Darizona-i2c.c26 struct arizona *arizona; in arizona_i2c_probe() local
66 arizona = devm_kzalloc(&i2c->dev, sizeof(*arizona), GFP_KERNEL); in arizona_i2c_probe()
67 if (arizona == NULL) in arizona_i2c_probe()
70 arizona->regmap = devm_regmap_init_i2c(i2c, regmap_config); in arizona_i2c_probe()
71 if (IS_ERR(arizona->regmap)) { in arizona_i2c_probe()
72 ret = PTR_ERR(arizona->regmap); in arizona_i2c_probe()
78 arizona->type = type; in arizona_i2c_probe()
79 arizona->dev = &i2c->dev; in arizona_i2c_probe()
80 arizona->irq = i2c->irq; in arizona_i2c_probe()
82 return arizona_dev_init(arizona); in arizona_i2c_probe()
[all …]
Darizona.h48 int arizona_dev_init(struct arizona *arizona);
49 int arizona_dev_exit(struct arizona *arizona);
50 int arizona_irq_init(struct arizona *arizona);
51 int arizona_irq_exit(struct arizona *arizona);
Dwm5110-tables.c260 int wm5110_patch(struct arizona *arizona) in wm5110_patch() argument
262 switch (arizona->rev) { in wm5110_patch()
264 return regmap_register_patch(arizona->regmap, in wm5110_patch()
268 return regmap_register_patch(arizona->regmap, in wm5110_patch()
272 return regmap_register_patch(arizona->regmap, in wm5110_patch()
276 return regmap_register_patch(arizona->regmap, in wm5110_patch()
1863 struct arizona *arizona = dev_get_drvdata(dev); in wm5110_is_adsp_memory() local
1865 switch (arizona->rev) { in wm5110_is_adsp_memory()
Dwm8997-tables.c28 int wm8997_patch(struct arizona *arizona) in wm8997_patch() argument
30 switch (arizona->rev) { in wm8997_patch()
32 return regmap_register_patch(arizona->regmap, in wm8997_patch()
DMakefile44 obj-$(CONFIG_MFD_ARIZONA) += arizona-core.o
45 obj-$(CONFIG_MFD_ARIZONA) += arizona-irq.o
46 obj-$(CONFIG_MFD_ARIZONA_I2C) += arizona-i2c.o
47 obj-$(CONFIG_MFD_ARIZONA_SPI) += arizona-spi.o
Dwm5102-tables.c78 int wm5102_patch(struct arizona *arizona) in wm5102_patch() argument
83 switch (arizona->rev) { in wm5102_patch()
93 return regmap_multi_reg_write_bypassed(arizona->regmap, in wm5102_patch()
Dwm8998-tables.c43 int wm8998_patch(struct arizona *arizona) in wm8998_patch() argument
45 return regmap_register_patch(arizona->regmap, in wm8998_patch()
Dcs47l24-tables.c27 int cs47l24_patch(struct arizona *arizona) in cs47l24_patch() argument
29 return regmap_register_patch(arizona->regmap, in cs47l24_patch()
/kernel/linux/linux-5.10/drivers/extcon/
Dextcon-arizona.c66 struct arizona *arizona; member
143 struct arizona *arizona = info->arizona; in arizona_extcon_hp_clamp() local
148 switch (arizona->type) { in arizona_extcon_hp_clamp()
165 ret = regmap_update_bits(arizona->regmap, in arizona_extcon_hp_clamp()
170 dev_warn(arizona->dev, in arizona_extcon_hp_clamp()
180 snd_soc_dapm_mutex_lock(arizona->dapm); in arizona_extcon_hp_clamp()
182 arizona->hpdet_clamp = clamp; in arizona_extcon_hp_clamp()
186 ret = regmap_update_bits(arizona->regmap, in arizona_extcon_hp_clamp()
191 dev_warn(arizona->dev, in arizona_extcon_hp_clamp()
197 ret = regmap_update_bits(arizona->regmap, ARIZONA_HP_CTRL_1L, in arizona_extcon_hp_clamp()
[all …]
DMakefile9 obj-$(CONFIG_EXTCON_ARIZONA) += extcon-arizona.o
/kernel/linux/linux-5.10/drivers/input/misc/
Darizona-haptics.c23 struct arizona *arizona; member
36 struct arizona *arizona = haptics->arizona; in arizona_haptics_work() local
38 snd_soc_dapm_to_component(arizona->dapm); in arizona_haptics_work()
41 if (!haptics->arizona->dapm) { in arizona_haptics_work()
42 dev_err(arizona->dev, "No DAPM context\n"); in arizona_haptics_work()
47 ret = regmap_update_bits(arizona->regmap, in arizona_haptics_work()
52 dev_err(arizona->dev, "Failed to set intensity: %d\n", in arizona_haptics_work()
58 ret = regmap_update_bits(arizona->regmap, in arizona_haptics_work()
63 dev_err(arizona->dev, "Failed to start haptics: %d\n", in arizona_haptics_work()
70 dev_err(arizona->dev, "Failed to start HAPTICS: %d\n", in arizona_haptics_work()
[all …]
/kernel/linux/linux-5.10/include/linux/mfd/arizona/
Dcore.h119 struct arizona { struct
162 static inline int arizona_call_notifiers(struct arizona *arizona, in arizona_call_notifiers() argument
166 return blocking_notifier_call_chain(&arizona->notifier, event, data); in arizona_call_notifiers()
169 int arizona_clk32k_enable(struct arizona *arizona);
170 int arizona_clk32k_disable(struct arizona *arizona);
172 int arizona_request_irq(struct arizona *arizona, int irq, char *name,
174 void arizona_free_irq(struct arizona *arizona, int irq, void *data);
175 int arizona_set_irq_wake(struct arizona *arizona, int irq, int on);
178 int wm5102_patch(struct arizona *arizona);
180 static inline int wm5102_patch(struct arizona *arizona) in wm5102_patch() argument
[all …]
/kernel/linux/linux-5.10/drivers/gpio/
Dgpio-arizona.c23 struct arizona *arizona; member
30 struct arizona *arizona = arizona_gpio->arizona; in arizona_gpio_direction_in() local
35 ret = regmap_update_bits_check(arizona->regmap, in arizona_gpio_direction_in()
53 struct arizona *arizona = arizona_gpio->arizona; in arizona_gpio_get() local
58 ret = regmap_read(arizona->regmap, reg, &val); in arizona_gpio_get()
72 ret = regcache_drop_region(arizona->regmap, reg, reg); in arizona_gpio_get()
80 ret = regmap_read(arizona->regmap, reg, &val); in arizona_gpio_get()
100 struct arizona *arizona = arizona_gpio->arizona; in arizona_gpio_direction_out() local
105 ret = regmap_read(arizona->regmap, ARIZONA_GPIO1_CTRL + offset, &val); in arizona_gpio_direction_out()
121 return regmap_update_bits(arizona->regmap, ARIZONA_GPIO1_CTRL + offset, in arizona_gpio_direction_out()
[all …]
/kernel/linux/linux-5.10/sound/soc/codecs/
Darizona.c67 dev_err(_fll->arizona->dev, "FLL%d: " fmt, _fll->id, ##__VA_ARGS__)
69 dev_warn(_fll->arizona->dev, "FLL%d: " fmt, _fll->id, ##__VA_ARGS__)
71 dev_dbg(_fll->arizona->dev, "FLL%d: " fmt, _fll->id, ##__VA_ARGS__)
85 struct arizona *arizona = dev_get_drvdata(component->dev->parent); in arizona_spk_ev() local
93 dev_crit(arizona->dev, in arizona_spk_ev()
98 regmap_update_bits_async(arizona->regmap, in arizona_spk_ev()
103 regmap_update_bits_async(arizona->regmap, in arizona_spk_ev()
116 struct arizona *arizona = data; in arizona_thermal_warn() local
120 ret = regmap_read(arizona->regmap, ARIZONA_INTERRUPT_RAW_STATUS_3, in arizona_thermal_warn()
123 dev_err(arizona->dev, "Failed to read thermal status: %d\n", in arizona_thermal_warn()
[all …]
Darizona.h78 struct arizona *arizona; member
282 struct arizona *arizona; member
303 int arizona_init_fll(struct arizona *arizona, int id, int base,
314 int arizona_init_common(struct arizona *arizona);
315 int arizona_init_vol_limit(struct arizona *arizona);
317 int arizona_init_spk_irqs(struct arizona *arizona);
318 int arizona_free_spk_irqs(struct arizona *arizona);
336 struct arizona *arizona = priv->arizona; in arizona_register_notifier() local
340 return blocking_notifier_chain_register(&arizona->notifier, nb); in arizona_register_notifier()
347 struct arizona *arizona = priv->arizona; in arizona_unregister_notifier() local
[all …]
Dwm5102.c584 struct arizona *arizona = dev_get_drvdata(component->dev->parent); in wm5102_sysclk_ev() local
585 struct regmap *regmap = arizona->regmap; in wm5102_sysclk_ev()
589 switch (arizona->rev) { in wm5102_sysclk_ev()
623 struct arizona *arizona = dev_get_drvdata(component->dev->parent); in wm5102_adsp_power_ev() local
629 ret = regmap_read(arizona->regmap, ARIZONA_SYSTEM_CLOCK_1, &v); in wm5102_adsp_power_ev()
668 struct arizona *arizona = dev_get_drvdata(component->dev->parent); in wm5102_out_comp_coeff_get() local
670 mutex_lock(&arizona->dac_comp_lock); in wm5102_out_comp_coeff_get()
671 put_unaligned_be16(arizona->dac_comp_coeff, in wm5102_out_comp_coeff_get()
673 mutex_unlock(&arizona->dac_comp_lock); in wm5102_out_comp_coeff_get()
682 struct arizona *arizona = dev_get_drvdata(component->dev->parent); in wm5102_out_comp_coeff_put() local
[all …]
Dwm5110.c162 struct arizona *arizona = dev_get_drvdata(component->dev->parent); in wm5110_sysclk_ev() local
163 struct regmap *regmap = arizona->regmap; in wm5110_sysclk_ev()
167 switch (arizona->rev) { in wm5110_sysclk_ev()
199 struct arizona *arizona = dev_get_drvdata(component->dev->parent); in wm5110_adsp_power_ev() local
203 ret = regmap_read(arizona->regmap, ARIZONA_SYSTEM_CLOCK_1, &v); in wm5110_adsp_power_ev()
292 struct arizona *arizona = priv->arizona; in wm5110_hp_pre_enable() local
322 return regmap_multi_reg_write(arizona->regmap, wseq, nregs); in wm5110_hp_pre_enable()
369 switch (priv->arizona->rev) { in wm5110_hp_ev()
389 static int wm5110_clear_pga_volume(struct arizona *arizona, int output) in wm5110_clear_pga_volume() argument
394 ret = regmap_write(arizona->regmap, reg, 0x80); in wm5110_clear_pga_volume()
[all …]
Dcs47l24.c63 struct arizona *arizona = dev_get_drvdata(component->dev->parent); in cs47l24_adsp_power_ev() local
67 ret = regmap_read(arizona->regmap, ARIZONA_SYSTEM_CLOCK_1, &v); in cs47l24_adsp_power_ev()
1076 struct arizona *arizona = priv->core.arizona; in cs47l24_open() local
1084 dev_err(arizona->dev, in cs47l24_open()
1096 struct arizona *arizona = priv->core.arizona; in cs47l24_adsp2_irq() local
1107 arizona_call_notifiers(arizona, in cs47l24_adsp2_irq()
1114 dev_err(arizona->dev, "Spurious compressed data IRQ\n"); in cs47l24_adsp2_irq()
1125 struct arizona *arizona = priv->core.arizona; in cs47l24_component_probe() local
1128 arizona->dapm = dapm; in cs47l24_component_probe()
1129 snd_soc_component_init_regmap(component, arizona->regmap); in cs47l24_component_probe()
[all …]
Dwm8997.c85 struct arizona *arizona = dev_get_drvdata(component->dev->parent); in wm8997_sysclk_ev() local
86 struct regmap *regmap = arizona->regmap; in wm8997_sysclk_ev()
90 switch (arizona->rev) { in wm8997_sysclk_ev()
1060 struct arizona *arizona = priv->core.arizona; in wm8997_component_probe() local
1063 snd_soc_component_init_regmap(component, arizona->regmap); in wm8997_component_probe()
1071 priv->core.arizona->dapm = dapm; in wm8997_component_probe()
1080 priv->core.arizona->dapm = NULL; in wm8997_component_remove()
1112 struct arizona *arizona = dev_get_drvdata(pdev->dev.parent); in wm8997_probe() local
1123 if (!dev_get_platdata(arizona->dev)) { in wm8997_probe()
1124 ret = arizona_of_get_audio_pdata(arizona); in wm8997_probe()
[all …]
Dwm8998.c107 struct arizona *arizona = wm8998->core.arizona; in wm8998_inmux_put() local
127 inmode = arizona->pdata.inmode[mode_index]; in wm8998_inmux_put()
1276 struct arizona *arizona = priv->core.arizona; in wm8998_component_probe() local
1279 arizona->dapm = dapm; in wm8998_component_probe()
1280 snd_soc_component_init_regmap(component, arizona->regmap); in wm8998_component_probe()
1297 priv->core.arizona->dapm = NULL; in wm8998_component_remove()
1332 struct arizona *arizona = dev_get_drvdata(pdev->dev.parent); in wm8998_probe() local
1343 if (!dev_get_platdata(arizona->dev)) { in wm8998_probe()
1344 ret = arizona_of_get_audio_pdata(arizona); in wm8998_probe()
1350 wm8998->core.arizona = arizona; in wm8998_probe()
[all …]
/kernel/linux/linux-5.10/drivers/regulator/
Darizona-micsupp.c311 struct arizona *arizona = dev_get_drvdata(pdev->dev.parent); in arizona_micsupp_probe() local
319 micsupp->regmap = arizona->regmap; in arizona_micsupp_probe()
320 micsupp->dapm = &arizona->dapm; in arizona_micsupp_probe()
321 micsupp->dev = arizona->dev; in arizona_micsupp_probe()
328 switch (arizona->type) { in arizona_micsupp_probe()
341 &arizona->pdata.micvdd); in arizona_micsupp_probe()
Darizona-ldo1.c297 struct arizona *arizona = dev_get_drvdata(pdev->dev.parent); in arizona_ldo1_probe() local
307 ldo1->regmap = arizona->regmap; in arizona_ldo1_probe()
314 switch (arizona->type) { in arizona_ldo1_probe()
334 &arizona->pdata.ldo1, in arizona_ldo1_probe()
337 arizona->external_dcvdd = external_dcvdd; in arizona_ldo1_probe()

12