]> git.baikalelectronics.ru Git - uboot.git/commit
rockchip: use standard dr_mode parsing function
authorJohn Keeping <john@metanate.com>
Wed, 12 Apr 2023 11:52:52 +0000 (12:52 +0100)
committerKever Yang <kever.yang@rock-chips.com>
Tue, 9 May 2023 14:50:01 +0000 (22:50 +0800)
commitb5407b3ff94928900587ab15fddb0e289fea5036
tree069ba406eea7160c7849de3854a53cf8974fe17c
parent67bec3f69309b2d642f8103f168ae90230a02e4d
rockchip: use standard dr_mode parsing function

Instead of duplicating the string values here, use usb_get_dr_mode() to
handle the property lookup and converting the values to an enum.

This is implemented with a switch in preparation for the next patch
which adds extra handling for peripheral mode.

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