]> git.dujemihanovic.xyz Git - u-boot.git/commit
arm: am33xx: Register USB controllers if DM_USB is used but not OF_CONTROL
authorJean-Jacques Hiblot <jjhiblot@ti.com>
Tue, 4 Dec 2018 10:30:58 +0000 (11:30 +0100)
committerMarek Vasut <marex@denx.de>
Fri, 14 Dec 2018 16:59:10 +0000 (17:59 +0100)
commit7a43dd7aa6a9f8650de240c1796ca2caa8eb8737
tree9195d842b1d6e5217881a609720272008ba094cc
parent7d98dbcc3dc8f1b93676d0953f3bee0db3796eb0
arm: am33xx: Register USB controllers if DM_USB is used but not OF_CONTROL

When DM_USB is used, either the USB controllers are bound when the DTB
is parsed (when OF_CONTROL is enabled) or they are bound using the
U_BOOT_DEVICES() macro.
In the later case, the platform data is passed in a struct ti_musb_platdata
because it cannot be read from the DTB.

Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
arch/arm/mach-omap2/am33xx/board.c