コード例 #1
0
static void insmod_device_driver(struct usb_msg_center_info *center_info)
{
	DMSG_INFO("\n\ninsmod_device_driver\n\n");

    axp_usbvol();
    axp_usbcur();

	set_usb_role(center_info, USB_ROLE_DEVICE);
	sw_usb_device_enable();

	return;
}
コード例 #2
0
static void rmmod_device_driver(struct usb_msg_center_info *center_info)
{
	DMSG_INFO("\n\nrmmod_device_driver\n\n");

	set_usb_role(center_info, USB_ROLE_NULL);

	sunxi_usb_device_disable();

#if defined(CONFIG_AW_AXP)
	axp_usbcur(CHARGE_AC);
	axp_usbvol(CHARGE_AC);
#endif
	return;
}
コード例 #3
0
ファイル: usb_msg_center.c プロジェクト: lucatib/a33_linux
static void insmod_host_driver(struct usb_msg_center_info *center_info)
{
	DMSG_INFO("\n\ninsmod_host_driver\n\n");

	set_usb_role(center_info, USB_ROLE_HOST);

	sunxi_usb_host0_enable();

#if 1
	DMSG_INFO("FORCED USB Charge\n\n");
	axp_usbcur(CHARGE_USB_30);
	axp_usbvol(CHARGE_USB_30);
#endif

	return;
}
コード例 #4
0
ファイル: usb_msg_center.c プロジェクト: lucatib/a33_linux
static void rmmod_device_driver(struct usb_msg_center_info *center_info)
{
	DMSG_INFO("\n\nrmmod_device_driver\n\n");

	set_usb_role(center_info, USB_ROLE_NULL);
#ifndef CONFIG_USB_SUNXI_USB0_HOST_ONLY
	sunxi_usb_device_disable();
#endif

#if defined(CONFIG_AW_AXP)

#if 0	//No ac is available in tablet Majestic.....
	axp_usbcur(CHARGE_AC);
	axp_usbvol(CHARGE_AC);
#endif

#endif
	return;
}