soc: rockchip: set dwc3 clock for rk3566
authorPeter Geis <pgwipeout@gmail.com>
Fri, 8 Apr 2022 15:12:34 +0000 (11:12 -0400)
committerHeiko Stuebner <heiko@sntech.de>
Sun, 10 Apr 2022 16:39:05 +0000 (18:39 +0200)
commit5c0bb71138770d85ea840acd379edc6471b867ee
tree42f0c41aef738d59f34ec7a6a78bbfca3c1a3439
parent2a872dd86eeb349f169df0a204668afa578a94b2
soc: rockchip: set dwc3 clock for rk3566

The rk3566 dwc3 otg port clock is unavailable at boot, as it defaults to
the combophy as the clock source. As combophy0 doesn't exist on rk3566,
we need to set the clock source to the usb2 phy instead.

Add handling to the grf driver to handle this on boot.

Signed-off-by: Peter Geis <pgwipeout@gmail.com>
Link: https://lore.kernel.org/r/20220408151237.3165046-3-pgwipeout@gmail.com
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
drivers/soc/rockchip/grf.c