Exemplo n.º 1
0
void tegra_start_host(struct tegra_otg_data *tegra)
{
	struct tegra_otg_platform_data *pdata = tegra->otg.dev->platform_data;
	if (!tegra->pdev) {
		tegra->pdev = tegra_usb_otg_host_register(pdata->ehci_device,
							  pdata->ehci_pdata);
	}
}
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
}
Exemplo n.º 3
0
void tegra_start_host(struct tegra_otg_data *tegra)
{
	struct tegra_otg_platform_data *pdata = tegra->otg.dev->platform_data;
	dev_info(tegra->otg.dev, "tegra_start_host+\n");
#ifdef CONFIG_MACH_SAMSUNG_VARIATION_TEGRA
	wake_lock(&tegra->wake_lock);
#endif
	if (!tegra->pdev) {
		tegra->pdev = tegra_usb_otg_host_register(pdata->ehci_device,
							  pdata->ehci_pdata);
	}
	dev_info(tegra->otg.dev, "tegra_start_host-\n");
}
Exemplo n.º 4
0
void tegra_start_host(struct tegra_otg_data *tegra)
{
	struct tegra_otg_platform_data *pdata = tegra->otg.dev->platform_data;
	if (!tegra->pdev) {
		tegra->pdev = tegra_usb_otg_host_register(pdata->ehci_device,
							  pdata->ehci_pdata);

#if defined(CONFIG_CABLE_DETECT_ACCESSORY)
		if (board_mfg_mode() == 2 /* recovery mode */) {
			cable_detection_queue_recovery_host_work(HZ);
		}
#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

}