Home
last modified time | relevance | path

Searched refs:mc13xxx (Results 1 – 25 of 28) sorted by relevance

12

/linux-6.3-rc2/drivers/mfd/
A Dmc13xxx-core.c48 void mc13xxx_lock(struct mc13xxx *mc13xxx) in mc13xxx_lock() argument
61 void mc13xxx_unlock(struct mc13xxx *mc13xxx) in mc13xxx_unlock() argument
102 int mc13xxx_irq_mask(struct mc13xxx *mc13xxx, int irq) in mc13xxx_irq_mask() argument
112 int mc13xxx_irq_unmask(struct mc13xxx *mc13xxx, int irq) in mc13xxx_irq_unmask() argument
225 int mc13xxx_get_flags(struct mc13xxx *mc13xxx) in mc13xxx_get_flags() argument
237 struct mc13xxx *mc13xxx; member
259 .mc13xxx = mc13xxx, in mc13xxx_adc_do_conversion()
425 struct mc13xxx *mc13xxx = dev_get_drvdata(dev); in mc13xxx_common_init() local
455 mc13xxx->irq_chip.irqs = mc13xxx->irqs; in mc13xxx_common_init()
459 0, &mc13xxx->irq_chip, &mc13xxx->irq_data); in mc13xxx_common_init()
[all …]
A Dmc13xxx-i2c.c57 struct mc13xxx *mc13xxx; in mc13xxx_i2c_probe() local
60 mc13xxx = devm_kzalloc(&client->dev, sizeof(*mc13xxx), GFP_KERNEL); in mc13xxx_i2c_probe()
61 if (!mc13xxx) in mc13xxx_i2c_probe()
64 dev_set_drvdata(&client->dev, mc13xxx); in mc13xxx_i2c_probe()
66 mc13xxx->irq = client->irq; in mc13xxx_i2c_probe()
68 mc13xxx->regmap = devm_regmap_init_i2c(client, in mc13xxx_i2c_probe()
70 if (IS_ERR(mc13xxx->regmap)) { in mc13xxx_i2c_probe()
71 ret = PTR_ERR(mc13xxx->regmap); in mc13xxx_i2c_probe()
79 mc13xxx->variant = of_id->data; in mc13xxx_i2c_probe()
81 mc13xxx->variant = (void *)id->driver_data; in mc13xxx_i2c_probe()
A Dmc13xxx-spi.c127 struct mc13xxx *mc13xxx; in mc13xxx_spi_probe() local
130 mc13xxx = devm_kzalloc(&spi->dev, sizeof(*mc13xxx), GFP_KERNEL); in mc13xxx_spi_probe()
131 if (!mc13xxx) in mc13xxx_spi_probe()
134 dev_set_drvdata(&spi->dev, mc13xxx); in mc13xxx_spi_probe()
138 mc13xxx->irq = spi->irq; in mc13xxx_spi_probe()
145 mc13xxx->regmap = devm_regmap_init(&spi->dev, &regmap_mc13xxx_bus, in mc13xxx_spi_probe()
148 if (IS_ERR(mc13xxx->regmap)) { in mc13xxx_spi_probe()
149 ret = PTR_ERR(mc13xxx->regmap); in mc13xxx_spi_probe()
158 mc13xxx->variant = of_id->data; in mc13xxx_spi_probe()
162 mc13xxx->variant = (void *)id_entry->driver_data; in mc13xxx_spi_probe()
A Dmc13xxx.h17 struct mc13xxx;
21 void (*print_revision)(struct mc13xxx *mc13xxx, u32 revision);
29 struct mc13xxx { struct
A DMakefile108 obj-$(CONFIG_MFD_MC13XXX) += mc13xxx-core.o
109 obj-$(CONFIG_MFD_MC13XXX_SPI) += mc13xxx-spi.o
110 obj-$(CONFIG_MFD_MC13XXX_I2C) += mc13xxx-i2c.o
/linux-6.3-rc2/drivers/rtc/
A Drtc-mc13xxx.c28 struct mc13xxx *mc13xxx; member
36 int (*func)(struct mc13xxx *mc13xxx, int irq); in mc13xxx_rtc_irq_enable_unlocked()
51 mc13xxx_lock(priv->mc13xxx); in mc13xxx_rtc_alarm_irq_enable()
242 struct mc13xxx *mc13xxx = priv->mc13xxx; in mc13xxx_rtc_alarm_handler() local
262 struct mc13xxx *mc13xxx = priv->mc13xxx; in mc13xxx_rtc_reset_handler() local
275 struct mc13xxx *mc13xxx; in mc13xxx_rtc_probe() local
282 priv->mc13xxx = mc13xxx; in mc13xxx_rtc_probe()
294 mc13xxx_lock(mc13xxx); in mc13xxx_rtc_probe()
308 mc13xxx_unlock(mc13xxx); in mc13xxx_rtc_probe()
312 mc13xxx_lock(mc13xxx); in mc13xxx_rtc_probe()
[all …]
/linux-6.3-rc2/include/linux/mfd/
A Dmc13xxx.h11 struct mc13xxx;
13 void mc13xxx_lock(struct mc13xxx *mc13xxx);
14 void mc13xxx_unlock(struct mc13xxx *mc13xxx);
18 int mc13xxx_reg_rmw(struct mc13xxx *mc13xxx, unsigned int offset,
21 int mc13xxx_irq_request(struct mc13xxx *mc13xxx, int irq,
23 int mc13xxx_irq_free(struct mc13xxx *mc13xxx, int irq, void *dev);
25 int mc13xxx_irq_status(struct mc13xxx *mc13xxx, int irq,
28 int mc13xxx_get_flags(struct mc13xxx *mc13xxx);
30 int mc13xxx_adc_do_conversion(struct mc13xxx *mc13xxx,
47 int mc13xxx_irq_mask(struct mc13xxx *mc13xxx, int irq);
[all …]
/linux-6.3-rc2/drivers/input/touchscreen/
A Dmc13783_ts.c35 struct mc13xxx *mc13xxx; member
45 mc13xxx_irq_ack(priv->mc13xxx, irq); in mc13783_ts_handler()
126 if (mc13xxx_adc_do_conversion(priv->mc13xxx, in mc13783_ts_work()
138 mc13xxx_lock(priv->mc13xxx); in mc13783_ts_open()
140 mc13xxx_irq_ack(priv->mc13xxx, MC13XXX_IRQ_TS); in mc13783_ts_open()
147 ret = mc13xxx_reg_rmw(priv->mc13xxx, MC13XXX_ADC0, in mc13783_ts_open()
152 mc13xxx_unlock(priv->mc13xxx); in mc13783_ts_open()
160 mc13xxx_lock(priv->mc13xxx); in mc13783_ts_close()
161 mc13xxx_reg_rmw(priv->mc13xxx, MC13XXX_ADC0, in mc13783_ts_close()
164 mc13xxx_unlock(priv->mc13xxx); in mc13783_ts_close()
[all …]
/linux-6.3-rc2/drivers/regulator/
A Dmc13892-regulator.c305 struct mc13xxx *mc13892 = priv->mc13xxx; in mc13892_powermisc_rmw()
311 mc13xxx_lock(priv->mc13xxx); in mc13892_powermisc_rmw()
329 mc13xxx_unlock(priv->mc13xxx); in mc13892_powermisc_rmw()
374 mc13xxx_lock(priv->mc13xxx); in mc13892_gpo_regulator_is_enabled()
376 mc13xxx_unlock(priv->mc13xxx); in mc13892_gpo_regulator_is_enabled()
406 mc13xxx_lock(priv->mc13xxx); in mc13892_sw_regulator_get_voltage_sel()
409 mc13xxx_unlock(priv->mc13xxx); in mc13892_sw_regulator_get_voltage_sel()
474 mc13xxx_lock(priv->mc13xxx); in mc13892_sw_regulator_set_voltage_sel()
498 mc13xxx_lock(priv->mc13xxx); in mc13892_vcam_set_mode()
512 mc13xxx_lock(priv->mc13xxx); in mc13892_vcam_get_mode()
[all …]
A Dmc13783-regulator.c297 struct mc13xxx *mc13783 = priv->mc13xxx; in mc13783_powermisc_rmw()
303 mc13xxx_lock(priv->mc13xxx); in mc13783_powermisc_rmw()
321 mc13xxx_unlock(priv->mc13xxx); in mc13783_powermisc_rmw()
368 mc13xxx_lock(priv->mc13xxx); in mc13783_gpo_regulator_is_enabled()
369 ret = mc13xxx_reg_read(priv->mc13xxx, mc13xxx_regulators[id].reg, &val); in mc13783_gpo_regulator_is_enabled()
370 mc13xxx_unlock(priv->mc13xxx); in mc13783_gpo_regulator_is_enabled()
394 struct mc13xxx *mc13783 = dev_get_drvdata(pdev->dev.parent); in mc13783_regulator_probe()
416 priv->mc13xxx = mc13783; in mc13783_regulator_probe()
A Dmc13xxx-regulator-core.c35 return mc13xxx_reg_rmw(priv->mc13xxx, mc13xxx_regulators[id].reg, in mc13xxx_regulator_enable()
48 return mc13xxx_reg_rmw(priv->mc13xxx, mc13xxx_regulators[id].reg, in mc13xxx_regulator_disable()
59 ret = mc13xxx_reg_read(priv->mc13xxx, mc13xxx_regulators[id].reg, &val); in mc13xxx_regulator_is_enabled()
73 return mc13xxx_reg_rmw(priv->mc13xxx, mc13xxx_regulators[id].vsel_reg, in mc13xxx_regulator_set_voltage_sel()
87 ret = mc13xxx_reg_read(priv->mc13xxx, in mc13xxx_regulator_get_voltage()
A Dmc13xxx.h23 struct mc13xxx *mc13xxx; member
/linux-6.3-rc2/sound/soc/codecs/
A Dmc13783.c79 struct mc13xxx *mc13xxx; member
603 mc13xxx_reg_write(priv->mc13xxx, MC13783_AUDIO_RX0, 0x25893); in mc13783_probe()
604 mc13xxx_reg_write(priv->mc13xxx, MC13783_AUDIO_RX1, 0x00d35A); in mc13783_probe()
605 mc13xxx_reg_write(priv->mc13xxx, MC13783_AUDIO_TX, 0x420000); in mc13783_probe()
608 mc13xxx_reg_write(priv->mc13xxx, MC13783_AUDIO_DAC, 0x0e0004); in mc13783_probe()
611 mc13xxx_reg_rmw(priv->mc13xxx, MC13783_AUDIO_CODEC, in mc13783_probe()
614 mc13xxx_reg_rmw(priv->mc13xxx, MC13783_AUDIO_CODEC, in mc13783_probe()
618 mc13xxx_reg_rmw(priv->mc13xxx, MC13783_AUDIO_DAC, in mc13783_probe()
621 mc13xxx_reg_rmw(priv->mc13xxx, MC13783_AUDIO_DAC, in mc13783_probe()
632 mc13xxx_reg_rmw(priv->mc13xxx, MC13783_AUDIO_RX0, 0x3, 0); in mc13783_remove()
[all …]
/linux-6.3-rc2/drivers/hwmon/
A Dmc13783-adc.c27 struct mc13xxx *mc13xxx; member
49 ret = mc13xxx_adc_do_conversion(priv->mc13xxx, in mc13783_adc_read()
222 unsigned flags = mc13xxx_get_flags(priv->mc13xxx); in mc13783_adc_use_touchscreen()
238 priv->mc13xxx = dev_get_drvdata(pdev->dev.parent); in mc13783_adc_probe()
/linux-6.3-rc2/Documentation/devicetree/bindings/mfd/
A Dmc13xxx.txt7 - fsl,mc13xxx-uses-adc : Indicate the ADC is being used
8 - fsl,mc13xxx-uses-codec : Indicate the Audio Codec is being used
9 - fsl,mc13xxx-uses-rtc : Indicate the RTC is being used
10 - fsl,mc13xxx-uses-touch : Indicate the touchscreen controller is being used
/linux-6.3-rc2/arch/arm/boot/dts/
A Dimx31-lite.dts67 fsl,mc13xxx-uses-adc;
68 fsl,mc13xxx-uses-rtc;
A Dimx51-digi-connectcore-jsk.dts36 fsl,mc13xxx-uses-rtc;
A Dimx27-phytec-phycore-som.dtsi86 fsl,mc13xxx-uses-adc;
87 fsl,mc13xxx-uses-rtc;
A Dimx53-kp-ddc.dts145 fsl,mc13xxx-uses-touch;
A Dimx53-tqma53.dtsi267 fsl,mc13xxx-uses-rtc;
A Dimx51-babbage.dts242 fsl,mc13xxx-uses-adc;
243 fsl,mc13xxx-uses-rtc;
A Dimx51-zii-scu2-mezz.dts129 fsl,mc13xxx-uses-adc;
A Dimx51-zii-scu3-esb.dts58 fsl,mc13xxx-uses-adc;
/linux-6.3-rc2/drivers/input/misc/
A Dmc13783-pwrbutton.c34 struct mc13xxx *mc13783;
94 struct mc13xxx *mc13783 = dev_get_drvdata(pdev->dev.parent); in mc13783_pwrbutton_probe()
/linux-6.3-rc2/drivers/leds/
A Dleds-mc13783.c36 struct mc13xxx *master;
180 struct mc13xxx *mcdev = dev_get_drvdata(dev->parent); in mc13xxx_led_probe()

Completed in 43 milliseconds

12