Searched refs:type_c (Results 1 – 1 of 1) sorted by relevance
/linux/drivers/extcon/ |
H A D | extcon-rtk-type-c.c | 240 static int rtd129x_switch_type_c_plug_config(struct type_c_data *type_c, in rtd129x_switch_type_c_plug_config() argument 243 void __iomem *reg = type_c->reg_base + USB_TYPEC_CTRL_CC1_0; in rtd129x_switch_type_c_plug_config() 263 dev_err(type_c->dev, "%s: Error cc setting cc=0x%x\n", __func__, cc); in rtd129x_switch_type_c_plug_config() 271 dev_dbg(type_c->dev, "%s: cc=0x%x val_cc=0x%x usb_typec_ctrl_cc1_0=0x%x\n", in rtd129x_switch_type_c_plug_config() 277 static inline void switch_type_c_plug_config(struct type_c_data *type_c, in switch_type_c_plug_config() argument 283 ret = rtd129x_switch_type_c_plug_config(type_c, dr_mode, cc); in switch_type_c_plug_config() 286 dev_err(type_c->dev, "%s: Error set type c plug config\n", in switch_type_c_plug_config() 290 static void switch_type_c_dr_mode(struct type_c_data *type_c, int dr_mode, int cc) in switch_type_c_dr_mode() argument 298 switch_type_c_plug_config(type_c, dr_mode, cc); in switch_type_c_dr_mode() 311 dev_dbg(type_c->dev, "%s dr_mode=%d ==> no host or device\n", in switch_type_c_dr_mode() [all …]
|