예제 #1
0
static void dalmore_xusb_init(void)
{
	int usb_port_owner_info = tegra_get_usb_port_owner_info();

	if (usb_port_owner_info & UTMI2_PORT_OWNER_XUSB) {
		tegra_xusb_init(&xusb_bdata);
		tegra_xusb_register();
	}
}
예제 #2
0
static void pluto_usb_init(void)
{
	int usb_port_owner_info = tegra_get_usb_port_owner_info();
	struct tegra_xusb_platform_data *xusb_pdata;

	if ((usb_port_owner_info & UTMI1_PORT_OWNER_XUSB)) {
		xusb_pdata = tegra_xusb_init(&xusb_bdata);
		tegra_otg_pdata.is_xhci = true;
		tegra_otg_pdata.xhci_device = &tegra_xhci_device;
		tegra_otg_pdata.xhci_pdata = xusb_pdata;
	} else {
		tegra_otg_pdata.is_xhci = false;
	}
	tegra_otg_device.dev.platform_data = &tegra_otg_pdata;
	platform_device_register(&tegra_otg_device);

	/* Setup the udc platform data */
	tegra_udc_device.dev.platform_data = &tegra_udc_pdata;
}