]> git.dujemihanovic.xyz Git - u-boot.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)
commit669a03e0ff8bc4c69c848769806125c7ebb5782e
tree81a334aadddc56809663ef5a9bbbc17b6636173c
parent3ae127c4e20649da19fbe7653b0f8fd726ccfcda
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