]> git.baikalelectronics.ru Git - uboot.git/commit
rockchip: handle peripheral as well as otg dr_mode
authorJohn Keeping <john@metanate.com>
Wed, 12 Apr 2023 11:52:53 +0000 (12:52 +0100)
committerKever Yang <kever.yang@rock-chips.com>
Tue, 9 May 2023 14:50:01 +0000 (22:50 +0800)
commitfa31713d433246a916acf02af0a9cc11084b6f18
tree164f9ee42f1c5a412ba80881c524e73cee091404
parentb5407b3ff94928900587ab15fddb0e289fea5036
rockchip: handle peripheral as well as otg dr_mode

The OTG port is identified by inspecting the "dr_mode" property which is
expected to be "otg" for this port.  But it will work just as well as a
device controller when dr_mode is set to "peripheral", which may be
required if the mode detection pin is not set up correctly and the
device controller needs to be programmed to override this.

Signed-off-by: John Keeping <john@metanate.com>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
arch/arm/mach-rockchip/board.c