static void tegra_set_gadget_mode(void)
{
#ifdef CONFIG_USB_TEGRA_OTG
	tegra_otg_set_host_mode(false);
#else
	if (usb_host_pdev) {
		tegra_usb_otg_host_unregister(usb_host_pdev);
		usb_host_pdev = NULL;
	}
#endif
}
static void tegra_set_host_mode(void)
{
#ifdef CONFIG_USB_TEGRA_OTG
	tegra_otg_set_host_mode(true);
	
#else
	if (!usb_host_pdev) {
		usb_host_pdev = tegra_usb_otg_host_register();
	}
#endif
}
static void tegra_set_gadget_mode(void)
{
	/* Place interfase in gadget mode */

#ifdef CONFIG_USB_TEGRA_OTG

	/* Switch to peripheral mode */
	tegra_otg_set_host_mode(false);

#else
	if (usb_host_pdev) {
		tegra_usb_otg_host_unregister(usb_host_pdev);
		usb_host_pdev = NULL;
	}
#endif
}
static void tegra_set_host_mode(void)
{
	/* Place interface in host mode	*/
#ifdef CONFIG_USB_TEGRA_OTG

	/* Switch to host mode */
	tegra_otg_set_host_mode(true);
	
#else

	if (!usb_host_pdev) {
		usb_host_pdev = tegra_usb_otg_host_register();
	}
#endif

}