mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-08-12 21:23:57 +09:00
409a81ddd4
The declaration of otg*_plat and otg*_board_data is guarded by CONFIG_USB_MUSB_*, but their use in arch_misc_init is not. The ifdef flow goes something like: if (CONFIG_USB_MUSB_* && other_conditions) declare usb_data if (other_conditions) use usb_data Thus when CONFIG_USB_MUSB_* is not declared, we try to use the data structures, but these structures aren't defined. To fix this, move the USB initialization code into the same #ifdef which guards the declaration of the data structures. Since the DM_USB vs legacy cases are completely different, use two versions of arch_misc_init(), for readability. Signed-off-by: Alexandru Gagniuc <alex.g@adaptrum.com> Reviewed-by: Tom Rini <trini@konsulko.com> |
||
---|---|---|
.. | ||
am33xx | ||
omap3 | ||
omap4 | ||
omap5 | ||
abb.c | ||
boot-common.c | ||
clocks-common.c | ||
config_secure.mk | ||
config.mk | ||
emif-common.c | ||
hwinit-common.c | ||
Kconfig | ||
lowlevel_init.S | ||
Makefile | ||
mem-common.c | ||
omap-cache.c | ||
pipe3-phy.c | ||
pipe3-phy.h | ||
reset.c | ||
sata.c | ||
sec-common.c | ||
sysinfo-common.c | ||
timer.c | ||
u-boot-spl.lds | ||
utils.c | ||
vc.c |