mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2025-08-18 13:16:59 +02:00
clk: rockchip: rk3328: Add SCLK_USB3OTG_REF support
The SCLK_USB3OTG_REF clocks is used as reference clock for USB3 block. Add simple support to get rate of SCLK_USB3OTG_REF clocks to fix reference clock period configuration. Signed-off-by: Jonas Karlman <jonas@kwiboo.se> Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
This commit is contained in:
parent
7c35f6d481
commit
94e2844c8c
@ -706,6 +706,9 @@ static ulong rk3328_clk_get_rate(struct clk *clk)
|
||||
case PCLK_HDMIPHY:
|
||||
rate = rk3328_hdmiphy_get_clk(priv->cru);
|
||||
break;
|
||||
case SCLK_USB3OTG_REF:
|
||||
rate = OSC_HZ;
|
||||
break;
|
||||
default:
|
||||
return -ENOENT;
|
||||
}
|
||||
@ -780,6 +783,7 @@ static ulong rk3328_clk_set_rate(struct clk *clk, ulong rate)
|
||||
case PCLK_DDR:
|
||||
case ACLK_GMAC:
|
||||
case PCLK_GMAC:
|
||||
case SCLK_USB3OTG_REF:
|
||||
case SCLK_USB3OTG_SUSPEND:
|
||||
case USB480M:
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user