u-boot/arch/arm
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
..
cpu armv8: fsl-layerscape: use get_nand_dev_by_index() 2017-07-11 22:41:53 -04:00
dts Merge git://git.denx.de/u-boot-dm 2017-07-11 20:28:46 -04:00
imx-common Kconfig: Add CONFIG_SATA to enable SATA 2017-07-11 10:08:19 -06:00
include Merge git://git.denx.de/u-boot-dm 2017-07-11 20:28:46 -04:00
lib Revert "armv7m: Disable D-cache when booting nommu(ARMv7M) Linux kernel" 2017-06-29 21:18:48 -04:00
mach-aspeed aspeed: Refactor SCU to use consistent mask & shift 2017-05-08 11:57:35 -04:00
mach-at91 ARM: atmel: Rename MA5D4EVK 2017-06-29 13:30:27 -04:00
mach-bcm283x bcm2835_wdt: support for the BCM2835/2836 watchdog 2017-05-09 20:30:08 -04:00
mach-davinci common: arm: davinci: Move header file out of common 2017-06-05 12:31:23 -04:00
mach-exynos Kconfig: Finish migration of hashing commands 2017-05-31 19:38:14 -04:00
mach-highbank
mach-integrator
mach-keystone arm: mach-keystone: Modify secure image size before copy 2017-07-10 14:26:05 -04:00
mach-kirkwood Kconfig: Add a CONFIG_IDE option 2017-05-22 12:45:27 -04:00
mach-meson board_f: Drop setup_dram_config() wrapper 2017-04-05 16:36:51 -04:00
mach-mvebu Convert CONFIG_CMD_SATA to Kconfig 2017-07-11 10:08:19 -06:00
mach-omap2 am33xx: board: Refactor USB initialization into separate function 2017-07-11 22:49:39 -04:00
mach-orion5x board_f: Drop setup_dram_config() wrapper 2017-04-05 16:36:51 -04:00
mach-rmobile mmc: sh_sdhi: Add MMC version 5.0 support 2017-06-09 20:25:16 +09:00
mach-rockchip rockchip: Add basic support for phyCORE-RK3288 SoM based carrier board 2017-07-11 15:23:38 +02:00
mach-s5pc1xx
mach-snapdragon dm: Rename dev_addr..() functions 2017-06-01 07:03:01 -06:00
mach-socfpga Convert CONFIG_SPL_BOARD_INIT to Kconfig 2017-05-22 07:29:48 -04:00
mach-sti board: Add STMicroelectronics STiH410-B2260 support 2017-03-14 20:40:21 -04:00
mach-stm32 stm32: Correct positioning of declaration 2017-07-06 16:17:17 -04:00
mach-sunxi sunxi: add LPDDR3 timing from stock boot0 2017-06-08 22:37:55 +05:30
mach-tegra tegra: Show a debug message if the LCD PMIC fails to start 2017-07-11 10:08:20 -06:00
mach-uniphier ARM: uniphier: fix various sparse warnings 2017-06-25 06:06:09 +09:00
mach-versatile
mach-zynq arm: zynq: Add Kconfig option for any DDR specific initialization 2017-06-20 16:41:44 +02:00
thumb1/include/asm/proc-armv
config.mk arm: Always keep the dtb section on objcopy 2017-06-05 14:13:11 -04:00
Kconfig Convert CONFIG_SCSI to Kconfig 2017-07-11 10:08:19 -06:00
Kconfig.debug
Makefile ARM: omap2+: rename config to ARCH_OMAP2PLUS and consolidate Kconfig 2017-04-27 16:49:08 -04:00