36 lines
1.1 KiB
C
36 lines
1.1 KiB
C
#ifndef __RM_OTGCONTROL_H_
|
|
#define __RM_OTGCONTROL_H_
|
|
|
|
#include <linux/kobject.h>
|
|
#include <linux/pinctrl/pinctrl.h>
|
|
|
|
struct rm_otgcontrol_platform_data {
|
|
struct power_supply *vbus_supply;
|
|
};
|
|
|
|
struct rm_otgcontrol_data {
|
|
struct device *dev;
|
|
struct rm_otgcontrol_platform_data *pdata;
|
|
|
|
int otg_controlstate;
|
|
|
|
int one_wire_state;
|
|
struct pinctrl* one_wire_pinctrl;
|
|
struct pinctrl_state* one_wire_pinctrl_states[3];
|
|
|
|
struct kobject* kobject;
|
|
struct kobj_attribute otg1_device_connected_attribute;
|
|
bool otg1_device_connected;
|
|
|
|
struct kobj_attribute otg1_dr_mode_attribute;
|
|
int otg1_dr_mode;
|
|
|
|
struct kobj_attribute otg1_chargermode_attribute;
|
|
int otg1_chargermode;
|
|
|
|
struct kobj_attribute otg1_controllermode_attribute;
|
|
int otg1_controllermode;
|
|
};
|
|
|
|
#endif /* __RM_OTGCONTROL_H */
|