Home
last modified time | relevance | path

Searched refs:twl_i2c_write_u8 (Results 1 – 22 of 22) sorted by relevance

/openbmc/linux/drivers/mfd/
H A Dtwl4030-power.c191 err = twl_i2c_write_u8(TWL_MODULE_PM_MASTER, address, R_MEMORY_ADDRESS); in twl4030_write_script_byte()
194 err = twl_i2c_write_u8(TWL_MODULE_PM_MASTER, byte, R_MEMORY_DATA); in twl4030_write_script_byte()
250 err = twl_i2c_write_u8(TWL_MODULE_PM_MASTER, address, R_SEQ_ADD_S2A3); in twl4030_config_wakeup3_sequence()
259 err = twl_i2c_write_u8(TWL_MODULE_PM_MASTER, data, R_P3_SW_EVENTS); in twl4030_config_wakeup3_sequence()
274 err = twl_i2c_write_u8(TWL_MODULE_PM_MASTER, address, R_SEQ_ADD_S2A12); in twl4030_config_wakeup12_sequence()
284 err = twl_i2c_write_u8(TWL_MODULE_PM_MASTER, data, R_P1_SW_EVENTS); in twl4030_config_wakeup12_sequence()
293 err = twl_i2c_write_u8(TWL_MODULE_PM_MASTER, data, R_P2_SW_EVENTS); in twl4030_config_wakeup12_sequence()
305 err = twl_i2c_write_u8(TWL_MODULE_PM_MASTER, data, in twl4030_config_wakeup12_sequence()
323 err = twl_i2c_write_u8(TWL_MODULE_PM_MASTER, address, R_SEQ_ADD_A2S); in twl4030_config_sleep_sequence()
337 err = twl_i2c_write_u8(TWL_MODULE_PM_MASTER, address, R_SEQ_ADD_WARM); in twl4030_config_warmreset_sequence()
[all …]
H A Dtwl-core.c522 err = twl_i2c_write_u8(TWL4030_MODULE_INTBR, TWL_EEPROM_R_UNLOCK, in twl_read_idcode_register()
536 err = twl_i2c_write_u8(TWL4030_MODULE_INTBR, 0x0, REG_UNLOCK_TEST_REG); in twl_read_idcode_register()
608 e = twl_i2c_write_u8(TWL_MODULE_PM_MASTER, 0, in protect_pm_master()
617 e |= twl_i2c_write_u8(TWL_MODULE_PM_MASTER, TWL4030_PM_MASTER_KEY_CFG1, in unprotect_pm_master()
619 e |= twl_i2c_write_u8(TWL_MODULE_PM_MASTER, TWL4030_PM_MASTER_KEY_CFG2, in unprotect_pm_master()
658 e |= twl_i2c_write_u8(TWL_MODULE_PM_MASTER, ctrl, R_CFG_BOOT); in clocks_init()
830 twl_i2c_write_u8(TWL4030_MODULE_INTBR, temp, REG_GPPUPDCTR1); in twl_probe()
835 twl_i2c_write_u8(TWL_MODULE_PM_RECEIVER, temp, in twl_probe()
H A Dtwl6030-irq.c210 ret = twl_i2c_write_u8(TWL_MODULE_PIH, 0x00, REG_INT_STS_A); in twl6030_irq_thread()
239 ret |= twl_i2c_write_u8(TWL_MODULE_PIH, unmask_value, in twl6030_interrupt_unmask()
253 ret |= twl_i2c_write_u8(TWL_MODULE_PIH, mask_value, in twl6030_interrupt_mask()
280 ret = twl_i2c_write_u8(TWL6030_MODULE_ID0, reg_val, TWL6030_MMCCTRL); in twl6030_mmc_card_detect_config()
295 ret = twl_i2c_write_u8(TWL6030_MODULE_ID0, reg_val, in twl6030_mmc_card_detect_config()
H A Dtwl4030-audio.c57 twl_i2c_write_u8(TWL4030_MODULE_AUDIO_VOICE, in twl4030_audio_set_resource()
215 twl_i2c_write_u8(TWL4030_MODULE_AUDIO_VOICE, val, TWL4030_REG_APLL_CTL); in twl4030_audio_probe()
H A Dtwl4030-irq.c355 status = twl_i2c_write_u8(sih->module, in twl4030_init_sih_modules()
/openbmc/linux/drivers/video/backlight/
H A Dpandora_bl.c63 twl_i2c_write_u8(TWL4030_MODULE_INTBR, r, TWL_INTBR_GPBR1); in pandora_backlight_update_status()
65 twl_i2c_write_u8(TWL4030_MODULE_INTBR, r, TWL_INTBR_GPBR1); in pandora_backlight_update_status()
75 twl_i2c_write_u8(TWL_MODULE_PWM, MAX_VALUE, TWL_PWM0_OFF); in pandora_backlight_update_status()
81 twl_i2c_write_u8(TWL4030_MODULE_INTBR, r, TWL_INTBR_GPBR1); in pandora_backlight_update_status()
83 twl_i2c_write_u8(TWL4030_MODULE_INTBR, r, TWL_INTBR_GPBR1); in pandora_backlight_update_status()
93 twl_i2c_write_u8(TWL_MODULE_PWM, MIN_VALUE + brightness, TWL_PWM0_OFF); in pandora_backlight_update_status()
135 twl_i2c_write_u8(TWL_MODULE_PWM, 0x80, TWL_PWM0_ON); in pandora_backlight_probe()
145 twl_i2c_write_u8(TWL4030_MODULE_INTBR, r, TWL_INTBR_PMBR1); in pandora_backlight_probe()
/openbmc/linux/drivers/power/supply/
H A Dtwl4030_charger.c170 return twl_i2c_write_u8(mod_no, val, reg); in twl4030_clear_set()
321 status = twl_i2c_write_u8(TWL_MODULE_MAIN_CHARGE, 0xF4, in twl4030_charger_update_current()
325 twl_i2c_write_u8(TWL_MODULE_MAIN_CHARGE, in twl4030_charger_update_current()
342 status = twl_i2c_write_u8(TWL_MODULE_MAIN_CHARGE, 0xE7, in twl4030_charger_update_current()
346 twl_i2c_write_u8(TWL_MODULE_MAIN_CHARGE, in twl4030_charger_update_current()
369 status = twl_i2c_write_u8(TWL_MODULE_MAIN_CHARGE, 0xE7, in twl4030_charger_update_current()
373 status = twl_i2c_write_u8(TWL_MODULE_MAIN_CHARGE, in twl4030_charger_update_current()
380 status = twl_i2c_write_u8(TWL_MODULE_MAIN_CHARGE, 0xE7, in twl4030_charger_update_current()
384 status = twl_i2c_write_u8(TWL_MODULE_MAIN_CHARGE, in twl4030_charger_update_current()
391 twl_i2c_write_u8(TWL_MODULE_MAIN_CHARGE, in twl4030_charger_update_current()
[all …]
/openbmc/linux/drivers/pwm/
H A Dpwm-twl.c109 ret = twl_i2c_write_u8(TWL4030_MODULE_INTBR, val, TWL4030_GPBR1_REG); in twl4030_pwm_enable()
115 ret = twl_i2c_write_u8(TWL4030_MODULE_INTBR, val, TWL4030_GPBR1_REG); in twl4030_pwm_enable()
139 ret = twl_i2c_write_u8(TWL4030_MODULE_INTBR, val, TWL4030_GPBR1_REG); in twl4030_pwm_disable()
145 ret = twl_i2c_write_u8(TWL4030_MODULE_INTBR, val, TWL4030_GPBR1_REG); in twl4030_pwm_disable()
182 ret = twl_i2c_write_u8(TWL4030_MODULE_INTBR, val, TWL4030_PMBR1_REG); in twl4030_pwm_request()
213 ret = twl_i2c_write_u8(TWL4030_MODULE_INTBR, val, TWL4030_PMBR1_REG); in twl4030_pwm_free()
232 ret = twl_i2c_write_u8(TWL6030_MODULE_ID1, val, TWL6030_TOGGLE3_REG); in twl6030_pwm_enable()
255 ret = twl_i2c_write_u8(TWL6030_MODULE_ID1, val, TWL6030_TOGGLE3_REG); in twl6030_pwm_disable()
263 ret = twl_i2c_write_u8(TWL6030_MODULE_ID1, val, TWL6030_TOGGLE3_REG); in twl6030_pwm_disable()
271 ret = twl_i2c_write_u8(TWL6030_MODULE_ID1, val, TWL6030_TOGGLE3_REG); in twl6030_pwm_disable()
H A Dpwm-twl-led.c123 ret = twl_i2c_write_u8(TWL4030_MODULE_LED, val, TWL4030_LEDEN_REG); in twl4030_pwmled_enable()
148 ret = twl_i2c_write_u8(TWL4030_MODULE_LED, val, TWL4030_LEDEN_REG); in twl4030_pwmled_disable()
204 ret = twl_i2c_write_u8(TWL6030_MODULE_ID1, on_time, in twl6030_pwmled_config()
229 ret = twl_i2c_write_u8(TWL6030_MODULE_ID1, val, TWL6030_LED_PWM_CTRL2); in twl6030_pwmled_enable()
256 ret = twl_i2c_write_u8(TWL6030_MODULE_ID1, val, TWL6030_LED_PWM_CTRL2); in twl6030_pwmled_disable()
307 ret = twl_i2c_write_u8(TWL6030_MODULE_ID1, val, TWL6030_LED_PWM_CTRL2); in twl6030_pwmled_request()
333 ret = twl_i2c_write_u8(TWL6030_MODULE_ID1, val, TWL6030_LED_PWM_CTRL2); in twl6030_pwmled_free()
/openbmc/linux/drivers/phy/ti/
H A Dphy-twl4030-usb.c182 if ((twl_i2c_write_u8(module, data, address) >= 0) && in twl4030_i2c_write_u8_verify()
190 if ((twl_i2c_write_u8(module, data, address) >= 0) && in twl4030_i2c_write_u8_verify()
209 ret = twl_i2c_write_u8(TWL_MODULE_USB, data, address); in twl4030_usb_write()
466 twl_i2c_write_u8(TWL_MODULE_PM_RECEIVER, 0, VUSB_DEDICATED2); in twl4030_usb_runtime_resume()
517 twl_i2c_write_u8(TWL_MODULE_PM_MASTER, TWL4030_PM_MASTER_KEY_CFG1, in twl4030_usb_ldo_init()
520 twl_i2c_write_u8(TWL_MODULE_PM_MASTER, TWL4030_PM_MASTER_KEY_CFG2, in twl4030_usb_ldo_init()
527 twl_i2c_write_u8(TWL_MODULE_PM_RECEIVER, 0x14, VUSB_DEDICATED1); in twl4030_usb_ldo_init()
530 twl_i2c_write_u8(TWL_MODULE_PM_RECEIVER, 0, VUSB3V1_DEV_GRP); in twl4030_usb_ldo_init()
536 twl_i2c_write_u8(TWL_MODULE_PM_RECEIVER, 0, VUSB3V1_TYPE); in twl4030_usb_ldo_init()
539 twl_i2c_write_u8(TWL_MODULE_PM_RECEIVER, 0, VUSB1V5_DEV_GRP); in twl4030_usb_ldo_init()
[all …]
/openbmc/linux/drivers/input/misc/
H A Dtwl4030-vibra.c48 twl_i2c_write_u8(TWL4030_MODULE_LED, LEDEN, reg); in vibra_disable_leds()
61 twl_i2c_write_u8(TWL4030_MODULE_AUDIO_VOICE, in vibra_enable()
76 twl_i2c_write_u8(TWL4030_MODULE_AUDIO_VOICE, in vibra_disable()
108 twl_i2c_write_u8(TWL4030_MODULE_AUDIO_VOICE, in vibra_play_work()
112 twl_i2c_write_u8(TWL4030_MODULE_AUDIO_VOICE, in vibra_play_work()
/openbmc/linux/drivers/iio/adc/
H A Dtwl6030-gpadc.c354 return twl_i2c_write_u8(TWL6030_MODULE_GPADC, val, reg); in twl6030_gpadc_write()
935 ret = twl_i2c_write_u8(TWL6030_MODULE_ID1, TWL6030_GPADCS, in twl6030_gpadc_probe()
942 ret = twl_i2c_write_u8(TWL_MODULE_USB, VBUS_MEAS, USB_VBUS_CTRL_SET); in twl6030_gpadc_probe()
948 ret = twl_i2c_write_u8(TWL_MODULE_USB, ID_MEAS, USB_ID_CTRL_SET); in twl6030_gpadc_probe()
954 ret = twl_i2c_write_u8(TWL6030_MODULE_ID0, in twl6030_gpadc_probe()
985 ret = twl_i2c_write_u8(TWL6030_MODULE_ID1, TWL6030_GPADCR, in twl6030_gpadc_suspend()
997 ret = twl_i2c_write_u8(TWL6030_MODULE_ID1, TWL6030_GPADCS, in twl6030_gpadc_resume()
H A Dtwl4030-madc.c454 ret = twl_i2c_write_u8(TWL4030_MODULE_MADC, val, madc->imr); in twl4030_madc_disable_irq()
551 ret = twl_i2c_write_u8(TWL4030_MODULE_MADC, TWL4030_MADC_SW_START, in twl4030_madc_start_conversion()
699 ret = twl_i2c_write_u8(TWL_MODULE_MAIN_CHARGE, in twl4030_madc_set_current_generator()
732 ret = twl_i2c_write_u8(TWL4030_MODULE_MADC, regval, TWL4030_MADC_CTRL1); in twl4030_madc_set_power()
805 ret = twl_i2c_write_u8(TWL_MODULE_MAIN_CHARGE, in twl4030_madc_probe()
825 ret = twl_i2c_write_u8(TWL4030_MODULE_INTBR, regval, in twl4030_madc_probe()
857 ret = twl_i2c_write_u8(TWL_MODULE_USB, regval, in twl4030_madc_probe()
/openbmc/linux/drivers/regulator/
H A Dtwl-regulator.c89 return twl_i2c_write_u8(slave_subgp, in twlreg_write()
166 ret = twl_i2c_write_u8(TWL_MODULE_PM_MASTER, val | PB_I2C_BWEN, in twl4030_send_pb_msg()
175 ret = twl_i2c_write_u8(TWL_MODULE_PM_MASTER, msg >> 8, in twl4030_send_pb_msg()
180 ret = twl_i2c_write_u8(TWL_MODULE_PM_MASTER, msg & 0xff, in twl4030_send_pb_msg()
190 return twl_i2c_write_u8(TWL_MODULE_PM_MASTER, val, in twl4030_send_pb_msg()
H A Dtwl6030-regulator.c101 return twl_i2c_write_u8(slave_subgp, in twlreg_write()
/openbmc/linux/drivers/gpio/
H A Dgpio-twl4030.c73 return twl_i2c_write_u8(TWL4030_MODULE_GPIO, data, address); in gpio_twl4030_write()
135 WARN_ON_ONCE(twl_i2c_write_u8(TWL4030_MODULE_LED, cached_leden, in twl4030_led_set_value()
228 status = twl_i2c_write_u8(TWL4030_MODULE_LED, 0x7f, reg + 1); in twl_request()
233 status = twl_i2c_write_u8(TWL4030_MODULE_LED, 0x7f, reg); in twl_request()
243 status = twl_i2c_write_u8(TWL4030_MODULE_LED, cached_leden, in twl_request()
/openbmc/linux/drivers/watchdog/
H A Dtwl4030_wdt.c26 return twl_i2c_write_u8(TWL_MODULE_PM_RECEIVER, val, in twl4030_wdt_write()
/openbmc/linux/sound/soc/codecs/
H A Dtwl4030.c168 return twl_i2c_write_u8(TWL4030_MODULE_AUDIO_VOICE, value, reg); in twl4030_write()
278 twl_i2c_write_u8(TWL4030_MODULE_INTBR, pin_mux, in twl4030_init_chip()
572 twl_i2c_write_u8(TWL4030_MODULE_AUDIO_VOICE, 0, reg); \
730 twl_i2c_write_u8(TWL4030_MODULE_AUDIO_VOICE, hs_gain, in headset_ramp()
744 twl_i2c_write_u8(TWL4030_MODULE_AUDIO_VOICE, hs_gain & (~0x0f), in headset_ramp()
/openbmc/linux/drivers/input/keyboard/
H A Dtwl4030_keypad.c140 int ret = twl_i2c_write_u8(TWL4030_MODULE_KEYPAD, data, reg); in twl4030_kpwrite_u8()
/openbmc/linux/include/linux/mfd/
H A Dtwl.h177 static inline int twl_i2c_write_u8(u8 mod_no, u8 val, u8 reg) { in twl_i2c_write_u8() function
/openbmc/linux/drivers/usb/phy/
H A Dphy-twl6030-usb.c109 ret = twl_i2c_write_u8(module, data, address); in twl6030_writeb()
/openbmc/linux/drivers/rtc/
H A Drtc-twl.c175 ret = twl_i2c_write_u8(TWL_MODULE_RTC, data, (twl_rtc->reg_map[reg])); in twl_rtc_write_u8()