u-boot/arch/arm/mach-omap2/am33xx
Alexandru Gagniuc 409a81ddd4 am33xx: board: Refactor USB initialization into separate function
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>
2017-07-11 22:49:39 -04:00
..
board.c am33xx: board: Refactor USB initialization into separate function 2017-07-11 22:49:39 -04:00
chilisom.c ARM: am335x: Add support for chiliSOM 2017-01-28 14:04:36 -05:00
clk_synthesizer.c arm: Introduce arch/arm/mach-omap2 for OMAP2 derivative platforms 2016-11-21 14:07:29 -05:00
clock.c arm: Introduce arch/arm/mach-omap2 for OMAP2 derivative platforms 2016-11-21 14:07:29 -05:00
clock_am33xx.c arm: am33xx: Add support for mulitiple PLL input frequencies 2017-05-12 08:37:14 -04:00
clock_am43xx.c arm: Introduce arch/arm/mach-omap2 for OMAP2 derivative platforms 2016-11-21 14:07:29 -05:00
clock_ti814x.c arm: Introduce arch/arm/mach-omap2 for OMAP2 derivative platforms 2016-11-21 14:07:29 -05:00
clock_ti816x.c ARM: ti816x: Fix enabling GPIO0, enable GPIO1 as well 2017-07-11 22:41:56 -04:00
ddr.c ti816x: Rework DDR initialization sequence 2017-06-05 11:02:23 -04:00
emif4.c ti816x: Rework DDR initialization sequence 2017-06-05 11:02:23 -04:00
hw_data.c arm: omap: Unify get_device_type() function 2017-06-09 20:34:53 -04:00
Kconfig am33xx: Finish migration of CONFIG_AM33XX/AM43XX 2017-06-09 20:34:09 -04:00
Makefile arm: omap: Unify get_device_type() function 2017-06-09 20:34:53 -04:00
mux.c arm: Introduce arch/arm/mach-omap2 for OMAP2 derivative platforms 2016-11-21 14:07:29 -05:00
prcm-regs.c arm: omap: Unify get_device_type() function 2017-06-09 20:34:53 -04:00
sys_info.c arm: omap: Unify get_device_type() function 2017-06-09 20:34:53 -04:00
ti816x_emif4.c ti816x: Rework DDR initialization sequence 2017-06-05 11:02:23 -04:00