diff options
author | Alexandru Gagniuc <alex.g@adaptrum.com> | 2017-02-07 03:17:33 (GMT) |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2017-07-12 02:49:39 (GMT) |
commit | 409a81ddd46f444c2262bb10c921efc6967feff2 (patch) | |
tree | e20a1f6c0ae210505560179d12567ba6b6f593ab /board/warp7 | |
parent | 17a21e206a29d714d6da7b8583be6f041ba35d7e (diff) | |
download | u-boot-fsl-qoriq-409a81ddd46f444c2262bb10c921efc6967feff2.tar.xz |
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>
Diffstat (limited to 'board/warp7')
0 files changed, 0 insertions, 0 deletions