Quellcodebibliothek Statistik Leitseite products/sources/formale Sprachen/C/Linux/drivers/clk/qcom/   (Open Source Betriebssystem Version 6.17.9©)  Datei vom 24.10.2025 mit Größe 89 kB image not shown  

Quelle  mmcc-msm8996.c   Sprache: C

 
// SPDX-License-Identifier: GPL-2.0-only
/*x
 * Copyright (c) 2015, The Linux Foundation. All rights reserved.
 */


#include <linux/kernel.h>
#include <linux/bitops.h>
#include <linux/err.h>
#include <linux/platform_device.h>
#include <linux/mod_devicetable.h>
#include <linux/module.h>
#include <linux/clk-provider.h>
#include <linux/regmap.h>

#include <dt-bindings/clock/qcom,mmcc-msm8996.h>

#include "common.h"
#include "clk-regmap.h"
#include "clk-regmap-divider.h"
#include "clk-alpha-pll.h"
#include "clk-rcg.h"
#include "clk-branch.h"
#include "reset.h"
#include "gdsc.h"

enum {
 P_XO,
 P_MMPLL0,
 P_GPLL0,
 P_GPLL0_DIV,
 P_MMPLL1,
 P_MMPLL9,
 P_MMPLL2,
 P_MMPLL8,
 P_MMPLL3,
 P_DSI0PLL,
 P_DSI1PLL,
 P_MMPLL5,
 P_HDMIPLL,
 P_DSI0PLL_BYTE,
 P_DSI1PLL_BYTE,
 P_MMPLL4,
};

static struct clk_fixed_factor gpll0_div = {
 .mult = 1,
 .div = 2,
 .hw.init = &(struct clk_init_data){
  .name = "gpll0_div",
  .parent_data = (const struct clk_parent_data[]){
   { .fw_name = "gpll0", .name = "gpll0" },
  },
  .num_parents = 1,
  .ops = &clk_fixed_factor_ops,
 },
};

static const struct pll_vco mmpll_p_vco[] = {
 { 250000000, 500000000, 3 },
 { 500000000, 1000000000, 2 },
 { 1000000000, 1500000000, 1 },
 { 1500000000, 2000000000, 0 },
};

static const struct pll_vco mmpll_gfx_vco[] = {
 { 400000000, 1000000000, 2 },
 { 1000000000, 1500000000, 1 },
 { 1500000000, 2000000000, 0 },
};

static const struct pll_vco mmpll_t_vco[] = {
 { 500000000, 1500000000, 0 },
};

static struct clk_alpha_pll mmpll0_early = {
 .offset = 0x0,
 .regs = clk_alpha_pll_regs[CLK_ALPHA_PLL_TYPE_DEFAULT],
 .vco_table = mmpll_p_vco,
 .num_vco = ARRAY_SIZE(mmpll_p_vco),
 .clkr = {
  .enable_reg = 0x100,
  .enable_mask = BIT(0),
  .hw.init = &(struct clk_init_data){
   .name = "mmpll0_early",
   .parent_data = (const struct clk_parent_data[]){
    { .fw_name = "xo", .name = "xo_board" },
   },
   .num_parents = 1,
   .ops = &clk_alpha_pll_ops,
  },
 },
};

static struct clk_alpha_pll_postdiv mmpll0 = {
 .offset = 0x0,
 .regs = clk_alpha_pll_regs[CLK_ALPHA_PLL_TYPE_DEFAULT],
 .width = 4,
 .clkr.hw.init = &(struct clk_init_data){
  .name = "mmpll0",
  .parent_hws = (const struct clk_hw*[]){
   &mmpll0_early.clkr.hw
  },
  .num_parents = 1,
  .ops = &clk_alpha_pll_postdiv_ops,
  .flags = CLK_SET_RATE_PARENT,
 },
};

static struct clk_alpha_pll mmpll1_early = {
 .offset = 0x30,
 .regs = clk_alpha_pll_regs[CLK_ALPHA_PLL_TYPE_DEFAULT],
 .vco_table = mmpll_p_vco,
 .num_vco = ARRAY_SIZE(mmpll_p_vco),
 .clkr = {
  .enable_reg = 0x100,
  .enable_mask = BIT(1),
  .hw.init = &(struct clk_init_data){
   .name = "mmpll1_early",
   .parent_data = (const struct clk_parent_data[]){
    { .fw_name = "xo", .name = "xo_board" },
   },
   .num_parents = 1,
   .ops = &clk_alpha_pll_ops,
  }
 },
};

static struct clk_alpha_pll_postdiv mmpll1 = {
 .offset = 0x30,
 .regs = clk_alpha_pll_regs[CLK_ALPHA_PLL_TYPE_DEFAULT],
 .width = 4,
 .clkr.hw.init = &(struct clk_init_data){
  .name = "mmpll1",
  .parent_hws = (const struct clk_hw*[]){
   &mmpll1_early.clkr.hw
  },
  .num_parents = 1,
  .ops = &clk_alpha_pll_postdiv_ops,
  .flags = CLK_SET_RATE_PARENT,
 },
};

static struct clk_alpha_pll mmpll2_early = {
 .offset = 0x4100,
 .regs = clk_alpha_pll_regs[CLK_ALPHA_PLL_TYPE_DEFAULT],
 .vco_table = mmpll_gfx_vco,
 .num_vco = ARRAY_SIZE(mmpll_gfx_vco),
 .clkr.hw.init = &(struct clk_init_data){
  .name = "mmpll2_early",
  .parent_data = (const struct clk_parent_data[]){
   { .fw_name = "xo", .name = "xo_board" },
  },
  .num_parents = 1,
  .ops = &clk_alpha_pll_ops,
 },
};

static struct clk_alpha_pll_postdiv mmpll2 = {
 .offset = 0x4100,
 .regs = clk_alpha_pll_regs[CLK_ALPHA_PLL_TYPE_DEFAULT],
 .width = 4,
 .clkr.hw.init = &(struct clk_init_data){
  .name = "mmpll2",
  .parent_hws = (const struct clk_hw*[]){
   &mmpll2_early.clkr.hw
  },
  .num_parents = 1,
  .ops = &clk_alpha_pll_postdiv_ops,
  .flags = CLK_SET_RATE_PARENT,
 },
};

static struct clk_alpha_pll mmpll3_early = {
 .offset = 0x60,
 .regs = clk_alpha_pll_regs[CLK_ALPHA_PLL_TYPE_DEFAULT],
 .vco_table = mmpll_p_vco,
 .num_vco = ARRAY_SIZE(mmpll_p_vco),
 .clkr.hw.init = &(struct clk_init_data){
  .name = "mmpll3_early",
  .parent_data = (const struct clk_parent_data[]){
   { .fw_name = "xo", .name = "xo_board" },
  },
  .num_parents = 1,
  .ops = &clk_alpha_pll_ops,
 },
};

static struct clk_alpha_pll_postdiv mmpll3 = {
 .offset = 0x60,
 .regs = clk_alpha_pll_regs[CLK_ALPHA_PLL_TYPE_DEFAULT],
 .width = 4,
 .clkr.hw.init = &(struct clk_init_data){
  .name = "mmpll3",
  .parent_hws = (const struct clk_hw*[]){
   &mmpll3_early.clkr.hw
  },
  .num_parents = 1,
  .ops = &clk_alpha_pll_postdiv_ops,
  .flags = CLK_SET_RATE_PARENT,
 },
};

static struct clk_alpha_pll mmpll4_early = {
 .offset = 0x90,
 .regs = clk_alpha_pll_regs[CLK_ALPHA_PLL_TYPE_DEFAULT],
 .vco_table = mmpll_t_vco,
 .num_vco = ARRAY_SIZE(mmpll_t_vco),
 .clkr.hw.init = &(struct clk_init_data){
  .name = "mmpll4_early",
  .parent_data = (const struct clk_parent_data[]){
   { .fw_name = "xo", .name = "xo_board" },
  },
  .num_parents = 1,
  .ops = &clk_alpha_pll_ops,
 },
};

static struct clk_alpha_pll_postdiv mmpll4 = {
 .offset = 0x90,
 .regs = clk_alpha_pll_regs[CLK_ALPHA_PLL_TYPE_DEFAULT],
 .width = 2,
 .clkr.hw.init = &(struct clk_init_data){
  .name = "mmpll4",
  .parent_hws = (const struct clk_hw*[]){
   &mmpll4_early.clkr.hw
  },
  .num_parents = 1,
  .ops = &clk_alpha_pll_postdiv_ops,
  .flags = CLK_SET_RATE_PARENT,
 },
};

static struct clk_alpha_pll mmpll5_early = {
 .offset = 0xc0,
 .regs = clk_alpha_pll_regs[CLK_ALPHA_PLL_TYPE_DEFAULT],
 .vco_table = mmpll_p_vco,
 .num_vco = ARRAY_SIZE(mmpll_p_vco),
 .clkr.hw.init = &(struct clk_init_data){
  .name = "mmpll5_early",
  .parent_data = (const struct clk_parent_data[]){
   { .fw_name = "xo", .name = "xo_board" },
  },
  .num_parents = 1,
  .ops = &clk_alpha_pll_ops,
 },
};

static struct clk_alpha_pll_postdiv mmpll5 = {
 .offset = 0xc0,
 .regs = clk_alpha_pll_regs[CLK_ALPHA_PLL_TYPE_DEFAULT],
 .width = 4,
 .clkr.hw.init = &(struct clk_init_data){
  .name = "mmpll5",
  .parent_hws = (const struct clk_hw*[]){
   &mmpll5_early.clkr.hw
  },
  .num_parents = 1,
  .ops = &clk_alpha_pll_postdiv_ops,
  .flags = CLK_SET_RATE_PARENT,
 },
};

static struct clk_alpha_pll mmpll8_early = {
 .offset = 0x4130,
 .regs = clk_alpha_pll_regs[CLK_ALPHA_PLL_TYPE_DEFAULT],
 .vco_table = mmpll_gfx_vco,
 .num_vco = ARRAY_SIZE(mmpll_gfx_vco),
 .clkr.hw.init = &(struct clk_init_data){
  .name = "mmpll8_early",
  .parent_data = (const struct clk_parent_data[]){
   { .fw_name = "xo", .name = "xo_board" },
  },
  .num_parents = 1,
  .ops = &clk_alpha_pll_ops,
 },
};

static struct clk_alpha_pll_postdiv mmpll8 = {
 .offset = 0x4130,
 .regs = clk_alpha_pll_regs[CLK_ALPHA_PLL_TYPE_DEFAULT],
 .width = 4,
 .clkr.hw.init = &(struct clk_init_data){
  .name = "mmpll8",
  .parent_hws = (const struct clk_hw*[]){
   &mmpll8_early.clkr.hw
  },
  .num_parents = 1,
  .ops = &clk_alpha_pll_postdiv_ops,
  .flags = CLK_SET_RATE_PARENT,
 },
};

static struct clk_alpha_pll mmpll9_early = {
 .offset = 0x4200,
 .regs = clk_alpha_pll_regs[CLK_ALPHA_PLL_TYPE_DEFAULT],
 .vco_table = mmpll_t_vco,
 .num_vco = ARRAY_SIZE(mmpll_t_vco),
 .clkr.hw.init = &(struct clk_init_data){
  .name = "mmpll9_early",
  .parent_data = (const struct clk_parent_data[]){
   { .fw_name = "xo", .name = "xo_board" },
  },
  .num_parents = 1,
  .ops = &clk_alpha_pll_ops,
 },
};

static struct clk_alpha_pll_postdiv mmpll9 = {
 .offset = 0x4200,
 .regs = clk_alpha_pll_regs[CLK_ALPHA_PLL_TYPE_DEFAULT],
 .width = 2,
 .clkr.hw.init = &(struct clk_init_data){
  .name = "mmpll9",
  .parent_hws = (const struct clk_hw*[]){
   &mmpll9_early.clkr.hw
  },
  .num_parents = 1,
  .ops = &clk_alpha_pll_postdiv_ops,
  .flags = CLK_SET_RATE_PARENT,
 },
};

static const struct parent_map mmss_xo_hdmi_map[] = {
 { P_XO, 0 },
 { P_HDMIPLL, 1 }
};

static const struct clk_parent_data mmss_xo_hdmi[] = {
 { .fw_name = "xo", .name = "xo_board" },
 { .fw_name = "hdmipll", .name = "hdmipll" }
};

static const struct parent_map mmss_xo_dsi0pll_dsi1pll_map[] = {
 { P_XO, 0 },
 { P_DSI0PLL, 1 },
 { P_DSI1PLL, 2 }
};

static const struct clk_parent_data mmss_xo_dsi0pll_dsi1pll[] = {
 { .fw_name = "xo", .name = "xo_board" },
 { .fw_name = "dsi0pll", .name = "dsi0pll" },
 { .fw_name = "dsi1pll", .name = "dsi1pll" }
};

static const struct parent_map mmss_xo_gpll0_gpll0_div_map[] = {
 { P_XO, 0 },
 { P_GPLL0, 5 },
 { P_GPLL0_DIV, 6 }
};

static const struct clk_parent_data mmss_xo_gpll0_gpll0_div[] = {
 { .fw_name = "xo", .name = "xo_board" },
 { .fw_name = "gpll0", .name = "gpll0" },
 { .hw = &gpll0_div.hw }
};

static const struct parent_map mmss_xo_dsibyte_map[] = {
 { P_XO, 0 },
 { P_DSI0PLL_BYTE, 1 },
 { P_DSI1PLL_BYTE, 2 }
};

static const struct clk_parent_data mmss_xo_dsibyte[] = {
 { .fw_name = "xo", .name = "xo_board" },
 { .fw_name = "dsi0pllbyte", .name = "dsi0pllbyte" },
 { .fw_name = "dsi1pllbyte", .name = "dsi1pllbyte" }
};

static const struct parent_map mmss_xo_mmpll0_gpll0_gpll0_div_map[] = {
 { P_XO, 0 },
 { P_MMPLL0, 1 },
 { P_GPLL0, 5 },
 { P_GPLL0_DIV, 6 }
};

static const struct clk_parent_data mmss_xo_mmpll0_gpll0_gpll0_div[] = {
 { .fw_name = "xo", .name = "xo_board" },
 { .hw = &mmpll0.clkr.hw },
 { .fw_name = "gpll0", .name = "gpll0" },
 { .hw = &gpll0_div.hw }
};

static const struct parent_map mmss_xo_mmpll0_mmpll1_gpll0_gpll0_div_map[] = {
 { P_XO, 0 },
 { P_MMPLL0, 1 },
 { P_MMPLL1, 2 },
 { P_GPLL0, 5 },
 { P_GPLL0_DIV, 6 }
};

static const struct clk_parent_data mmss_xo_mmpll0_mmpll1_gpll0_gpll0_div[] = {
 { .fw_name = "xo", .name = "xo_board" },
 { .hw = &mmpll0.clkr.hw },
 { .hw = &mmpll1.clkr.hw },
 { .fw_name = "gpll0", .name = "gpll0" },
 { .hw = &gpll0_div.hw }
};

static const struct parent_map mmss_xo_mmpll0_mmpll3_gpll0_gpll0_div_map[] = {
 { P_XO, 0 },
 { P_MMPLL0, 1 },
 { P_MMPLL3, 3 },
 { P_GPLL0, 5 },
 { P_GPLL0_DIV, 6 }
};

static const struct clk_parent_data mmss_xo_mmpll0_mmpll3_gpll0_gpll0_div[] = {
 { .fw_name = "xo", .name = "xo_board" },
 { .hw = &mmpll0.clkr.hw },
 { .hw = &mmpll3.clkr.hw },
 { .fw_name = "gpll0", .name = "gpll0" },
 { .hw = &gpll0_div.hw }
};

static const struct parent_map mmss_xo_mmpll0_mmpll5_gpll0_gpll0_div_map[] = {
 { P_XO, 0 },
 { P_MMPLL0, 1 },
 { P_MMPLL5, 2 },
 { P_GPLL0, 5 },
 { P_GPLL0_DIV, 6 }
};

static const struct clk_parent_data mmss_xo_mmpll0_mmpll5_gpll0_gpll0_div[] = {
 { .fw_name = "xo", .name = "xo_board" },
 { .hw = &mmpll0.clkr.hw },
 { .hw = &mmpll5.clkr.hw },
 { .fw_name = "gpll0", .name = "gpll0" },
 { .hw = &gpll0_div.hw }
};

static const struct parent_map mmss_xo_mmpll0_mmpll4_gpll0_gpll0_div_map[] = {
 { P_XO, 0 },
 { P_MMPLL0, 1 },
 { P_MMPLL4, 3 },
 { P_GPLL0, 5 },
 { P_GPLL0_DIV, 6 }
};

static const struct clk_parent_data mmss_xo_mmpll0_mmpll4_gpll0_gpll0_div[] = {
 { .fw_name = "xo", .name = "xo_board" },
 { .hw = &mmpll0.clkr.hw },
 { .hw = &mmpll4.clkr.hw },
 { .fw_name = "gpll0", .name = "gpll0" },
 { .hw = &gpll0_div.hw }
};

static const struct parent_map mmss_xo_mmpll0_mmpll9_mmpll2_mmpll8_gpll0_map[] = {
 { P_XO, 0 },
 { P_MMPLL0, 1 },
 { P_MMPLL9, 2 },
 { P_MMPLL2, 3 },
 { P_MMPLL8, 4 },
 { P_GPLL0, 5 }
};

static const struct clk_parent_data mmss_xo_mmpll0_mmpll9_mmpll2_mmpll8_gpll0[] = {
 { .fw_name = "xo", .name = "xo_board" },
 { .hw = &mmpll0.clkr.hw },
 { .hw = &mmpll9.clkr.hw },
 { .hw = &mmpll2.clkr.hw },
 { .hw = &mmpll8.clkr.hw },
 { .fw_name = "gpll0", .name = "gpll0" },
};

static const struct parent_map mmss_xo_mmpll0_mmpll9_mmpll2_mmpll8_gpll0_gpll0_div_map[] = {
 { P_XO, 0 },
 { P_MMPLL0, 1 },
 { P_MMPLL9, 2 },
 { P_MMPLL2, 3 },
 { P_MMPLL8, 4 },
 { P_GPLL0, 5 },
 { P_GPLL0_DIV, 6 }
};

static const struct clk_parent_data mmss_xo_mmpll0_mmpll9_mmpll2_mmpll8_gpll0_gpll0_div[] = {
 { .fw_name = "xo", .name = "xo_board" },
 { .hw = &mmpll0.clkr.hw },
 { .hw = &mmpll9.clkr.hw },
 { .hw = &mmpll2.clkr.hw },
 { .hw = &mmpll8.clkr.hw },
 { .fw_name = "gpll0", .name = "gpll0" },
 { .hw = &gpll0_div.hw }
};

static const struct parent_map mmss_xo_mmpll0_mmpll1_mmpll4_mmpll3_gpll0_gpll0_div_map[] = {
 { P_XO, 0 },
 { P_MMPLL0, 1 },
 { P_MMPLL1, 2 },
 { P_MMPLL4, 3 },
 { P_MMPLL3, 4 },
 { P_GPLL0, 5 },
 { P_GPLL0_DIV, 6 }
};

static const struct clk_parent_data mmss_xo_mmpll0_mmpll1_mmpll4_mmpll3_gpll0_gpll0_div[] = {
 { .fw_name = "xo", .name = "xo_board" },
 { .hw = &mmpll0.clkr.hw },
 { .hw = &mmpll1.clkr.hw },
 { .hw = &mmpll4.clkr.hw },
 { .hw = &mmpll3.clkr.hw },
 { .fw_name = "gpll0", .name = "gpll0" },
 { .hw = &gpll0_div.hw }
};

static const struct freq_tbl ftbl_ahb_clk_src[] = {
 F(19200000, P_XO, 1, 0, 0),
 F(40000000, P_GPLL0_DIV, 7.5, 0, 0),
 F(80000000, P_MMPLL0, 10, 0, 0),
 { }
};

static struct clk_rcg2 ahb_clk_src = {
 .cmd_rcgr = 0x5000,
 .hid_width = 5,
 .parent_map = mmss_xo_mmpll0_gpll0_gpll0_div_map,
 .freq_tbl = ftbl_ahb_clk_src,
 .clkr.hw.init = &(struct clk_init_data){
  .name = "ahb_clk_src",
  .parent_data = mmss_xo_mmpll0_gpll0_gpll0_div,
  .num_parents = ARRAY_SIZE(mmss_xo_mmpll0_gpll0_gpll0_div),
  .ops = &clk_rcg2_ops,
 },
};

static const struct freq_tbl ftbl_axi_clk_src[] = {
 F(19200000, P_XO, 1, 0, 0),
 F(75000000, P_GPLL0_DIV, 4, 0, 0),
 F(100000000, P_GPLL0, 6, 0, 0),
 F(171430000, P_GPLL0, 3.5, 0, 0),
 F(200000000, P_GPLL0, 3, 0, 0),
 F(320000000, P_MMPLL0, 2.5, 0, 0),
 F(400000000, P_MMPLL0, 2, 0, 0),
 { }
};

static struct clk_rcg2 axi_clk_src = {
 .cmd_rcgr = 0x5040,
 .hid_width = 5,
 .parent_map = mmss_xo_mmpll0_mmpll1_gpll0_gpll0_div_map,
 .freq_tbl = ftbl_axi_clk_src,
 .clkr.hw.init = &(struct clk_init_data){
  .name = "axi_clk_src",
  .parent_data = mmss_xo_mmpll0_mmpll1_gpll0_gpll0_div,
  .num_parents = ARRAY_SIZE(mmss_xo_mmpll0_mmpll1_gpll0_gpll0_div),
  .ops = &clk_rcg2_ops,
 },
};

static struct clk_rcg2 maxi_clk_src = {
 .cmd_rcgr = 0x5090,
 .hid_width = 5,
 .parent_map = mmss_xo_mmpll0_mmpll1_gpll0_gpll0_div_map,
 .freq_tbl = ftbl_axi_clk_src,
 .clkr.hw.init = &(struct clk_init_data){
  .name = "maxi_clk_src",
  .parent_data = mmss_xo_mmpll0_mmpll1_gpll0_gpll0_div,
  .num_parents = ARRAY_SIZE(mmss_xo_mmpll0_mmpll1_gpll0_gpll0_div),
  .ops = &clk_rcg2_ops,
 },
};

static struct clk_rcg2_gfx3d gfx3d_clk_src = {
 .rcg = {
  .cmd_rcgr = 0x4000,
  .hid_width = 5,
  .parent_map = mmss_xo_mmpll0_mmpll9_mmpll2_mmpll8_gpll0_map,
  .clkr.hw.init = &(struct clk_init_data){
   .name = "gfx3d_clk_src",
   .parent_data = mmss_xo_mmpll0_mmpll9_mmpll2_mmpll8_gpll0,
   .num_parents = ARRAY_SIZE(mmss_xo_mmpll0_mmpll9_mmpll2_mmpll8_gpll0),
   .ops = &clk_gfx3d_ops,
   .flags = CLK_SET_RATE_PARENT,
  },
 },
 .hws = (struct clk_hw*[]) {
  &mmpll9.clkr.hw,
  &mmpll2.clkr.hw,
  &mmpll8.clkr.hw
 },
};

static const struct freq_tbl ftbl_rbbmtimer_clk_src[] = {
 F(19200000, P_XO, 1, 0, 0),
 { }
};

static struct clk_rcg2 rbbmtimer_clk_src = {
 .cmd_rcgr = 0x4090,
 .hid_width = 5,
 .parent_map = mmss_xo_mmpll0_gpll0_gpll0_div_map,
 .freq_tbl = ftbl_rbbmtimer_clk_src,
 .clkr.hw.init = &(struct clk_init_data){
  .name = "rbbmtimer_clk_src",
  .parent_data = mmss_xo_mmpll0_gpll0_gpll0_div,
  .num_parents = ARRAY_SIZE(mmss_xo_mmpll0_gpll0_gpll0_div),
  .ops = &clk_rcg2_ops,
 },
};

static struct clk_rcg2 isense_clk_src = {
 .cmd_rcgr = 0x4010,
 .hid_width = 5,
 .parent_map = mmss_xo_mmpll0_mmpll9_mmpll2_mmpll8_gpll0_gpll0_div_map,
 .clkr.hw.init = &(struct clk_init_data){
  .name = "isense_clk_src",
  .parent_data = mmss_xo_mmpll0_mmpll9_mmpll2_mmpll8_gpll0_gpll0_div,
  .num_parents = ARRAY_SIZE(mmss_xo_mmpll0_mmpll9_mmpll2_mmpll8_gpll0_gpll0_div),
  .ops = &clk_rcg2_ops,
 },
};

static const struct freq_tbl ftbl_rbcpr_clk_src[] = {
 F(19200000, P_XO, 1, 0, 0),
 F(50000000, P_GPLL0, 12, 0, 0),
 { }
};

static struct clk_rcg2 rbcpr_clk_src = {
 .cmd_rcgr = 0x4060,
 .hid_width = 5,
 .parent_map = mmss_xo_mmpll0_gpll0_gpll0_div_map,
 .freq_tbl = ftbl_rbcpr_clk_src,
 .clkr.hw.init = &(struct clk_init_data){
  .name = "rbcpr_clk_src",
  .parent_data = mmss_xo_mmpll0_gpll0_gpll0_div,
  .num_parents = ARRAY_SIZE(mmss_xo_mmpll0_gpll0_gpll0_div),
  .ops = &clk_rcg2_ops,
 },
};

static const struct freq_tbl ftbl_video_core_clk_src[] = {
 F(75000000, P_GPLL0_DIV, 4, 0, 0),
 F(150000000, P_GPLL0, 4, 0, 0),
 F(346666667, P_MMPLL3, 3, 0, 0),
 F(520000000, P_MMPLL3, 2, 0, 0),
 { }
};

static struct clk_rcg2 video_core_clk_src = {
 .cmd_rcgr = 0x1000,
 .mnd_width = 8,
 .hid_width = 5,
 .parent_map = mmss_xo_mmpll0_mmpll3_gpll0_gpll0_div_map,
 .freq_tbl = ftbl_video_core_clk_src,
 .clkr.hw.init = &(struct clk_init_data){
  .name = "video_core_clk_src",
  .parent_data = mmss_xo_mmpll0_mmpll3_gpll0_gpll0_div,
  .num_parents = ARRAY_SIZE(mmss_xo_mmpll0_mmpll3_gpll0_gpll0_div),
  .ops = &clk_rcg2_ops,
 },
};

static struct clk_rcg2 video_subcore0_clk_src = {
 .cmd_rcgr = 0x1060,
 .mnd_width = 8,
 .hid_width = 5,
 .parent_map = mmss_xo_mmpll0_mmpll3_gpll0_gpll0_div_map,
 .freq_tbl = ftbl_video_core_clk_src,
 .clkr.hw.init = &(struct clk_init_data){
  .name = "video_subcore0_clk_src",
  .parent_data = mmss_xo_mmpll0_mmpll3_gpll0_gpll0_div,
  .num_parents = ARRAY_SIZE(mmss_xo_mmpll0_mmpll3_gpll0_gpll0_div),
  .ops = &clk_rcg2_ops,
 },
};

static struct clk_rcg2 video_subcore1_clk_src = {
 .cmd_rcgr = 0x1080,
 .mnd_width = 8,
 .hid_width = 5,
 .parent_map = mmss_xo_mmpll0_mmpll3_gpll0_gpll0_div_map,
 .freq_tbl = ftbl_video_core_clk_src,
 .clkr.hw.init = &(struct clk_init_data){
  .name = "video_subcore1_clk_src",
  .parent_data = mmss_xo_mmpll0_mmpll3_gpll0_gpll0_div,
  .num_parents = ARRAY_SIZE(mmss_xo_mmpll0_mmpll3_gpll0_gpll0_div),
  .ops = &clk_rcg2_ops,
 },
};

static struct clk_rcg2 pclk0_clk_src = {
 .cmd_rcgr = 0x2000,
 .mnd_width = 8,
 .hid_width = 5,
 .parent_map = mmss_xo_dsi0pll_dsi1pll_map,
 .clkr.hw.init = &(struct clk_init_data){
  .name = "pclk0_clk_src",
  .parent_data = mmss_xo_dsi0pll_dsi1pll,
  .num_parents = ARRAY_SIZE(mmss_xo_dsi0pll_dsi1pll),
  .ops = &clk_pixel_ops,
  .flags = CLK_SET_RATE_PARENT,
 },
};

static struct clk_rcg2 pclk1_clk_src = {
 .cmd_rcgr = 0x2020,
 .mnd_width = 8,
 .hid_width = 5,
 .parent_map = mmss_xo_dsi0pll_dsi1pll_map,
 .clkr.hw.init = &(struct clk_init_data){
  .name = "pclk1_clk_src",
  .parent_data = mmss_xo_dsi0pll_dsi1pll,
  .num_parents = ARRAY_SIZE(mmss_xo_dsi0pll_dsi1pll),
  .ops = &clk_pixel_ops,
  .flags = CLK_SET_RATE_PARENT,
 },
};

static const struct freq_tbl ftbl_mdp_clk_src[] = {
 F(85714286, P_GPLL0, 7, 0, 0),
 F(100000000, P_GPLL0, 6, 0, 0),
 F(150000000, P_GPLL0, 4, 0, 0),
 F(171428571, P_GPLL0, 3.5, 0, 0),
 F(200000000, P_GPLL0, 3, 0, 0),
 F(275000000, P_MMPLL5, 3, 0, 0),
 F(300000000, P_GPLL0, 2, 0, 0),
 F(330000000, P_MMPLL5, 2.5, 0, 0),
 F(412500000, P_MMPLL5, 2, 0, 0),
 { }
};

static struct clk_rcg2 mdp_clk_src = {
 .cmd_rcgr = 0x2040,
 .hid_width = 5,
 .parent_map = mmss_xo_mmpll0_mmpll5_gpll0_gpll0_div_map,
 .freq_tbl = ftbl_mdp_clk_src,
 .clkr.hw.init = &(struct clk_init_data){
  .name = "mdp_clk_src",
  .parent_data = mmss_xo_mmpll0_mmpll5_gpll0_gpll0_div,
  .num_parents = ARRAY_SIZE(mmss_xo_mmpll0_mmpll5_gpll0_gpll0_div),
  .ops = &clk_rcg2_ops,
 },
};

static const struct freq_tbl extpclk_freq_tbl[] = {
 { .src = P_HDMIPLL },
 { }
};

static struct clk_rcg2 extpclk_clk_src = {
 .cmd_rcgr = 0x2060,
 .hid_width = 5,
 .parent_map = mmss_xo_hdmi_map,
 .freq_tbl = extpclk_freq_tbl,
 .clkr.hw.init = &(struct clk_init_data){
  .name = "extpclk_clk_src",
  .parent_data = mmss_xo_hdmi,
  .num_parents = ARRAY_SIZE(mmss_xo_hdmi),
  .ops = &clk_byte_ops,
  .flags = CLK_SET_RATE_PARENT,
 },
};

static const struct freq_tbl ftbl_mdss_vsync_clk[] = {
 F(19200000, P_XO, 1, 0, 0),
 { }
};

static struct clk_rcg2 vsync_clk_src = {
 .cmd_rcgr = 0x2080,
 .hid_width = 5,
 .parent_map = mmss_xo_gpll0_gpll0_div_map,
 .freq_tbl = ftbl_mdss_vsync_clk,
 .clkr.hw.init = &(struct clk_init_data){
  .name = "vsync_clk_src",
  .parent_data = mmss_xo_gpll0_gpll0_div,
  .num_parents = ARRAY_SIZE(mmss_xo_gpll0_gpll0_div),
  .ops = &clk_rcg2_ops,
 },
};

static const struct freq_tbl ftbl_mdss_hdmi_clk[] = {
 F(19200000, P_XO, 1, 0, 0),
 { }
};

static struct clk_rcg2 hdmi_clk_src = {
 .cmd_rcgr = 0x2100,
 .hid_width = 5,
 .parent_map = mmss_xo_gpll0_gpll0_div_map,
 .freq_tbl = ftbl_mdss_hdmi_clk,
 .clkr.hw.init = &(struct clk_init_data){
  .name = "hdmi_clk_src",
  .parent_data = mmss_xo_gpll0_gpll0_div,
  .num_parents = ARRAY_SIZE(mmss_xo_gpll0_gpll0_div),
  .ops = &clk_rcg2_ops,
 },
};

static struct clk_rcg2 byte0_clk_src = {
 .cmd_rcgr = 0x2120,
 .hid_width = 5,
 .parent_map = mmss_xo_dsibyte_map,
 .clkr.hw.init = &(struct clk_init_data){
  .name = "byte0_clk_src",
  .parent_data = mmss_xo_dsibyte,
  .num_parents = ARRAY_SIZE(mmss_xo_dsibyte),
  .ops = &clk_byte2_ops,
  .flags = CLK_SET_RATE_PARENT,
 },
};

static struct clk_rcg2 byte1_clk_src = {
 .cmd_rcgr = 0x2140,
 .hid_width = 5,
 .parent_map = mmss_xo_dsibyte_map,
 .clkr.hw.init = &(struct clk_init_data){
  .name = "byte1_clk_src",
  .parent_data = mmss_xo_dsibyte,
  .num_parents = ARRAY_SIZE(mmss_xo_dsibyte),
  .ops = &clk_byte2_ops,
  .flags = CLK_SET_RATE_PARENT,
 },
};

static const struct freq_tbl ftbl_mdss_esc0_1_clk[] = {
 F(19200000, P_XO, 1, 0, 0),
 { }
};

static struct clk_rcg2 esc0_clk_src = {
 .cmd_rcgr = 0x2160,
 .hid_width = 5,
 .parent_map = mmss_xo_dsibyte_map,
 .freq_tbl = ftbl_mdss_esc0_1_clk,
 .clkr.hw.init = &(struct clk_init_data){
  .name = "esc0_clk_src",
  .parent_data = mmss_xo_dsibyte,
  .num_parents = ARRAY_SIZE(mmss_xo_dsibyte),
  .ops = &clk_rcg2_ops,
 },
};

static struct clk_rcg2 esc1_clk_src = {
 .cmd_rcgr = 0x2180,
 .hid_width = 5,
 .parent_map = mmss_xo_dsibyte_map,
 .freq_tbl = ftbl_mdss_esc0_1_clk,
 .clkr.hw.init = &(struct clk_init_data){
  .name = "esc1_clk_src",
  .parent_data = mmss_xo_dsibyte,
  .num_parents = ARRAY_SIZE(mmss_xo_dsibyte),
  .ops = &clk_rcg2_ops,
 },
};

static const struct freq_tbl ftbl_camss_gp0_clk_src[] = {
 F(10000, P_XO, 16, 1, 120),
 F(24000, P_XO, 16, 1, 50),
 F(6000000, P_GPLL0_DIV, 10, 1, 5),
 F(12000000, P_GPLL0_DIV, 1, 1, 25),
 F(13000000, P_GPLL0_DIV, 2, 13, 150),
 F(24000000, P_GPLL0_DIV, 1, 2, 25),
 { }
};

static struct clk_rcg2 camss_gp0_clk_src = {
 .cmd_rcgr = 0x3420,
 .mnd_width = 8,
 .hid_width = 5,
 .parent_map = mmss_xo_mmpll0_mmpll4_gpll0_gpll0_div_map,
 .freq_tbl = ftbl_camss_gp0_clk_src,
 .clkr.hw.init = &(struct clk_init_data){
  .name = "camss_gp0_clk_src",
  .parent_data = mmss_xo_mmpll0_mmpll4_gpll0_gpll0_div,
  .num_parents = ARRAY_SIZE(mmss_xo_mmpll0_mmpll4_gpll0_gpll0_div),
  .ops = &clk_rcg2_ops,
 },
};

static struct clk_rcg2 camss_gp1_clk_src = {
 .cmd_rcgr = 0x3450,
 .mnd_width = 8,
 .hid_width = 5,
 .parent_map = mmss_xo_mmpll0_mmpll4_gpll0_gpll0_div_map,
 .freq_tbl = ftbl_camss_gp0_clk_src,
 .clkr.hw.init = &(struct clk_init_data){
  .name = "camss_gp1_clk_src",
  .parent_data = mmss_xo_mmpll0_mmpll4_gpll0_gpll0_div,
  .num_parents = ARRAY_SIZE(mmss_xo_mmpll0_mmpll4_gpll0_gpll0_div),
  .ops = &clk_rcg2_ops,
 },
};

static const struct freq_tbl ftbl_mclk0_clk_src[] = {
 F(4800000, P_XO, 4, 0, 0),
 F(6000000, P_GPLL0_DIV, 10, 1, 5),
 F(8000000, P_GPLL0_DIV, 1, 2, 75),
 F(9600000, P_XO, 2, 0, 0),
 F(16666667, P_GPLL0_DIV, 2, 1, 9),
 F(19200000, P_XO, 1, 0, 0),
 F(24000000, P_GPLL0_DIV, 1, 2, 25),
 F(33333333, P_GPLL0_DIV, 1, 1, 9),
 F(48000000, P_GPLL0, 1, 2, 25),
 F(66666667, P_GPLL0, 1, 1, 9),
 { }
};

static struct clk_rcg2 mclk0_clk_src = {
 .cmd_rcgr = 0x3360,
 .mnd_width = 8,
 .hid_width = 5,
 .parent_map = mmss_xo_mmpll0_mmpll4_gpll0_gpll0_div_map,
 .freq_tbl = ftbl_mclk0_clk_src,
 .clkr.hw.init = &(struct clk_init_data){
  .name = "mclk0_clk_src",
  .parent_data = mmss_xo_mmpll0_mmpll4_gpll0_gpll0_div,
  .num_parents = ARRAY_SIZE(mmss_xo_mmpll0_mmpll4_gpll0_gpll0_div),
  .ops = &clk_rcg2_ops,
 },
};

static struct clk_rcg2 mclk1_clk_src = {
 .cmd_rcgr = 0x3390,
 .mnd_width = 8,
 .hid_width = 5,
 .parent_map = mmss_xo_mmpll0_mmpll4_gpll0_gpll0_div_map,
 .freq_tbl = ftbl_mclk0_clk_src,
 .clkr.hw.init = &(struct clk_init_data){
  .name = "mclk1_clk_src",
  .parent_data = mmss_xo_mmpll0_mmpll4_gpll0_gpll0_div,
  .num_parents = ARRAY_SIZE(mmss_xo_mmpll0_mmpll4_gpll0_gpll0_div),
  .ops = &clk_rcg2_ops,
 },
};

static struct clk_rcg2 mclk2_clk_src = {
 .cmd_rcgr = 0x33c0,
 .mnd_width = 8,
 .hid_width = 5,
 .parent_map = mmss_xo_mmpll0_mmpll4_gpll0_gpll0_div_map,
 .freq_tbl = ftbl_mclk0_clk_src,
 .clkr.hw.init = &(struct clk_init_data){
  .name = "mclk2_clk_src",
  .parent_data = mmss_xo_mmpll0_mmpll4_gpll0_gpll0_div,
  .num_parents = ARRAY_SIZE(mmss_xo_mmpll0_mmpll4_gpll0_gpll0_div),
  .ops = &clk_rcg2_ops,
 },
};

static struct clk_rcg2 mclk3_clk_src = {
 .cmd_rcgr = 0x33f0,
 .mnd_width = 8,
 .hid_width = 5,
 .parent_map = mmss_xo_mmpll0_mmpll4_gpll0_gpll0_div_map,
 .freq_tbl = ftbl_mclk0_clk_src,
 .clkr.hw.init = &(struct clk_init_data){
  .name = "mclk3_clk_src",
  .parent_data = mmss_xo_mmpll0_mmpll4_gpll0_gpll0_div,
  .num_parents = ARRAY_SIZE(mmss_xo_mmpll0_mmpll4_gpll0_gpll0_div),
  .ops = &clk_rcg2_ops,
 },
};

static const struct freq_tbl ftbl_cci_clk_src[] = {
 F(19200000, P_XO, 1, 0, 0),
 F(37500000, P_GPLL0, 16, 0, 0),
 F(50000000, P_GPLL0, 12, 0, 0),
 F(100000000, P_GPLL0, 6, 0, 0),
 { }
};

static struct clk_rcg2 cci_clk_src = {
 .cmd_rcgr = 0x3300,
 .mnd_width = 8,
 .hid_width = 5,
 .parent_map = mmss_xo_mmpll0_mmpll4_gpll0_gpll0_div_map,
 .freq_tbl = ftbl_cci_clk_src,
 .clkr.hw.init = &(struct clk_init_data){
  .name = "cci_clk_src",
  .parent_data = mmss_xo_mmpll0_mmpll4_gpll0_gpll0_div,
  .num_parents = ARRAY_SIZE(mmss_xo_mmpll0_mmpll4_gpll0_gpll0_div),
  .ops = &clk_rcg2_ops,
 },
};

static const struct freq_tbl ftbl_csi0phytimer_clk_src[] = {
 F(100000000, P_GPLL0_DIV, 3, 0, 0),
 F(200000000, P_GPLL0, 3, 0, 0),
 F(266666667, P_MMPLL0, 3, 0, 0),
 { }
};

static struct clk_rcg2 csi0phytimer_clk_src = {
 .cmd_rcgr = 0x3000,
 .hid_width = 5,
 .parent_map = mmss_xo_mmpll0_mmpll1_mmpll4_mmpll3_gpll0_gpll0_div_map,
 .freq_tbl = ftbl_csi0phytimer_clk_src,
 .clkr.hw.init = &(struct clk_init_data){
  .name = "csi0phytimer_clk_src",
  .parent_data = mmss_xo_mmpll0_mmpll1_mmpll4_mmpll3_gpll0_gpll0_div,
  .num_parents = ARRAY_SIZE(mmss_xo_mmpll0_mmpll1_mmpll4_mmpll3_gpll0_gpll0_div),
  .ops = &clk_rcg2_ops,
 },
};

static struct clk_rcg2 csi1phytimer_clk_src = {
 .cmd_rcgr = 0x3030,
 .hid_width = 5,
 .parent_map = mmss_xo_mmpll0_mmpll1_mmpll4_mmpll3_gpll0_gpll0_div_map,
 .freq_tbl = ftbl_csi0phytimer_clk_src,
 .clkr.hw.init = &(struct clk_init_data){
  .name = "csi1phytimer_clk_src",
  .parent_data = mmss_xo_mmpll0_mmpll1_mmpll4_mmpll3_gpll0_gpll0_div,
  .num_parents = ARRAY_SIZE(mmss_xo_mmpll0_mmpll1_mmpll4_mmpll3_gpll0_gpll0_div),
  .ops = &clk_rcg2_ops,
 },
};

static struct clk_rcg2 csi2phytimer_clk_src = {
 .cmd_rcgr = 0x3060,
 .hid_width = 5,
 .parent_map = mmss_xo_mmpll0_mmpll1_mmpll4_mmpll3_gpll0_gpll0_div_map,
 .freq_tbl = ftbl_csi0phytimer_clk_src,
 .clkr.hw.init = &(struct clk_init_data){
  .name = "csi2phytimer_clk_src",
  .parent_data = mmss_xo_mmpll0_mmpll1_mmpll4_mmpll3_gpll0_gpll0_div,
  .num_parents = ARRAY_SIZE(mmss_xo_mmpll0_mmpll1_mmpll4_mmpll3_gpll0_gpll0_div),
  .ops = &clk_rcg2_ops,
 },
};

static const struct freq_tbl ftbl_csiphy0_3p_clk_src[] = {
 F(100000000, P_GPLL0_DIV, 3, 0, 0),
 F(200000000, P_GPLL0, 3, 0, 0),
 F(320000000, P_MMPLL4, 3, 0, 0),
 F(384000000, P_MMPLL4, 2.5, 0, 0),
 { }
};

static struct clk_rcg2 csiphy0_3p_clk_src = {
 .cmd_rcgr = 0x3240,
 .hid_width = 5,
 .parent_map = mmss_xo_mmpll0_mmpll1_mmpll4_mmpll3_gpll0_gpll0_div_map,
 .freq_tbl = ftbl_csiphy0_3p_clk_src,
 .clkr.hw.init = &(struct clk_init_data){
  .name = "csiphy0_3p_clk_src",
  .parent_data = mmss_xo_mmpll0_mmpll1_mmpll4_mmpll3_gpll0_gpll0_div,
  .num_parents = ARRAY_SIZE(mmss_xo_mmpll0_mmpll1_mmpll4_mmpll3_gpll0_gpll0_div),
  .ops = &clk_rcg2_ops,
 },
};

static struct clk_rcg2 csiphy1_3p_clk_src = {
 .cmd_rcgr = 0x3260,
 .hid_width = 5,
 .parent_map = mmss_xo_mmpll0_mmpll1_mmpll4_mmpll3_gpll0_gpll0_div_map,
 .freq_tbl = ftbl_csiphy0_3p_clk_src,
 .clkr.hw.init = &(struct clk_init_data){
  .name = "csiphy1_3p_clk_src",
  .parent_data = mmss_xo_mmpll0_mmpll1_mmpll4_mmpll3_gpll0_gpll0_div,
  .num_parents = ARRAY_SIZE(mmss_xo_mmpll0_mmpll1_mmpll4_mmpll3_gpll0_gpll0_div),
  .ops = &clk_rcg2_ops,
 },
};

static struct clk_rcg2 csiphy2_3p_clk_src = {
 .cmd_rcgr = 0x3280,
 .hid_width = 5,
 .parent_map = mmss_xo_mmpll0_mmpll1_mmpll4_mmpll3_gpll0_gpll0_div_map,
 .freq_tbl = ftbl_csiphy0_3p_clk_src,
 .clkr.hw.init = &(struct clk_init_data){
  .name = "csiphy2_3p_clk_src",
  .parent_data = mmss_xo_mmpll0_mmpll1_mmpll4_mmpll3_gpll0_gpll0_div,
  .num_parents = ARRAY_SIZE(mmss_xo_mmpll0_mmpll1_mmpll4_mmpll3_gpll0_gpll0_div),
  .ops = &clk_rcg2_ops,
 },
};

static const struct freq_tbl ftbl_jpeg0_clk_src[] = {
 F(75000000, P_GPLL0_DIV, 4, 0, 0),
 F(150000000, P_GPLL0, 4, 0, 0),
 F(228571429, P_MMPLL0, 3.5, 0, 0),
 F(266666667, P_MMPLL0, 3, 0, 0),
 F(320000000, P_MMPLL0, 2.5, 0, 0),
 F(480000000, P_MMPLL4, 2, 0, 0),
 { }
};

static struct clk_rcg2 jpeg0_clk_src = {
 .cmd_rcgr = 0x3500,
 .hid_width = 5,
 .parent_map = mmss_xo_mmpll0_mmpll1_mmpll4_mmpll3_gpll0_gpll0_div_map,
 .freq_tbl = ftbl_jpeg0_clk_src,
 .clkr.hw.init = &(struct clk_init_data){
  .name = "jpeg0_clk_src",
  .parent_data = mmss_xo_mmpll0_mmpll1_mmpll4_mmpll3_gpll0_gpll0_div,
  .num_parents = ARRAY_SIZE(mmss_xo_mmpll0_mmpll1_mmpll4_mmpll3_gpll0_gpll0_div),
  .ops = &clk_rcg2_ops,
 },
};

static const struct freq_tbl ftbl_jpeg2_clk_src[] = {
 F(75000000, P_GPLL0_DIV, 4, 0, 0),
 F(150000000, P_GPLL0, 4, 0, 0),
 F(228571429, P_MMPLL0, 3.5, 0, 0),
 F(266666667, P_MMPLL0, 3, 0, 0),
 F(320000000, P_MMPLL0, 2.5, 0, 0),
 { }
};

static struct clk_rcg2 jpeg2_clk_src = {
 .cmd_rcgr = 0x3540,
 .hid_width = 5,
 .parent_map = mmss_xo_mmpll0_mmpll1_mmpll4_mmpll3_gpll0_gpll0_div_map,
 .freq_tbl = ftbl_jpeg2_clk_src,
 .clkr.hw.init = &(struct clk_init_data){
  .name = "jpeg2_clk_src",
  .parent_data = mmss_xo_mmpll0_mmpll1_mmpll4_mmpll3_gpll0_gpll0_div,
  .num_parents = ARRAY_SIZE(mmss_xo_mmpll0_mmpll1_mmpll4_mmpll3_gpll0_gpll0_div),
  .ops = &clk_rcg2_ops,
 },
};

static struct clk_rcg2 jpeg_dma_clk_src = {
 .cmd_rcgr = 0x3560,
 .hid_width = 5,
 .parent_map = mmss_xo_mmpll0_mmpll1_mmpll4_mmpll3_gpll0_gpll0_div_map,
 .freq_tbl = ftbl_jpeg0_clk_src,
 .clkr.hw.init = &(struct clk_init_data){
  .name = "jpeg_dma_clk_src",
  .parent_data = mmss_xo_mmpll0_mmpll1_mmpll4_mmpll3_gpll0_gpll0_div,
  .num_parents = ARRAY_SIZE(mmss_xo_mmpll0_mmpll1_mmpll4_mmpll3_gpll0_gpll0_div),
  .ops = &clk_rcg2_ops,
 },
};

static const struct freq_tbl ftbl_vfe0_clk_src[] = {
 F(75000000, P_GPLL0_DIV, 4, 0, 0),
 F(100000000, P_GPLL0_DIV, 3, 0, 0),
 F(300000000, P_GPLL0, 2, 0, 0),
 F(320000000, P_MMPLL0, 2.5, 0, 0),
 F(480000000, P_MMPLL4, 2, 0, 0),
 F(600000000, P_GPLL0, 1, 0, 0),
 { }
};

static struct clk_rcg2 vfe0_clk_src = {
 .cmd_rcgr = 0x3600,
 .hid_width = 5,
 .parent_map = mmss_xo_mmpll0_mmpll1_mmpll4_mmpll3_gpll0_gpll0_div_map,
 .freq_tbl = ftbl_vfe0_clk_src,
 .clkr.hw.init = &(struct clk_init_data){
  .name = "vfe0_clk_src",
  .parent_data = mmss_xo_mmpll0_mmpll1_mmpll4_mmpll3_gpll0_gpll0_div,
  .num_parents = ARRAY_SIZE(mmss_xo_mmpll0_mmpll1_mmpll4_mmpll3_gpll0_gpll0_div),
  .ops = &clk_rcg2_ops,
 },
};

static struct clk_rcg2 vfe1_clk_src = {
 .cmd_rcgr = 0x3620,
 .hid_width = 5,
 .parent_map = mmss_xo_mmpll0_mmpll1_mmpll4_mmpll3_gpll0_gpll0_div_map,
 .freq_tbl = ftbl_vfe0_clk_src,
 .clkr.hw.init = &(struct clk_init_data){
  .name = "vfe1_clk_src",
  .parent_data = mmss_xo_mmpll0_mmpll1_mmpll4_mmpll3_gpll0_gpll0_div,
  .num_parents = ARRAY_SIZE(mmss_xo_mmpll0_mmpll1_mmpll4_mmpll3_gpll0_gpll0_div),
  .ops = &clk_rcg2_ops,
 },
};

static const struct freq_tbl ftbl_cpp_clk_src[] = {
 F(100000000, P_GPLL0_DIV, 3, 0, 0),
 F(200000000, P_GPLL0, 3, 0, 0),
 F(320000000, P_MMPLL0, 2.5, 0, 0),
 F(480000000, P_MMPLL4, 2, 0, 0),
 F(640000000, P_MMPLL4, 1.5, 0, 0),
 { }
};

static struct clk_rcg2 cpp_clk_src = {
 .cmd_rcgr = 0x3640,
 .hid_width = 5,
 .parent_map = mmss_xo_mmpll0_mmpll1_mmpll4_mmpll3_gpll0_gpll0_div_map,
 .freq_tbl = ftbl_cpp_clk_src,
 .clkr.hw.init = &(struct clk_init_data){
  .name = "cpp_clk_src",
  .parent_data = mmss_xo_mmpll0_mmpll1_mmpll4_mmpll3_gpll0_gpll0_div,
  .num_parents = ARRAY_SIZE(mmss_xo_mmpll0_mmpll1_mmpll4_mmpll3_gpll0_gpll0_div),
  .ops = &clk_rcg2_ops,
 },
};

static const struct freq_tbl ftbl_csi0_clk_src[] = {
 F(100000000, P_GPLL0_DIV, 3, 0, 0),
 F(200000000, P_GPLL0, 3, 0, 0),
 F(266666667, P_MMPLL0, 3, 0, 0),
 F(480000000, P_MMPLL4, 2, 0, 0),
 F(600000000, P_GPLL0, 1, 0, 0),
 { }
};

static struct clk_rcg2 csi0_clk_src = {
 .cmd_rcgr = 0x3090,
 .hid_width = 5,
 .parent_map = mmss_xo_mmpll0_mmpll1_mmpll4_mmpll3_gpll0_gpll0_div_map,
 .freq_tbl = ftbl_csi0_clk_src,
 .clkr.hw.init = &(struct clk_init_data){
  .name = "csi0_clk_src",
  .parent_data = mmss_xo_mmpll0_mmpll1_mmpll4_mmpll3_gpll0_gpll0_div,
  .num_parents = ARRAY_SIZE(mmss_xo_mmpll0_mmpll1_mmpll4_mmpll3_gpll0_gpll0_div),
  .ops = &clk_rcg2_ops,
 },
};

static struct clk_rcg2 csi1_clk_src = {
 .cmd_rcgr = 0x3100,
 .hid_width = 5,
 .parent_map = mmss_xo_mmpll0_mmpll1_mmpll4_mmpll3_gpll0_gpll0_div_map,
 .freq_tbl = ftbl_csi0_clk_src,
 .clkr.hw.init = &(struct clk_init_data){
  .name = "csi1_clk_src",
  .parent_data = mmss_xo_mmpll0_mmpll1_mmpll4_mmpll3_gpll0_gpll0_div,
  .num_parents = ARRAY_SIZE(mmss_xo_mmpll0_mmpll1_mmpll4_mmpll3_gpll0_gpll0_div),
  .ops = &clk_rcg2_ops,
 },
};

static struct clk_rcg2 csi2_clk_src = {
 .cmd_rcgr = 0x3160,
 .hid_width = 5,
 .parent_map = mmss_xo_mmpll0_mmpll1_mmpll4_mmpll3_gpll0_gpll0_div_map,
 .freq_tbl = ftbl_csi0_clk_src,
 .clkr.hw.init = &(struct clk_init_data){
  .name = "csi2_clk_src",
  .parent_data = mmss_xo_mmpll0_mmpll1_mmpll4_mmpll3_gpll0_gpll0_div,
  .num_parents = ARRAY_SIZE(mmss_xo_mmpll0_mmpll1_mmpll4_mmpll3_gpll0_gpll0_div),
  .ops = &clk_rcg2_ops,
 },
};

static struct clk_rcg2 csi3_clk_src = {
 .cmd_rcgr = 0x31c0,
 .hid_width = 5,
 .parent_map = mmss_xo_mmpll0_mmpll1_mmpll4_mmpll3_gpll0_gpll0_div_map,
 .freq_tbl = ftbl_csi0_clk_src,
 .clkr.hw.init = &(struct clk_init_data){
  .name = "csi3_clk_src",
  .parent_data = mmss_xo_mmpll0_mmpll1_mmpll4_mmpll3_gpll0_gpll0_div,
  .num_parents = ARRAY_SIZE(mmss_xo_mmpll0_mmpll1_mmpll4_mmpll3_gpll0_gpll0_div),
  .ops = &clk_rcg2_ops,
 },
};

static const struct freq_tbl ftbl_fd_core_clk_src[] = {
 F(100000000, P_GPLL0_DIV, 3, 0, 0),
 F(200000000, P_GPLL0, 3, 0, 0),
 F(400000000, P_MMPLL0, 2, 0, 0),
 { }
};

static struct clk_rcg2 fd_core_clk_src = {
 .cmd_rcgr = 0x3b00,
 .hid_width = 5,
 .parent_map = mmss_xo_mmpll0_mmpll4_gpll0_gpll0_div_map,
 .freq_tbl = ftbl_fd_core_clk_src,
 .clkr.hw.init = &(struct clk_init_data){
  .name = "fd_core_clk_src",
  .parent_data = mmss_xo_mmpll0_mmpll4_gpll0_gpll0_div,
  .num_parents = ARRAY_SIZE(mmss_xo_mmpll0_mmpll4_gpll0_gpll0_div),
  .ops = &clk_rcg2_ops,
 },
};

static struct clk_branch mmss_mmagic_ahb_clk = {
 .halt_reg = 0x5024,
 .clkr = {
  .enable_reg = 0x5024,
  .enable_mask = BIT(0),
  .hw.init = &(struct clk_init_data){
   .name = "mmss_mmagic_ahb_clk",
   .parent_hws = (const struct clk_hw*[]){
    &ahb_clk_src.clkr.hw
   },
   .num_parents = 1,
   .flags = CLK_SET_RATE_PARENT | CLK_IS_CRITICAL,
   .ops = &clk_branch2_ops,
  },
 },
};

static struct clk_branch mmss_mmagic_cfg_ahb_clk = {
 .halt_reg = 0x5054,
 .clkr = {
  .enable_reg = 0x5054,
  .enable_mask = BIT(0),
  .hw.init = &(struct clk_init_data){
   .name = "mmss_mmagic_cfg_ahb_clk",
   .parent_hws = (const struct clk_hw*[]){
    &ahb_clk_src.clkr.hw
   },
   .num_parents = 1,
   .flags = CLK_SET_RATE_PARENT | CLK_IS_CRITICAL,
   .ops = &clk_branch2_ops,
  },
 },
};

static struct clk_branch mmss_misc_ahb_clk = {
 .halt_reg = 0x5018,
 .clkr = {
  .enable_reg = 0x5018,
  .enable_mask = BIT(0),
  .hw.init = &(struct clk_init_data){
   .name = "mmss_misc_ahb_clk",
   .parent_hws = (const struct clk_hw*[]){
    &ahb_clk_src.clkr.hw
   },
   .num_parents = 1,
   .flags = CLK_SET_RATE_PARENT,
   .ops = &clk_branch2_ops,
  },
 },
};

static struct clk_branch mmss_misc_cxo_clk = {
 .halt_reg = 0x5014,
 .clkr = {
  .enable_reg = 0x5014,
  .enable_mask = BIT(0),
  .hw.init = &(struct clk_init_data){
   .name = "mmss_misc_cxo_clk",
   .parent_data = (const struct clk_parent_data[]){
    { .fw_name = "xo", .name = "xo_board" },
   },
   .num_parents = 1,
   .ops = &clk_branch2_ops,
  },
 },
};

static struct clk_branch mmss_mmagic_maxi_clk = {
 .halt_reg = 0x5074,
 .clkr = {
  .enable_reg = 0x5074,
  .enable_mask = BIT(0),
  .hw.init = &(struct clk_init_data){
   .name = "mmss_mmagic_maxi_clk",
   .parent_hws = (const struct clk_hw*[]){
    &maxi_clk_src.clkr.hw
   },
   .num_parents = 1,
   .flags = CLK_SET_RATE_PARENT,
   .ops = &clk_branch2_ops,
  },
 },
};

static struct clk_branch mmagic_camss_axi_clk = {
 .halt_reg = 0x3c44,
 .clkr = {
  .enable_reg = 0x3c44,
  .enable_mask = BIT(0),
  .hw.init = &(struct clk_init_data){
   .name = "mmagic_camss_axi_clk",
   .parent_hws = (const struct clk_hw*[]){
    &axi_clk_src.clkr.hw
   },
   .num_parents = 1,
   .flags = CLK_SET_RATE_PARENT | CLK_IS_CRITICAL,
   .ops = &clk_branch2_ops,
  },
 },
};

static struct clk_branch mmagic_camss_noc_cfg_ahb_clk = {
 .halt_reg = 0x3c48,
 .clkr = {
  .enable_reg = 0x3c48,
  .enable_mask = BIT(0),
  .hw.init = &(struct clk_init_data){
   .name = "mmagic_camss_noc_cfg_ahb_clk",
   .parent_data = (const struct clk_parent_data[]){
    { .fw_name = "gcc_mmss_noc_cfg_ahb_clk", .name = "gcc_mmss_noc_cfg_ahb_clk" },
   },
   .num_parents = 1,
   .flags = CLK_SET_RATE_PARENT | CLK_IS_CRITICAL,
   .ops = &clk_branch2_ops,
  },
 },
};

static struct clk_branch smmu_vfe_ahb_clk = {
 .halt_reg = 0x3c04,
 .clkr = {
  .enable_reg = 0x3c04,
  .enable_mask = BIT(0),
  .hw.init = &(struct clk_init_data){
   .name = "smmu_vfe_ahb_clk",
   .parent_hws = (const struct clk_hw*[]){
    &ahb_clk_src.clkr.hw
   },
   .num_parents = 1,
   .flags = CLK_SET_RATE_PARENT,
   .ops = &clk_branch2_ops,
  },
 },
};

static struct clk_branch smmu_vfe_axi_clk = {
 .halt_reg = 0x3c08,
 .clkr = {
  .enable_reg = 0x3c08,
  .enable_mask = BIT(0),
  .hw.init = &(struct clk_init_data){
   .name = "smmu_vfe_axi_clk",
   .parent_hws = (const struct clk_hw*[]){
    &axi_clk_src.clkr.hw
   },
   .num_parents = 1,
   .flags = CLK_SET_RATE_PARENT,
   .ops = &clk_branch2_ops,
  },
 },
};

static struct clk_branch smmu_cpp_ahb_clk = {
 .halt_reg = 0x3c14,
 .clkr = {
  .enable_reg = 0x3c14,
  .enable_mask = BIT(0),
  .hw.init = &(struct clk_init_data){
   .name = "smmu_cpp_ahb_clk",
   .parent_hws = (const struct clk_hw*[]){
    &ahb_clk_src.clkr.hw
   },
   .num_parents = 1,
   .flags = CLK_SET_RATE_PARENT,
   .ops = &clk_branch2_ops,
  },
 },
};

static struct clk_branch smmu_cpp_axi_clk = {
 .halt_reg = 0x3c18,
 .clkr = {
  .enable_reg = 0x3c18,
  .enable_mask = BIT(0),
  .hw.init = &(struct clk_init_data){
   .name = "smmu_cpp_axi_clk",
   .parent_hws = (const struct clk_hw*[]){
    &axi_clk_src.clkr.hw
   },
   .num_parents = 1,
   .flags = CLK_SET_RATE_PARENT,
   .ops = &clk_branch2_ops,
  },
 },
};

static struct clk_branch smmu_jpeg_ahb_clk = {
 .halt_reg = 0x3c24,
 .clkr = {
  .enable_reg = 0x3c24,
  .enable_mask = BIT(0),
  .hw.init = &(struct clk_init_data){
   .name = "smmu_jpeg_ahb_clk",
   .parent_hws = (const struct clk_hw*[]){
    &ahb_clk_src.clkr.hw
   },
   .num_parents = 1,
   .flags = CLK_SET_RATE_PARENT,
   .ops = &clk_branch2_ops,
  },
 },
};

static struct clk_branch smmu_jpeg_axi_clk = {
 .halt_reg = 0x3c28,
 .clkr = {
  .enable_reg = 0x3c28,
  .enable_mask = BIT(0),
  .hw.init = &(struct clk_init_data){
   .name = "smmu_jpeg_axi_clk",
   .parent_hws = (const struct clk_hw*[]){
    &axi_clk_src.clkr.hw
   },
   .num_parents = 1,
   .flags = CLK_SET_RATE_PARENT,
   .ops = &clk_branch2_ops,
  },
 },
};

static struct clk_branch mmagic_mdss_axi_clk = {
 .halt_reg = 0x2474,
 .clkr = {
  .enable_reg = 0x2474,
  .enable_mask = BIT(0),
  .hw.init = &(struct clk_init_data){
   .name = "mmagic_mdss_axi_clk",
   .parent_hws = (const struct clk_hw*[]){
    &axi_clk_src.clkr.hw
   },
   .num_parents = 1,
   .flags = CLK_SET_RATE_PARENT | CLK_IS_CRITICAL,
   .ops = &clk_branch2_ops,
  },
 },
};

static struct clk_branch mmagic_mdss_noc_cfg_ahb_clk = {
 .halt_reg = 0x2478,
 .clkr = {
  .enable_reg = 0x2478,
  .enable_mask = BIT(0),
  .hw.init = &(struct clk_init_data){
   .name = "mmagic_mdss_noc_cfg_ahb_clk",
   .parent_data = (const struct clk_parent_data[]){
    { .fw_name = "gcc_mmss_noc_cfg_ahb_clk", .name = "gcc_mmss_noc_cfg_ahb_clk" },
   },
   .num_parents = 1,
   .flags = CLK_SET_RATE_PARENT | CLK_IS_CRITICAL,
   .ops = &clk_branch2_ops,
  },
 },
};

static struct clk_branch smmu_rot_ahb_clk = {
 .halt_reg = 0x2444,
 .clkr = {
  .enable_reg = 0x2444,
  .enable_mask = BIT(0),
  .hw.init = &(struct clk_init_data){
   .name = "smmu_rot_ahb_clk",
   .parent_hws = (const struct clk_hw*[]){
    &ahb_clk_src.clkr.hw
   },
   .num_parents = 1,
   .flags = CLK_SET_RATE_PARENT,
   .ops = &clk_branch2_ops,
  },
 },
};

static struct clk_branch smmu_rot_axi_clk = {
 .halt_reg = 0x2448,
 .clkr = {
  .enable_reg = 0x2448,
  .enable_mask = BIT(0),
  .hw.init = &(struct clk_init_data){
   .name = "smmu_rot_axi_clk",
   .parent_hws = (const struct clk_hw*[]){
    &axi_clk_src.clkr.hw
   },
   .num_parents = 1,
   .flags = CLK_SET_RATE_PARENT,
   .ops = &clk_branch2_ops,
  },
 },
};

static struct clk_branch smmu_mdp_ahb_clk = {
 .halt_reg = 0x2454,
 .clkr = {
  .enable_reg = 0x2454,
  .enable_mask = BIT(0),
  .hw.init = &(struct clk_init_data){
   .name = "smmu_mdp_ahb_clk",
   .parent_hws = (const struct clk_hw*[]){
    &ahb_clk_src.clkr.hw
   },
   .num_parents = 1,
   .flags = CLK_SET_RATE_PARENT,
   .ops = &clk_branch2_ops,
  },
 },
};

static struct clk_branch smmu_mdp_axi_clk = {
 .halt_reg = 0x2458,
 .clkr = {
  .enable_reg = 0x2458,
  .enable_mask = BIT(0),
  .hw.init = &(struct clk_init_data){
   .name = "smmu_mdp_axi_clk",
   .parent_hws = (const struct clk_hw*[]){
    &axi_clk_src.clkr.hw
   },
   .num_parents = 1,
   .flags = CLK_SET_RATE_PARENT,
   .ops = &clk_branch2_ops,
  },
 },
};

static struct clk_branch mmagic_video_axi_clk = {
 .halt_reg = 0x1194,
 .clkr = {
  .enable_reg = 0x1194,
  .enable_mask = BIT(0),
  .hw.init = &(struct clk_init_data){
   .name = "mmagic_video_axi_clk",
   .parent_hws = (const struct clk_hw*[]){
    &axi_clk_src.clkr.hw
   },
   .num_parents = 1,
   .flags = CLK_SET_RATE_PARENT | CLK_IS_CRITICAL,
   .ops = &clk_branch2_ops,
  },
 },
};

static struct clk_branch mmagic_video_noc_cfg_ahb_clk = {
 .halt_reg = 0x1198,
 .clkr = {
  .enable_reg = 0x1198,
  .enable_mask = BIT(0),
  .hw.init = &(struct clk_init_data){
   .name = "mmagic_video_noc_cfg_ahb_clk",
   .parent_data = (const struct clk_parent_data[]){
    { .fw_name = "gcc_mmss_noc_cfg_ahb_clk", .name = "gcc_mmss_noc_cfg_ahb_clk" },
   },
   .num_parents = 1,
   .flags = CLK_SET_RATE_PARENT | CLK_IS_CRITICAL,
   .ops = &clk_branch2_ops,
  },
 },
};

static struct clk_branch smmu_video_ahb_clk = {
 .halt_reg = 0x1174,
 .clkr = {
  .enable_reg = 0x1174,
  .enable_mask = BIT(0),
  .hw.init = &(struct clk_init_data){
   .name = "smmu_video_ahb_clk",
   .parent_hws = (const struct clk_hw*[]){
    &ahb_clk_src.clkr.hw
   },
   .num_parents = 1,
   .flags = CLK_SET_RATE_PARENT,
   .ops = &clk_branch2_ops,
  },
 },
};

static struct clk_branch smmu_video_axi_clk = {
 .halt_reg = 0x1178,
 .clkr = {
  .enable_reg = 0x1178,
  .enable_mask = BIT(0),
  .hw.init = &(struct clk_init_data){
   .name = "smmu_video_axi_clk",
   .parent_hws = (const struct clk_hw*[]){
    &axi_clk_src.clkr.hw
   },
   .num_parents = 1,
   .flags = CLK_SET_RATE_PARENT,
   .ops = &clk_branch2_ops,
  },
 },
};

static struct clk_branch mmagic_bimc_noc_cfg_ahb_clk = {
 .halt_reg = 0x5298,
 .clkr = {
  .enable_reg = 0x5298,
  .enable_mask = BIT(0),
  .hw.init = &(struct clk_init_data){
   .name = "mmagic_bimc_noc_cfg_ahb_clk",
   .parent_data = (const struct clk_parent_data[]){
    { .fw_name = "gcc_mmss_noc_cfg_ahb_clk", .name = "gcc_mmss_noc_cfg_ahb_clk" },
   },
   .num_parents = 1,
   .flags = CLK_SET_RATE_PARENT,
   .ops = &clk_branch2_ops,
  },
 },
};

static struct clk_branch gpu_gx_gfx3d_clk = {
 .halt_reg = 0x4028,
 .clkr = {
  .enable_reg = 0x4028,
  .enable_mask = BIT(0),
  .hw.init = &(struct clk_init_data){
   .name = "gpu_gx_gfx3d_clk",
   .parent_hws = (const struct clk_hw*[]){
    &gfx3d_clk_src.rcg.clkr.hw
   },
   .num_parents = 1,
   .flags = CLK_SET_RATE_PARENT,
   .ops = &clk_branch2_ops,
  },
 },
};

static struct clk_branch gpu_gx_rbbmtimer_clk = {
 .halt_reg = 0x40b0,
 .clkr = {
  .enable_reg = 0x40b0,
  .enable_mask = BIT(0),
  .hw.init = &(struct clk_init_data){
   .name = "gpu_gx_rbbmtimer_clk",
   .parent_hws = (const struct clk_hw*[]){
    &rbbmtimer_clk_src.clkr.hw
   },
   .num_parents = 1,
   .flags = CLK_SET_RATE_PARENT,
   .ops = &clk_branch2_ops,
  },
 },
};

static struct clk_branch gpu_ahb_clk = {
 .halt_reg = 0x403c,
 .clkr = {
  .enable_reg = 0x403c,
  .enable_mask = BIT(0),
  .hw.init = &(struct clk_init_data){
   .name = "gpu_ahb_clk",
   .parent_hws = (const struct clk_hw*[]){
    &ahb_clk_src.clkr.hw
   },
   .num_parents = 1,
   .flags = CLK_SET_RATE_PARENT,
   .ops = &clk_branch2_ops,
  },
 },
};

static struct clk_branch gpu_aon_isense_clk = {
 .halt_reg = 0x4044,
 .clkr = {
  .enable_reg = 0x4044,
  .enable_mask = BIT(0),
  .hw.init = &(struct clk_init_data){
   .name = "gpu_aon_isense_clk",
   .parent_hws = (const struct clk_hw*[]){
    &isense_clk_src.clkr.hw
   },
   .num_parents = 1,
   .flags = CLK_SET_RATE_PARENT,
   .ops = &clk_branch2_ops,
  },
 },
};

static struct clk_branch vmem_maxi_clk = {
 .halt_reg = 0x1204,
 .clkr = {
  .enable_reg = 0x1204,
  .enable_mask = BIT(0),
  .hw.init = &(struct clk_init_data){
   .name = "vmem_maxi_clk",
   .parent_hws = (const struct clk_hw*[]){
    &maxi_clk_src.clkr.hw
   },
   .num_parents = 1,
   .flags = CLK_SET_RATE_PARENT,
   .ops = &clk_branch2_ops,
  },
 },
};

static struct clk_branch vmem_ahb_clk = {
 .halt_reg = 0x1208,
 .clkr = {
  .enable_reg = 0x1208,
  .enable_mask = BIT(0),
  .hw.init = &(struct clk_init_data){
   .name = "vmem_ahb_clk",
   .parent_hws = (const struct clk_hw*[]){
    &ahb_clk_src.clkr.hw
   },
   .num_parents = 1,
   .flags = CLK_SET_RATE_PARENT,
   .ops = &clk_branch2_ops,
  },
 },
};

static struct clk_branch mmss_rbcpr_clk = {
 .halt_reg = 0x4084,
 .clkr = {
  .enable_reg = 0x4084,
  .enable_mask = BIT(0),
  .hw.init = &(struct clk_init_data){
   .name = "mmss_rbcpr_clk",
   .parent_hws = (const struct clk_hw*[]){
    &rbcpr_clk_src.clkr.hw
   },
   .num_parents = 1,
   .flags = CLK_SET_RATE_PARENT,
   .ops = &clk_branch2_ops,
  },
 },
};

static struct clk_branch mmss_rbcpr_ahb_clk = {
 .halt_reg = 0x4088,
 .clkr = {
  .enable_reg = 0x4088,
  .enable_mask = BIT(0),
  .hw.init = &(struct clk_init_data){
   .name = "mmss_rbcpr_ahb_clk",
   .parent_hws = (const struct clk_hw*[]){
    &ahb_clk_src.clkr.hw
   },
   .num_parents = 1,
   .flags = CLK_SET_RATE_PARENT,
   .ops = &clk_branch2_ops,
  },
 },
};

static struct clk_branch video_core_clk = {
 .halt_reg = 0x1028,
 .clkr = {
  .enable_reg = 0x1028,
  .enable_mask = BIT(0),
  .hw.init = &(struct clk_init_data){
   .name = "video_core_clk",
   .parent_hws = (const struct clk_hw*[]){
    &video_core_clk_src.clkr.hw
   },
   .num_parents = 1,
   .flags = CLK_SET_RATE_PARENT,
   .ops = &clk_branch2_ops,
  },
 },
};

static struct clk_branch video_axi_clk = {
 .halt_reg = 0x1034,
 .clkr = {
  .enable_reg = 0x1034,
  .enable_mask = BIT(0),
  .hw.init = &(struct clk_init_data){
   .name = "video_axi_clk",
   .parent_hws = (const struct clk_hw*[]){
    &axi_clk_src.clkr.hw
   },
   .num_parents = 1,
   .flags = CLK_SET_RATE_PARENT,
   .ops = &clk_branch2_ops,
  },
 },
};

static struct clk_branch video_maxi_clk = {
 .halt_reg = 0x1038,
 .clkr = {
  .enable_reg = 0x1038,
  .enable_mask = BIT(0),
  .hw.init = &(struct clk_init_data){
   .name = "video_maxi_clk",
   .parent_hws = (const struct clk_hw*[]){
    &maxi_clk_src.clkr.hw
   },
   .num_parents = 1,
   .flags = CLK_SET_RATE_PARENT,
   .ops = &clk_branch2_ops,
  },
 },
};

static struct clk_branch video_ahb_clk = {
 .halt_reg = 0x1030,
 .clkr = {
  .enable_reg = 0x1030,
  .enable_mask = BIT(0),
  .hw.init = &(struct clk_init_data){
   .name = "video_ahb_clk",
   .parent_hws = (const struct clk_hw*[]){
    &ahb_clk_src.clkr.hw
   },
   .num_parents = 1,
   .flags = CLK_SET_RATE_PARENT,
   .ops = &clk_branch2_ops,
  },
 },
};

static struct clk_branch video_subcore0_clk = {
 .halt_reg = 0x1048,
 .clkr = {
  .enable_reg = 0x1048,
  .enable_mask = BIT(0),
  .hw.init = &(struct clk_init_data){
   .name = "video_subcore0_clk",
   .parent_hws = (const struct clk_hw*[]){
    &video_subcore0_clk_src.clkr.hw
   },
   .num_parents = 1,
   .flags = CLK_SET_RATE_PARENT,
   .ops = &clk_branch2_ops,
  },
 },
};

static struct clk_branch video_subcore1_clk = {
 .halt_reg = 0x104c,
 .clkr = {
  .enable_reg = 0x104c,
  .enable_mask = BIT(0),
  .hw.init = &(struct clk_init_data){
   .name = "video_subcore1_clk",
   .parent_hws = (const struct clk_hw*[]){
    &video_subcore1_clk_src.clkr.hw
   },
   .num_parents = 1,
   .flags = CLK_SET_RATE_PARENT,
   .ops = &clk_branch2_ops,
  },
 },
};

static struct clk_branch mdss_ahb_clk = {
 .halt_reg = 0x2308,
 .clkr = {
  .enable_reg = 0x2308,
  .enable_mask = BIT(0),
  .hw.init = &(struct clk_init_data){
   .name = "mdss_ahb_clk",
   .parent_hws = (const struct clk_hw*[]){
    &ahb_clk_src.clkr.hw
   },
   .num_parents = 1,
   .flags = CLK_SET_RATE_PARENT,
   .ops = &clk_branch2_ops,
  },
 },
};

static struct clk_branch mdss_hdmi_ahb_clk = {
 .halt_reg = 0x230c,
 .clkr = {
  .enable_reg = 0x230c,
  .enable_mask = BIT(0),
  .hw.init = &(struct clk_init_data){
   .name = "mdss_hdmi_ahb_clk",
   .parent_hws = (const struct clk_hw*[]){
    &ahb_clk_src.clkr.hw
   },
   .num_parents = 1,
   .flags = CLK_SET_RATE_PARENT,
   .ops = &clk_branch2_ops,
  },
 },
};

static struct clk_branch mdss_axi_clk = {
 .halt_reg = 0x2310,
 .clkr = {
  .enable_reg = 0x2310,
  .enable_mask = BIT(0),
  .hw.init = &(struct clk_init_data){
   .name = "mdss_axi_clk",
   .parent_hws = (const struct clk_hw*[]){
    &axi_clk_src.clkr.hw
   },
   .num_parents = 1,
   .flags = CLK_SET_RATE_PARENT,
   .ops = &clk_branch2_ops,
  },
 },
};

static struct clk_branch mdss_pclk0_clk = {
 .halt_reg = 0x2314,
 .clkr = {
  .enable_reg = 0x2314,
  .enable_mask = BIT(0),
  .hw.init = &(struct clk_init_data){
   .name = "mdss_pclk0_clk",
   .parent_hws = (const struct clk_hw*[]){
    &pclk0_clk_src.clkr.hw
   },
   .num_parents = 1,
   .flags = CLK_SET_RATE_PARENT,
   .ops = &clk_branch2_ops,
  },
 },
};

static struct clk_branch mdss_pclk1_clk = {
 .halt_reg = 0x2318,
 .clkr = {
  .enable_reg = 0x2318,
  .enable_mask = BIT(0),
  .hw.init = &(struct clk_init_data){
   .name = "mdss_pclk1_clk",
   .parent_hws = (const struct clk_hw*[]){
    &pclk1_clk_src.clkr.hw
   },
   .num_parents = 1,
   .flags = CLK_SET_RATE_PARENT,
   .ops = &clk_branch2_ops,
  },
 },
};

static struct clk_branch mdss_mdp_clk = {
 .halt_reg = 0x231c,
 .clkr = {
  .enable_reg = 0x231c,
  .enable_mask = BIT(0),
  .hw.init = &(struct clk_init_data){
   .name = "mdss_mdp_clk",
   .parent_hws = (const struct clk_hw*[]){
    &mdp_clk_src.clkr.hw
   },
   .num_parents = 1,
   .flags = CLK_SET_RATE_PARENT,
   .ops = &clk_branch2_ops,
  },
 },
};

static struct clk_branch mdss_extpclk_clk = {
 .halt_reg = 0x2324,
 .clkr = {
  .enable_reg = 0x2324,
  .enable_mask = BIT(0),
  .hw.init = &(struct clk_init_data){
   .name = "mdss_extpclk_clk",
   .parent_hws = (const struct clk_hw*[]){
    &extpclk_clk_src.clkr.hw
   },
   .num_parents = 1,
   .flags = CLK_SET_RATE_PARENT,
   .ops = &clk_branch2_ops,
  },
 },
};

static struct clk_branch mdss_vsync_clk = {
 .halt_reg = 0x2328,
 .clkr = {
  .enable_reg = 0x2328,
  .enable_mask = BIT(0),
  .hw.init = &(struct clk_init_data){
   .name = "mdss_vsync_clk",
   .parent_hws = (const struct clk_hw*[]){
    &vsync_clk_src.clkr.hw
   },
   .num_parents = 1,
   .flags = CLK_SET_RATE_PARENT,
   .ops = &clk_branch2_ops,
  },
 },
};

static struct clk_branch mdss_hdmi_clk = {
 .halt_reg = 0x2338,
 .clkr = {
  .enable_reg = 0x2338,
  .enable_mask = BIT(0),
  .hw.init = &(struct clk_init_data){
   .name = "mdss_hdmi_clk",
   .parent_hws = (const struct clk_hw*[]){
    &hdmi_clk_src.clkr.hw
   },
   .num_parents = 1,
   .flags = CLK_SET_RATE_PARENT,
   .ops = &clk_branch2_ops,
  },
 },
};

static struct clk_branch mdss_byte0_clk = {
 .halt_reg = 0x233c,
 .clkr = {
  .enable_reg = 0x233c,
  .enable_mask = BIT(0),
  .hw.init = &(struct clk_init_data){
   .name = "mdss_byte0_clk",
   .parent_hws = (const struct clk_hw*[]){
    &byte0_clk_src.clkr.hw
   },
   .num_parents = 1,
   .flags = CLK_SET_RATE_PARENT,
   .ops = &clk_branch2_ops,
  },
 },
};

static struct clk_branch mdss_byte1_clk = {
 .halt_reg = 0x2340,
 .clkr = {
  .enable_reg = 0x2340,
  .enable_mask = BIT(0),
  .hw.init = &(struct clk_init_data){
   .name = "mdss_byte1_clk",
   .parent_hws = (const struct clk_hw*[]){
    &byte1_clk_src.clkr.hw
   },
   .num_parents = 1,
   .flags = CLK_SET_RATE_PARENT,
   .ops = &clk_branch2_ops,
  },
 },
};

static struct clk_branch mdss_esc0_clk = {
 .halt_reg = 0x2344,
 .clkr = {
  .enable_reg = 0x2344,
  .enable_mask = BIT(0),
  .hw.init = &(struct clk_init_data){
   .name = "mdss_esc0_clk",
   .parent_hws = (const struct clk_hw*[]){
    &esc0_clk_src.clkr.hw
   },
   .num_parents = 1,
   .flags = CLK_SET_RATE_PARENT,
   .ops = &clk_branch2_ops,
  },
 },
};

static struct clk_branch mdss_esc1_clk = {
 .halt_reg = 0x2348,
 .clkr = {
  .enable_reg = 0x2348,
  .enable_mask = BIT(0),
  .hw.init = &(struct clk_init_data){
   .name = "mdss_esc1_clk",
   .parent_hws = (const struct clk_hw*[]){
    &esc1_clk_src.clkr.hw
   },
   .num_parents = 1,
   .flags = CLK_SET_RATE_PARENT,
   .ops = &clk_branch2_ops,
  },
 },
};

static struct clk_branch camss_top_ahb_clk = {
 .halt_reg = 0x3484,
 .clkr = {
  .enable_reg = 0x3484,
  .enable_mask = BIT(0),
  .hw.init = &(struct clk_init_data){
   .name = "camss_top_ahb_clk",
   .parent_hws = (const struct clk_hw*[]){
    &ahb_clk_src.clkr.hw
   },
   .num_parents = 1,
   .flags = CLK_SET_RATE_PARENT,
   .ops = &clk_branch2_ops,
  },
 },
};

static struct clk_branch camss_ahb_clk = {
 .halt_reg = 0x348c,
 .clkr = {
  .enable_reg = 0x348c,
  .enable_mask = BIT(0),
  .hw.init = &(struct clk_init_data){
   .name = "camss_ahb_clk",
   .parent_hws = (const struct clk_hw*[]){
    &ahb_clk_src.clkr.hw
   },
   .num_parents = 1,
   .flags = CLK_SET_RATE_PARENT,
   .ops = &clk_branch2_ops,
  },
 },
};

static struct clk_branch camss_micro_ahb_clk = {
 .halt_reg = 0x3494,
 .clkr = {
  .enable_reg = 0x3494,
  .enable_mask = BIT(0),
  .hw.init = &(struct clk_init_data){
   .name = "camss_micro_ahb_clk",
   .parent_hws = (const struct clk_hw*[]){
    &ahb_clk_src.clkr.hw
   },
   .num_parents = 1,
   .flags = CLK_SET_RATE_PARENT,
   .ops = &clk_branch2_ops,
  },
 },
};

static struct clk_branch camss_gp0_clk = {
 .halt_reg = 0x3444,
 .clkr = {
  .enable_reg = 0x3444,
  .enable_mask = BIT(0),
  .hw.init = &(struct clk_init_data){
   .name = "camss_gp0_clk",
   .parent_hws = (const struct clk_hw*[]){
    &camss_gp0_clk_src.clkr.hw
   },
   .num_parents = 1,
   .flags = CLK_SET_RATE_PARENT,
   .ops = &clk_branch2_ops,
  },
 },
};

static struct clk_branch camss_gp1_clk = {
 .halt_reg = 0x3474,
 .clkr = {
  .enable_reg = 0x3474,
  .enable_mask = BIT(0),
  .hw.init = &(struct clk_init_data){
   .name = "camss_gp1_clk",
   .parent_hws = (const struct clk_hw*[]){
    &camss_gp1_clk_src.clkr.hw
   },
   .num_parents = 1,
   .flags = CLK_SET_RATE_PARENT,
   .ops = &clk_branch2_ops,
  },
 },
};

static struct clk_branch camss_mclk0_clk = {
 .halt_reg = 0x3384,
 .clkr = {
  .enable_reg = 0x3384,
  .enable_mask = BIT(0),
  .hw.init = &(struct clk_init_data){
   .name = "camss_mclk0_clk",
   .parent_hws = (const struct clk_hw*[]){
    &mclk0_clk_src.clkr.hw
   },
   .num_parents = 1,
   .flags = CLK_SET_RATE_PARENT,
   .ops = &clk_branch2_ops,
  },
 },
};

static struct clk_branch camss_mclk1_clk = {
 .halt_reg = 0x33b4,
 .clkr = {
  .enable_reg = 0x33b4,
  .enable_mask = BIT(0),
  .hw.init = &(struct clk_init_data){
   .name = "camss_mclk1_clk",
   .parent_hws = (const struct clk_hw*[]){
    &mclk1_clk_src.clkr.hw
   },
   .num_parents = 1,
   .flags = CLK_SET_RATE_PARENT,
   .ops = &clk_branch2_ops,
  },
 },
};

static struct clk_branch camss_mclk2_clk = {
 .halt_reg = 0x33e4,
 .clkr = {
  .enable_reg = 0x33e4,
  .enable_mask = BIT(0),
  .hw.init = &(struct clk_init_data){
   .name = "camss_mclk2_clk",
   .parent_hws = (const struct clk_hw*[]){
    &mclk2_clk_src.clkr.hw
   },
   .num_parents = 1,
   .flags = CLK_SET_RATE_PARENT,
   .ops = &clk_branch2_ops,
  },
 },
};

static struct clk_branch camss_mclk3_clk = {
 .halt_reg = 0x3414,
 .clkr = {
  .enable_reg = 0x3414,
  .enable_mask = BIT(0),
  .hw.init = &(struct clk_init_data){
   .name = "camss_mclk3_clk",
   .parent_hws = (const struct clk_hw*[]){
    &mclk3_clk_src.clkr.hw
   },
   .num_parents = 1,
   .flags = CLK_SET_RATE_PARENT,
   .ops = &clk_branch2_ops,
  },
 },
};

static struct clk_branch camss_cci_clk = {
 .halt_reg = 0x3344,
 .clkr = {
  .enable_reg = 0x3344,
  .enable_mask = BIT(0),
  .hw.init = &(struct clk_init_data){
   .name = "camss_cci_clk",
   .parent_hws = (const struct clk_hw*[]){
    &cci_clk_src.clkr.hw
   },
   .num_parents = 1,
   .flags = CLK_SET_RATE_PARENT,
   .ops = &clk_branch2_ops,
  },
 },
};

static struct clk_branch camss_cci_ahb_clk = {
 .halt_reg = 0x3348,
 .clkr = {
  .enable_reg = 0x3348,
  .enable_mask = BIT(0),
  .hw.init = &(struct clk_init_data){
   .name = "camss_cci_ahb_clk",
   .parent_hws = (const struct clk_hw*[]){
    &ahb_clk_src.clkr.hw
   },
   .num_parents = 1,
   .flags = CLK_SET_RATE_PARENT,
   .ops = &clk_branch2_ops,
  },
 },
};

static struct clk_branch camss_csi0phytimer_clk = {
 .halt_reg = 0x3024,
 .clkr = {
  .enable_reg = 0x3024,
  .enable_mask = BIT(0),
  .hw.init = &(struct clk_init_data){
   .name = "camss_csi0phytimer_clk",
   .parent_hws = (const struct clk_hw*[]){
    &csi0phytimer_clk_src.clkr.hw
   },
   .num_parents = 1,
   .flags = CLK_SET_RATE_PARENT,
   .ops = &clk_branch2_ops,
  },
 },
};

static struct clk_branch camss_csi1phytimer_clk = {
 .halt_reg = 0x3054,
 .clkr = {
  .enable_reg = 0x3054,
  .enable_mask = BIT(0),
  .hw.init = &(struct clk_init_data){
   .name = "camss_csi1phytimer_clk",
   .parent_hws = (const struct clk_hw*[]){
    &csi1phytimer_clk_src.clkr.hw
   },
   .num_parents = 1,
   .flags = CLK_SET_RATE_PARENT,
   .ops = &clk_branch2_ops,
  },
 },
};

static struct clk_branch camss_csi2phytimer_clk = {
 .halt_reg = 0x3084,
 .clkr = {
  .enable_reg = 0x3084,
  .enable_mask = BIT(0),
  .hw.init = &(struct clk_init_data){
   .name = "camss_csi2phytimer_clk",
   .parent_hws = (const struct clk_hw*[]){
    &csi2phytimer_clk_src.clkr.hw
   },
   .num_parents = 1,
   .flags = CLK_SET_RATE_PARENT,
   .ops = &clk_branch2_ops,
  },
 },
};

static struct clk_branch camss_csiphy0_3p_clk = {
 .halt_reg = 0x3234,
 .clkr = {
  .enable_reg = 0x3234,
  .enable_mask = BIT(0),
  .hw.init = &(struct clk_init_data){
   .name = "camss_csiphy0_3p_clk",
   .parent_hws = (const struct clk_hw*[]){
    &csiphy0_3p_clk_src.clkr.hw
   },
   .num_parents = 1,
   .flags = CLK_SET_RATE_PARENT,
   .ops = &clk_branch2_ops,
  },
 },
};

static struct clk_branch camss_csiphy1_3p_clk = {
 .halt_reg = 0x3254,
 .clkr = {
  .enable_reg = 0x3254,
  .enable_mask = BIT(0),
  .hw.init = &(struct clk_init_data){
   .name = "camss_csiphy1_3p_clk",
   .parent_hws = (const struct clk_hw*[]){
    &csiphy1_3p_clk_src.clkr.hw
   },
   .num_parents = 1,
   .flags = CLK_SET_RATE_PARENT,
   .ops = &clk_branch2_ops,
  },
 },
};

static struct clk_branch camss_csiphy2_3p_clk = {
 .halt_reg = 0x3274,
 .clkr = {
  .enable_reg = 0x3274,
  .enable_mask = BIT(0),
  .hw.init = &(struct clk_init_data){
   .name = "camss_csiphy2_3p_clk",
   .parent_hws = (const struct clk_hw*[]){
    &csiphy2_3p_clk_src.clkr.hw
   },
   .num_parents = 1,
   .flags = CLK_SET_RATE_PARENT,
   .ops = &clk_branch2_ops,
  },
 },
};

static struct clk_branch camss_jpeg0_clk = {
 .halt_reg = 0x35a8,
 .clkr = {
  .enable_reg = 0x35a8,
  .enable_mask = BIT(0),
  .hw.init = &(struct clk_init_data){
   .name = "camss_jpeg0_clk",
   .parent_hws = (const struct clk_hw*[]){
    &jpeg0_clk_src.clkr.hw
   },
   .num_parents = 1,
   .flags = CLK_SET_RATE_PARENT,
   .ops = &clk_branch2_ops,
  },
 },
};

static struct clk_branch camss_jpeg2_clk = {
 .halt_reg = 0x35b0,
 .clkr = {
  .enable_reg = 0x35b0,
  .enable_mask = BIT(0),
  .hw.init = &(struct clk_init_data){
   .name = "camss_jpeg2_clk",
   .parent_hws = (const struct clk_hw*[]){
    &jpeg2_clk_src.clkr.hw
   },
   .num_parents = 1,
   .flags = CLK_SET_RATE_PARENT,
   .ops = &clk_branch2_ops,
  },
 },
};

static struct clk_branch camss_jpeg_dma_clk = {
 .halt_reg = 0x35c0,
 .clkr = {
  .enable_reg = 0x35c0,
  .enable_mask = BIT(0),
  .hw.init = &(struct clk_init_data){
   .name = "camss_jpeg_dma_clk",
   .parent_hws = (const struct clk_hw*[]){
    &jpeg_dma_clk_src.clkr.hw
   },
   .num_parents = 1,
   .flags = CLK_SET_RATE_PARENT,
   .ops = &clk_branch2_ops,
  },
 },
};

static struct clk_branch camss_jpeg_ahb_clk = {
 .halt_reg = 0x35b4,
 .clkr = {
  .enable_reg = 0x35b4,
  .enable_mask = BIT(0),
  .hw.init = &(struct clk_init_data){
   .name = "camss_jpeg_ahb_clk",
   .parent_hws = (const struct clk_hw*[]){
    &ahb_clk_src.clkr.hw
   },
   .num_parents = 1,
   .flags = CLK_SET_RATE_PARENT,
   .ops = &clk_branch2_ops,
  },
 },
};

static struct clk_branch camss_jpeg_axi_clk = {
 .halt_reg = 0x35b8,
 .clkr = {
  .enable_reg = 0x35b8,
  .enable_mask = BIT(0),
  .hw.init = &(struct clk_init_data){
   .name = "camss_jpeg_axi_clk",
   .parent_hws = (const struct clk_hw*[]){
    &axi_clk_src.clkr.hw
   },
   .num_parents = 1,
   .flags = CLK_SET_RATE_PARENT,
   .ops = &clk_branch2_ops,
  },
 },
};

static struct clk_branch camss_vfe_ahb_clk = {
 .halt_reg = 0x36b8,
 .clkr = {
  .enable_reg = 0x36b8,
  .enable_mask = BIT(0),
  .hw.init = &(struct clk_init_data){
   .name = "camss_vfe_ahb_clk",
   .parent_hws = (const struct clk_hw*[]){
    &ahb_clk_src.clkr.hw
   },
   .num_parents = 1,
   .flags = CLK_SET_RATE_PARENT,
   .ops = &clk_branch2_ops,
  },
 },
};

static struct clk_branch camss_vfe_axi_clk = {
 .halt_reg = 0x36bc,
 .clkr = {
  .enable_reg = 0x36bc,
  .enable_mask = BIT(0),
  .hw.init = &(struct clk_init_data){
   .name = "camss_vfe_axi_clk",
   .parent_hws = (const struct clk_hw*[]){
    &axi_clk_src.clkr.hw
   },
   .num_parents = 1,
   .flags = CLK_SET_RATE_PARENT,
   .ops = &clk_branch2_ops,
  },
 },
};

static struct clk_branch camss_vfe0_clk = {
 .halt_reg = 0x36a8,
 .clkr = {
  .enable_reg = 0x36a8,
  .enable_mask = BIT(0),
  .hw.init = &(struct clk_init_data){
   .name = "camss_vfe0_clk",
   .parent_hws = (const struct clk_hw*[]){
    &vfe0_clk_src.clkr.hw
   },
   .num_parents = 1,
   .flags = CLK_SET_RATE_PARENT,
   .ops = &clk_branch2_ops,
  },
 },
};

static struct clk_branch camss_vfe0_stream_clk = {
 .halt_reg = 0x3720,
 .clkr = {
  .enable_reg = 0x3720,
  .enable_mask = BIT(0),
  .hw.init = &(struct clk_init_data){
   .name = "camss_vfe0_stream_clk",
   .parent_hws = (const struct clk_hw*[]){
    &vfe0_clk_src.clkr.hw
   },
   .num_parents = 1,
   .flags = CLK_SET_RATE_PARENT,
   .ops = &clk_branch2_ops,
  },
 },
};

static struct clk_branch camss_vfe0_ahb_clk = {
 .halt_reg = 0x3668,
 .clkr = {
  .enable_reg = 0x3668,
  .enable_mask = BIT(0),
  .hw.init = &(struct clk_init_data){
   .name = "camss_vfe0_ahb_clk",
   .parent_hws = (const struct clk_hw*[]){
    &ahb_clk_src.clkr.hw
   },
   .num_parents = 1,
   .flags = CLK_SET_RATE_PARENT,
   .ops = &clk_branch2_ops,
  },
 },
};

static struct clk_branch camss_vfe1_clk = {
 .halt_reg = 0x36ac,
 .clkr = {
  .enable_reg = 0x36ac,
  .enable_mask = BIT(0),
  .hw.init = &(struct clk_init_data){
   .name = "camss_vfe1_clk",
   .parent_hws = (const struct clk_hw*[]){
    &vfe1_clk_src.clkr.hw
   },
   .num_parents = 1,
   .flags = CLK_SET_RATE_PARENT,
   .ops = &clk_branch2_ops,
  },
 },
};

static struct clk_branch camss_vfe1_stream_clk = {
 .halt_reg = 0x3724,
 .clkr = {
  .enable_reg = 0x3724,
  .enable_mask = BIT(0),
  .hw.init = &(struct clk_init_data){
   .name = "camss_vfe1_stream_clk",
   .parent_hws = (const struct clk_hw*[]){
    &vfe1_clk_src.clkr.hw
   },
   .num_parents = 1,
   .flags = CLK_SET_RATE_PARENT,
   .ops = &clk_branch2_ops,
  },
 },
};

static struct clk_branch camss_vfe1_ahb_clk = {
 .halt_reg = 0x3678,
 .clkr = {
  .enable_reg = 0x3678,
  .enable_mask = BIT(0),
  .hw.init = &(struct clk_init_data){
   .name = "camss_vfe1_ahb_clk",
   .parent_hws = (const struct clk_hw*[]){
    &ahb_clk_src.clkr.hw
   },
   .num_parents = 1,
   .flags = CLK_SET_RATE_PARENT,
   .ops = &clk_branch2_ops,
  },
 },
};

static struct clk_branch camss_csi_vfe0_clk = {
 .halt_reg = 0x3704,
 .clkr = {
  .enable_reg = 0x3704,
  .enable_mask = BIT(0),
  .hw.init = &(struct clk_init_data){
   .name = "camss_csi_vfe0_clk",
   .parent_hws = (const struct clk_hw*[]){
    &vfe0_clk_src.clkr.hw
   },
   .num_parents = 1,
   .flags = CLK_SET_RATE_PARENT,
   .ops = &clk_branch2_ops,
  },
 },
};

--> --------------------

--> maximum size reached

--> --------------------

Messung V0.5
C=100 H=100 G=100

¤ Dauer der Verarbeitung: 0.26 Sekunden  (vorverarbeitet)  ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

Beweissystem der NASA

Beweissystem Isabelle

NIST Cobol Testsuite

Cephes Mathematical Library

Wiener Entwicklungsmethode

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.