u-boot/arch/arm/mach-omap2
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
..
am33xx am33xx: board: Refactor USB initialization into separate function 2017-07-11 22:49:39 -04:00
omap3 arm: omap: Unify get_device_type() function 2017-06-09 20:34:53 -04:00
omap4 omap4: Migrate to using imply 2017-03-09 19:52:16 -05:00
omap5 Convert CONFIG_SCSI to Kconfig 2017-07-11 10:08:19 -06:00
abb.c arm: Introduce arch/arm/mach-omap2 for OMAP2 derivative platforms 2016-11-21 14:07:29 -05:00
boot-common.c arm: omap: Detect boot mode very early 2017-07-10 14:26:04 -04:00
clocks-common.c ti: clocks: Fix do_enable_clocks() to accept NULL pointers as input parameters 2017-04-08 21:32:49 -04:00
config.mk mach-omap2: Cleanup secure boot media generation 2017-01-24 10:35:56 -05:00
config_secure.mk arm: mach-omap2: Generate MLO file from SD boot capable targets 2017-06-16 10:11:42 -04:00
emif-common.c arm: omap-common: Fix typo in CONFIG_OMAP54XX guard 2017-03-11 22:30:29 -05:00
hwinit-common.c arm: omap4+: Enable spl_early_init() 2017-07-10 14:26:04 -04:00
Kconfig am33xx: Finish migration of CONFIG_AM33XX/AM43XX 2017-06-09 20:34:09 -04:00
lowlevel_init.S arm: Introduce arch/arm/mach-omap2 for OMAP2 derivative platforms 2016-11-21 14:07:29 -05:00
Makefile arm: omap: Unify get_device_type() function 2017-06-09 20:34:53 -04:00
mem-common.c arm: Introduce arch/arm/mach-omap2 for OMAP2 derivative platforms 2016-11-21 14:07:29 -05:00
omap-cache.c arm: Introduce arch/arm/mach-omap2 for OMAP2 derivative platforms 2016-11-21 14:07:29 -05:00
pipe3-phy.c arm: Introduce arch/arm/mach-omap2 for OMAP2 derivative platforms 2016-11-21 14:07:29 -05:00
pipe3-phy.h arm: Introduce arch/arm/mach-omap2 for OMAP2 derivative platforms 2016-11-21 14:07:29 -05:00
reset.c arm: Introduce arch/arm/mach-omap2 for OMAP2 derivative platforms 2016-11-21 14:07:29 -05:00
sata.c dm: scsi: Add a device pointer to scan_exec(), scsi_bus_reset() 2017-07-11 10:08:19 -06:00
sec-common.c arm: omap-common: add missing va_end() 2017-04-18 10:29:20 -04:00
sysinfo-common.c arm: omap: Unify get_device_type() function 2017-06-09 20:34:53 -04:00
timer.c arm: Introduce arch/arm/mach-omap2 for OMAP2 derivative platforms 2016-11-21 14:07:29 -05:00
u-boot-spl.lds ARM: OMAP2+: define _image_binary_end to fix SPL_OF_CONTROL 2017-03-21 07:15:21 -04:00
utils.c omap: Add routine for setting fastboot variables 2017-06-12 08:36:21 -04:00
vc.c omap: Drop CONFIG_OMAP_VC_I2C_HS_MCODE 2017-05-15 10:40:03 -04:00