Home
last modified time | relevance | path

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

/linux-3.4.99/drivers/mfd/
Dmc13xxx-core.c25 struct mc13xxx { struct
144 void mc13xxx_lock(struct mc13xxx *mc13xxx) in mc13xxx_lock() argument
146 if (!mutex_trylock(&mc13xxx->lock)) { in mc13xxx_lock()
147 dev_dbg(&mc13xxx->spidev->dev, "wait for %s from %pf\n", in mc13xxx_lock()
150 mutex_lock(&mc13xxx->lock); in mc13xxx_lock()
152 dev_dbg(&mc13xxx->spidev->dev, "%s from %pf\n", in mc13xxx_lock()
157 void mc13xxx_unlock(struct mc13xxx *mc13xxx) in mc13xxx_unlock() argument
159 dev_dbg(&mc13xxx->spidev->dev, "%s from %pf\n", in mc13xxx_unlock()
161 mutex_unlock(&mc13xxx->lock); in mc13xxx_unlock()
166 int mc13xxx_reg_read(struct mc13xxx *mc13xxx, unsigned int offset, u32 *val) in mc13xxx_reg_read() argument
[all …]
DMakefile56 obj-$(CONFIG_MFD_MC13XXX) += mc13xxx-core.o
/linux-3.4.99/drivers/rtc/
Drtc-mc13xxx.c28 struct mc13xxx *mc13xxx; member
36 int (*func)(struct mc13xxx *mc13xxx, int irq); in mc13xxx_rtc_irq_enable_unlocked()
42 return func(priv->mc13xxx, irq); in mc13xxx_rtc_irq_enable_unlocked()
51 mc13xxx_lock(priv->mc13xxx); in mc13xxx_rtc_irq_enable()
55 mc13xxx_unlock(priv->mc13xxx); in mc13xxx_rtc_irq_enable()
67 mc13xxx_lock(priv->mc13xxx); in mc13xxx_rtc_read_time()
74 ret = mc13xxx_reg_read(priv->mc13xxx, MC13XXX_RTCDAY, &days1); in mc13xxx_rtc_read_time()
78 ret = mc13xxx_reg_read(priv->mc13xxx, MC13XXX_RTCTOD, &seconds); in mc13xxx_rtc_read_time()
82 ret = mc13xxx_reg_read(priv->mc13xxx, MC13XXX_RTCDAY, &days2); in mc13xxx_rtc_read_time()
84 mc13xxx_unlock(priv->mc13xxx); in mc13xxx_rtc_read_time()
[all …]
DMakefile69 obj-$(CONFIG_RTC_DRV_MC13XXX) += rtc-mc13xxx.o
/linux-3.4.99/include/linux/mfd/
Dmc13xxx.h14 struct mc13xxx;
16 void mc13xxx_lock(struct mc13xxx *mc13xxx);
17 void mc13xxx_unlock(struct mc13xxx *mc13xxx);
19 int mc13xxx_reg_read(struct mc13xxx *mc13xxx, unsigned int offset, u32 *val);
20 int mc13xxx_reg_write(struct mc13xxx *mc13xxx, unsigned int offset, u32 val);
21 int mc13xxx_reg_rmw(struct mc13xxx *mc13xxx, unsigned int offset,
24 int mc13xxx_get_flags(struct mc13xxx *mc13xxx);
26 int mc13xxx_irq_request(struct mc13xxx *mc13xxx, int irq,
28 int mc13xxx_irq_request_nounmask(struct mc13xxx *mc13xxx, int irq,
30 int mc13xxx_irq_free(struct mc13xxx *mc13xxx, int irq, void *dev);
[all …]
/linux-3.4.99/drivers/input/touchscreen/
Dmc13783_ts.c38 struct mc13xxx *mc13xxx; member
49 mc13xxx_irq_ack(priv->mc13xxx, irq); in mc13783_ts_handler()
128 if (mc13xxx_adc_do_conversion(priv->mc13xxx, in mc13783_ts_work()
140 mc13xxx_lock(priv->mc13xxx); in mc13783_ts_open()
142 mc13xxx_irq_ack(priv->mc13xxx, MC13XXX_IRQ_TS); in mc13783_ts_open()
144 ret = mc13xxx_irq_request(priv->mc13xxx, MC13XXX_IRQ_TS, in mc13783_ts_open()
149 ret = mc13xxx_reg_rmw(priv->mc13xxx, MC13XXX_ADC0, in mc13783_ts_open()
152 mc13xxx_irq_free(priv->mc13xxx, MC13XXX_IRQ_TS, priv); in mc13783_ts_open()
154 mc13xxx_unlock(priv->mc13xxx); in mc13783_ts_open()
162 mc13xxx_lock(priv->mc13xxx); in mc13783_ts_close()
[all …]
/linux-3.4.99/drivers/regulator/
Dmc13892-regulator.c302 struct mc13xxx *mc13892 = priv->mc13xxx; in mc13892_powermisc_rmw()
343 mc13xxx_lock(priv->mc13xxx); in mc13892_gpo_regulator_enable()
345 mc13xxx_unlock(priv->mc13xxx); in mc13892_gpo_regulator_enable()
363 mc13xxx_lock(priv->mc13xxx); in mc13892_gpo_regulator_disable()
366 mc13xxx_unlock(priv->mc13xxx); in mc13892_gpo_regulator_disable()
377 mc13xxx_lock(priv->mc13xxx); in mc13892_gpo_regulator_is_enabled()
378 ret = mc13xxx_reg_read(priv->mc13xxx, mc13892_regulators[id].reg, &val); in mc13892_gpo_regulator_is_enabled()
379 mc13xxx_unlock(priv->mc13xxx); in mc13892_gpo_regulator_is_enabled()
410 mc13xxx_lock(priv->mc13xxx); in mc13892_sw_regulator_get_voltage()
411 ret = mc13xxx_reg_read(priv->mc13xxx, in mc13892_sw_regulator_get_voltage()
[all …]
Dmc13xxx-regulator-core.c40 mc13xxx_lock(priv->mc13xxx); in mc13xxx_regulator_enable()
41 ret = mc13xxx_reg_rmw(priv->mc13xxx, mc13xxx_regulators[id].reg, in mc13xxx_regulator_enable()
44 mc13xxx_unlock(priv->mc13xxx); in mc13xxx_regulator_enable()
58 mc13xxx_lock(priv->mc13xxx); in mc13xxx_regulator_disable()
59 ret = mc13xxx_reg_rmw(priv->mc13xxx, mc13xxx_regulators[id].reg, in mc13xxx_regulator_disable()
61 mc13xxx_unlock(priv->mc13xxx); in mc13xxx_regulator_disable()
73 mc13xxx_lock(priv->mc13xxx); in mc13xxx_regulator_is_enabled()
74 ret = mc13xxx_reg_read(priv->mc13xxx, mc13xxx_regulators[id].reg, &val); in mc13xxx_regulator_is_enabled()
75 mc13xxx_unlock(priv->mc13xxx); in mc13xxx_regulator_is_enabled()
149 mc13xxx_lock(priv->mc13xxx); in mc13xxx_regulator_set_voltage()
[all …]
Dmc13783-regulator.c235 struct mc13xxx *mc13783 = priv->mc13xxx; in mc13783_powermisc_rmw()
274 mc13xxx_lock(priv->mc13xxx); in mc13783_gpo_regulator_enable()
277 mc13xxx_unlock(priv->mc13xxx); in mc13783_gpo_regulator_enable()
297 mc13xxx_lock(priv->mc13xxx); in mc13783_gpo_regulator_disable()
300 mc13xxx_unlock(priv->mc13xxx); in mc13783_gpo_regulator_disable()
312 mc13xxx_lock(priv->mc13xxx); in mc13783_gpo_regulator_is_enabled()
313 ret = mc13xxx_reg_read(priv->mc13xxx, mc13xxx_regulators[id].reg, &val); in mc13783_gpo_regulator_is_enabled()
314 mc13xxx_unlock(priv->mc13xxx); in mc13783_gpo_regulator_is_enabled()
339 struct mc13xxx *mc13783 = dev_get_drvdata(pdev->dev.parent); in mc13783_regulator_probe()
357 priv->mc13xxx = mc13783; in mc13783_regulator_probe()
Dmc13xxx.h29 struct mc13xxx *mc13xxx; member
DMakefile35 obj-$(CONFIG_REGULATOR_MC13XXX_CORE) += mc13xxx-regulator-core.o
/linux-3.4.99/Documentation/devicetree/bindings/mfd/
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-3.4.99/drivers/hwmon/
Dmc13783-adc.c38 struct mc13xxx *mc13xxx; member
60 ret = mc13xxx_adc_do_conversion(priv->mc13xxx, in mc13783_adc_read()
170 unsigned flags = mc13xxx_get_flags(priv->mc13xxx); in mc13783_adc_use_touchscreen()
186 priv->mc13xxx = dev_get_drvdata(pdev->dev.parent); in mc13783_adc_probe()
/linux-3.4.99/drivers/leds/
Dleds-mc13783.c30 struct mc13xxx *master;
187 struct mc13xxx *dev = dev_get_drvdata(pdev->dev.parent); in mc13783_leds_prepare()
356 struct mc13xxx *dev = dev_get_drvdata(pdev->dev.parent); in mc13783_led_remove()
/linux-3.4.99/drivers/input/misc/
Dmc13783-pwrbutton.c35 struct mc13xxx *mc13783;
95 struct mc13xxx *mc13783 = dev_get_drvdata(pdev->dev.parent); in mc13783_pwrbutton_probe()
/linux-3.4.99/arch/arm/boot/dts/
Dimx53-evk.dts92 compatible = "fsl,mc13892", "fsl,mc13xxx";