]> git.dujemihanovic.xyz Git - u-boot.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)
commit51c54080ff8fd93d22331a3ef5abe0cee77ce285
tree069ba406eea7160c7849de3854a53cf8974fe17c
parentafb4f55565551133e3dc74ddffeb5486d79fab45
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