]> git.baikalelectronics.ru Git - uboot.git/commit
arm: mach-k3: am642_init: Do USB fixups to facilitate host and device boot modes
authorAswath Govindraju <a-govindraju@ti.com>
Fri, 4 Jun 2021 16:30:33 +0000 (22:00 +0530)
committerLokesh Vutla <lokeshvutla@ti.com>
Wed, 9 Jun 2021 16:53:44 +0000 (22:23 +0530)
commit6e3735def8eb3ffca2fa5ad8ae420f1f525d1aba
tree81a334aadddc56809663ef5a9bbbc17b6636173c
parent752093a927663e041db6dc4de947a8db97da3d01
arm: mach-k3: am642_init: Do USB fixups to facilitate host and device boot modes

U-Boot either supports USB host or device mode for a node at a time in the
device tree nodes. To support both host and dfu bootmodes, dr_mode is set
to "peripheral" by default and then fixed based on the mode selected by
the boot mode config dip switches on the board.

This needs to happen before the cdns3 generic layer binds the usb device
to a host or a device driver. Therefore, use fdtdec_setup_board()
implementation to fixup the device tree property.

Signed-off-by: Aswath Govindraju <a-govindraju@ti.com>
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
Link: https://lore.kernel.org/r/20210604163043.12811-4-a-govindraju@ti.com
arch/arm/mach-k3/am642_init.c