Пример #1
0
static void insmod_device_driver(struct usb_msg_center_info *center_info)
{
	DMSG_INFO("\n\ninsmod_device_driver\n\n");

	set_usb_role(center_info, USB_ROLE_DEVICE);

	sunxi_usb_device_enable();

	return;
}
Пример #2
0
static void insmod_device_driver(struct usb_msg_center_info *center_info)
{
	DMSG_INFO("\n\ninsmod_device_driver\n\n");

#ifndef CONFIG_USB_SUNXI_USB0_HOST_ONLY
	set_usb_role(center_info, USB_ROLE_DEVICE);
	sunxi_usb_device_enable();
#else
	set_usb_role(center_info, USB_ROLE_NULL);
#endif
	return;
}