Home
last modified time | relevance | path

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

12

/openbmc/linux/drivers/mfd/
H 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 …]
H A Dmc13xxx-i2c.c56 struct mc13xxx *mc13xxx; in mc13xxx_i2c_probe() local
59 mc13xxx = devm_kzalloc(&client->dev, sizeof(*mc13xxx), GFP_KERNEL); in mc13xxx_i2c_probe()
60 if (!mc13xxx) in mc13xxx_i2c_probe()
63 dev_set_drvdata(&client->dev, mc13xxx); in mc13xxx_i2c_probe()
65 mc13xxx->irq = client->irq; in mc13xxx_i2c_probe()
67 mc13xxx->regmap = devm_regmap_init_i2c(client, in mc13xxx_i2c_probe()
69 if (IS_ERR(mc13xxx->regmap)) { in mc13xxx_i2c_probe()
70 ret = PTR_ERR(mc13xxx->regmap); in mc13xxx_i2c_probe()
75 mc13xxx->variant = i2c_get_match_data(client); in mc13xxx_i2c_probe()
H 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()
H A Dmc13xxx.h17 struct mc13xxx;
21 void (*print_revision)(struct mc13xxx *mc13xxx, u32 revision);
29 struct mc13xxx { struct
H A DMakefile114 obj-$(CONFIG_MFD_MC13XXX) += mc13xxx-core.o
115 obj-$(CONFIG_MFD_MC13XXX_SPI) += mc13xxx-spi.o
116 obj-$(CONFIG_MFD_MC13XXX_I2C) += mc13xxx-i2c.o
/openbmc/linux/drivers/rtc/
H 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 …]
/openbmc/linux/include/linux/mfd/
H 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 …]
/openbmc/linux/drivers/input/touchscreen/
H 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 …]
/openbmc/linux/drivers/regulator/
H 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 …]
H 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()
H 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()
H A Dmc13xxx.h23 struct mc13xxx *mc13xxx; member
/openbmc/linux/sound/soc/codecs/
H 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 …]
/openbmc/linux/drivers/hwmon/
H 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()
/openbmc/linux/Documentation/devicetree/bindings/mfd/
H 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
/openbmc/linux/arch/arm/boot/dts/nxp/imx/
H A Dimx31-lite.dts67 fsl,mc13xxx-uses-adc;
68 fsl,mc13xxx-uses-rtc;
H A Dimx27-phytec-phycore-som.dtsi78 fsl,mc13xxx-uses-adc;
79 fsl,mc13xxx-uses-rtc;
H A Dimx51-digi-connectcore-jsk.dts36 fsl,mc13xxx-uses-rtc;
H A Dimx53-kp-ddc.dts145 fsl,mc13xxx-uses-touch;
H A Dimx53-tqma53.dtsi260 fsl,mc13xxx-uses-rtc;
H A Dimx51-babbage.dts235 fsl,mc13xxx-uses-adc;
236 fsl,mc13xxx-uses-rtc;
H A Dimx51-zii-scu2-mezz.dts129 fsl,mc13xxx-uses-adc;
/openbmc/linux/drivers/input/misc/
H A Dmc13783-pwrbutton.c34 struct mc13xxx *mc13783;
94 struct mc13xxx *mc13783 = dev_get_drvdata(pdev->dev.parent); in mc13783_pwrbutton_probe()
/openbmc/linux/drivers/leds/
H A Dleds-mc13783.c36 struct mc13xxx *master;
180 struct mc13xxx *mcdev = dev_get_drvdata(dev->parent); in mc13xxx_led_probe()
/openbmc/u-boot/drivers/rtc/
H A DMakefile35 obj-$(CONFIG_RTC_MC13XXX) += mc13xxx-rtc.o

12