Skip to contentSkip to conversation

rockchip: clk: add clocks to px30_clk_enable

PATCH In review Chris Morgan 2 participants 2 messages Mar 25, 2022 – Mar 28, 2022

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 rockchip: clk: add clocks to px30_clk_enable

From: Chris Morgan <[email protected]>

Add the HCLK_OTG, HCLK_SFC, and SCLK_SFC clocks to px30_clk_enable. Without this change U-Boot reports an error of "Enable clock-controller@ff2b0000 failed" on boot when using the SFC or USB in U-Boot.

---
 drivers/clk/rockchip/clk_px30.c | 3 +++
 1 file changed, 3 insertions(+)
drivers/clk/rockchip/clk_px30.c +3 -0
index ea874e3f4b..5d467447a1 100644
@@ -1403,10 +1403,13 @@ static int px30_clk_enable(struct clk *clk)
 {
 	switch (clk->id) {
 	case HCLK_HOST:
+	case HCLK_OTG:
+	case HCLK_SFC:
 	case SCLK_GMAC:
 	case SCLK_GMAC_RX_TX:
 	case SCLK_MAC_REF:
 	case SCLK_MAC_REFOUT:
+	case SCLK_SFC:
 	case ACLK_GMAC:
 	case PCLK_GMAC:
 	case SCLK_GMAC_RMII:
Signature · 1 line
2.25.1
Reviewed-by on v1 1/1
#1 lore raw

Hi Chris,

    Thanks for your patch.

Quoted 8 lines · Chris Morgan

From: Chris Morgan <[email protected]>

Add the HCLK_OTG, HCLK_SFC, and SCLK_SFC clocks to px30_clk_enable. Without this change U-Boot reports an error of "Enable clock-controller@ff2b0000 failed" on boot when using the SFC or USB in U-Boot.

Thanks,
- Kever

Quoted 22 lines
---
  drivers/clk/rockchip/clk_px30.c | 3 +++
  1 file changed, 3 insertions(+)
drivers/clk/rockchip/clk_px30.c +3 -0
index ea874e3f4b..5d467447a1 100644
@@ -1403,10 +1403,13 @@ static int px30_clk_enable(struct clk *clk)
  {
  	switch (clk->id) {
  	case HCLK_HOST:
+	case HCLK_OTG:
+	case HCLK_SFC:
  	case SCLK_GMAC:
  	case SCLK_GMAC_RX_TX:
  	case SCLK_MAC_REF:
  	case SCLK_MAC_REFOUT:
+	case SCLK_SFC:
  	case ACLK_GMAC:
  	case PCLK_GMAC:
  	case SCLK_GMAC_RMII: