提交 f4db3b68 编写于 作者: A Adam Ford 提交者: Tom Rini

ARM: omap3logic: Encapsulate the MUSB functions in check for DM

With the DM_USB working for USB host features, encapsulate the
USB gadget initialization in a precomiler check.  If DM is enabled,
we don't need to manually initialize the MUSB driver.
Signed-off-by: NAdam Ford <aford173@gmail.com>
上级 169eb191
......@@ -148,6 +148,7 @@ void spl_board_prepare_for_linux(void)
}
#endif
#if !CONFIG_IS_ENABLED(DM_USB)
#ifdef CONFIG_USB_MUSB_OMAP2PLUS
static struct musb_hdrc_config musb_config = {
.multipoint = 1,
......@@ -201,7 +202,7 @@ int ehci_hcd_stop(int index)
}
#endif /* CONFIG_USB_EHCI_HCD */
#endif /* !DM_USB*/
/*
* Routine: misc_init_r
* Description: Configure board specific parts
......@@ -211,10 +212,11 @@ int misc_init_r(void)
twl4030_power_init();
omap_die_id_display();
#if !CONFIG_IS_ENABLED(DM_USB)
#ifdef CONFIG_USB_MUSB_OMAP2PLUS
musb_register(&musb_plat, &musb_board_data, (void *)MUSB_BASE);
#endif
#endif
return 0;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册