/linux-3.4.99/drivers/mfd/ |
D | mc13xxx-core.c | 25 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 …]
|
D | Makefile | 56 obj-$(CONFIG_MFD_MC13XXX) += mc13xxx-core.o
|
/linux-3.4.99/drivers/rtc/ |
D | rtc-mc13xxx.c | 28 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 …]
|
D | Makefile | 69 obj-$(CONFIG_RTC_DRV_MC13XXX) += rtc-mc13xxx.o
|
/linux-3.4.99/include/linux/mfd/ |
D | mc13xxx.h | 14 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/ |
D | mc13783_ts.c | 38 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/ |
D | mc13892-regulator.c | 302 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 …]
|
D | mc13xxx-regulator-core.c | 40 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 …]
|
D | mc13783-regulator.c | 235 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()
|
D | mc13xxx.h | 29 struct mc13xxx *mc13xxx; member
|
D | Makefile | 35 obj-$(CONFIG_REGULATOR_MC13XXX_CORE) += mc13xxx-regulator-core.o
|
/linux-3.4.99/Documentation/devicetree/bindings/mfd/ |
D | mc13xxx.txt | 7 - 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/ |
D | mc13783-adc.c | 38 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/ |
D | leds-mc13783.c | 30 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/ |
D | mc13783-pwrbutton.c | 35 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/ |
D | imx53-evk.dts | 92 compatible = "fsl,mc13892", "fsl,mc13xxx";
|