FROMLIST: clk: rockchip: add new clock-type for the ddrclk
[firefly-linux-kernel-4.4.55.git] / drivers / clk / rockchip / clk.c
index 8e1f270ad81eafbe6a126b4108f4790b6a063e6f..efd4688caf6161fec7dbfefc271e7af3f68a90e8 100644 (file)
@@ -487,6 +487,15 @@ void __init rockchip_clk_register_branches(
                                list->gate_offset, list->gate_shift,
                                list->gate_flags, flags, &ctx->lock);
                        break;
+               case branch_ddrc:
+                       clk = rockchip_clk_register_ddrclk(
+                               list->name, list->flags,
+                               list->parent_names, list->num_parents,
+                               list->muxdiv_offset, list->mux_shift,
+                               list->mux_width, list->div_shift,
+                               list->div_width, list->div_flags,
+                               ctx->reg_base, &ctx->lock);
+                       break;
                }
 
                /* none of the cases above matched */