Skip to contentSkip to conversation

clk: ux500: Fix up the SGA clock for some variants

PATCH Applied Linus Walleij 4 participants 4 messages Dec 17, 2019 – Jan 5, 2020

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

PATCH 1/1 clk: ux500: Fix up the SGA clock for some variants

Some of the special PRCMU firmware variants were not properly detected in the Ux500 clock driver, resulting in the wrong clock for the SGA.

Cc Ulf Hansson <[email protected]>
Cc Stephan Gerhold <[email protected]>
---
 drivers/clk/ux500/u8500_of_clk.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/clk/ux500/u8500_of_clk.c +2 -0
index 72ed97c6662a..0aedd42fad52 100644
@@ -99,8 +99,10 @@ static void u8500_clk_init(struct device_node *np)
 	if (fw_version != NULL) {
 		switch (fw_version->project) {
 		case PRCMU_FW_PROJECT_U8500_C2:
+		case PRCMU_FW_PROJECT_U8500_MBL:
 		case PRCMU_FW_PROJECT_U8520:
 		case PRCMU_FW_PROJECT_U8420:
+		case PRCMU_FW_PROJECT_U8420_SYSCLK:
 			sgaclk_parent = "soc0_pll";
 			break;
 		default:
Signature · 1 line
2.21.0
Acked-by on v1 1/1
#1 lore raw
Quoted 8 lines · Linus Walleij

Some of the special PRCMU firmware variants were not properly detected in the Ux500 clock driver, resulting in the wrong clock for the SGA.

Cc Ulf Hansson <[email protected]>
Cc Stephan Gerhold <[email protected]>

Kind regards
Uffe

Quoted 22 lines
---
 drivers/clk/ux500/u8500_of_clk.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/clk/ux500/u8500_of_clk.c +2 -1
index 72ed97c6662a..0aedd42fad52 100644
@@ -99,8 +99,10 @@ static void u8500_clk_init(struct device_node *np)
        if (fw_version != NULL) {
                switch (fw_version->project) {
                case PRCMU_FW_PROJECT_U8500_C2:
+               case PRCMU_FW_PROJECT_U8500_MBL:
                case PRCMU_FW_PROJECT_U8520:
                case PRCMU_FW_PROJECT_U8420:
+               case PRCMU_FW_PROJECT_U8420_SYSCLK:
                        sgaclk_parent = "soc0_pll";
                        break;
                default:
--

2.21.0

Reviewed-by on v1 1/1
#2 lore raw
In reply to Linus Walleij
Quoted 7 lines · Linus Walleij

Some of the special PRCMU firmware variants were not properly detected in the Ux500 clock driver, resulting in the wrong clock for the SGA.

Cc Ulf Hansson <[email protected]>
Cc Stephan Gerhold <[email protected]>
Quoted 22 lines
---
 drivers/clk/ux500/u8500_of_clk.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/clk/ux500/u8500_of_clk.c +2 -0
index 72ed97c6662a..0aedd42fad52 100644
@@ -99,8 +99,10 @@ static void u8500_clk_init(struct device_node *np)
 	if (fw_version != NULL) {
 		switch (fw_version->project) {
 		case PRCMU_FW_PROJECT_U8500_C2:
+		case PRCMU_FW_PROJECT_U8500_MBL:
 		case PRCMU_FW_PROJECT_U8520:
 		case PRCMU_FW_PROJECT_U8420:
+		case PRCMU_FW_PROJECT_U8420_SYSCLK:
 			sgaclk_parent = "soc0_pll";
 			break;
 		default:
Signature · 1 line
2.21.0