linux/drivers/clk/qcom/dispcc-sc8280xp.c

// SPDX-License-Identifier: GPL-2.0-only
/*
 * Copyright (c) 2021, The Linux Foundation. All rights reserved.
 * Copyright (c) 2022, Linaro Ltd.
 */

#include <linux/clk-provider.h>
#include <linux/module.h>
#include <linux/platform_device.h>
#include <linux/property.h>
#include <linux/pm_clock.h>
#include <linux/pm_runtime.h>
#include <linux/regmap.h>
#include <linux/reset-controller.h>

#include <dt-bindings/clock/qcom,dispcc-sc8280xp.h>

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

/* Need to match the order of clocks in DT binding */
enum {};

enum {};

static const struct clk_parent_data parent_data_tcxo =;

static const struct pll_vco lucid_5lpe_vco[] =;

static const struct alpha_pll_config disp_cc_pll0_config =;

static struct clk_alpha_pll disp0_cc_pll0 =;

static struct clk_alpha_pll disp1_cc_pll0 =;

static const struct alpha_pll_config disp_cc_pll1_config =;

static struct clk_alpha_pll disp0_cc_pll1 =;

static struct clk_alpha_pll disp1_cc_pll1 =;

static const struct clk_div_table post_div_table_disp_cc_pll1_out_even[] =;

static struct clk_alpha_pll_postdiv disp0_cc_pll1_out_even =;

static struct clk_alpha_pll_postdiv disp1_cc_pll1_out_even =;

static const struct alpha_pll_config disp_cc_pll2_config =;

static struct clk_alpha_pll disp0_cc_pll2 =;

static struct clk_alpha_pll disp1_cc_pll2 =;

static const struct parent_map disp_cc_parent_map_0[] =;

static const struct clk_parent_data disp0_cc_parent_data_0[] =;

static const struct clk_parent_data disp1_cc_parent_data_0[] =;

static const struct parent_map disp_cc_parent_map_1[] =;

static const struct clk_parent_data disp0_cc_parent_data_1[] =;

static const struct clk_parent_data disp1_cc_parent_data_1[] =;

static const struct parent_map disp_cc_parent_map_2[] =;

static const struct clk_parent_data disp_cc_parent_data_2[] =;

static const struct parent_map disp_cc_parent_map_3[] =;

static const struct clk_parent_data disp_cc_parent_data_3[] =;

static const struct parent_map disp_cc_parent_map_4[] =;

static const struct clk_parent_data disp_cc_parent_data_4[] =;

static const struct parent_map disp_cc_parent_map_5[] =;

static const struct clk_parent_data disp0_cc_parent_data_5[] =;

static const struct clk_parent_data disp1_cc_parent_data_5[] =;

static const struct parent_map disp_cc_parent_map_6[] =;

static const struct clk_parent_data disp0_cc_parent_data_6[] =;

static const struct clk_parent_data disp1_cc_parent_data_6[] =;

static const struct parent_map disp_cc_parent_map_7[] =;

static const struct clk_parent_data disp_cc_parent_data_7[] =;

static const struct freq_tbl ftbl_disp_cc_mdss_ahb_clk_src[] =;

static struct clk_rcg2 disp0_cc_mdss_ahb_clk_src =;

static struct clk_rcg2 disp1_cc_mdss_ahb_clk_src =;

static const struct freq_tbl ftbl_disp_cc_mdss_byte0_clk_src[] =;

static struct clk_rcg2 disp0_cc_mdss_byte0_clk_src =;

static struct clk_rcg2 disp1_cc_mdss_byte0_clk_src =;

static struct clk_rcg2 disp0_cc_mdss_byte1_clk_src =;

static struct clk_rcg2 disp1_cc_mdss_byte1_clk_src =;

static struct clk_rcg2 disp0_cc_mdss_dptx0_aux_clk_src =;

static struct clk_rcg2 disp1_cc_mdss_dptx0_aux_clk_src =;

static struct clk_rcg2 disp0_cc_mdss_dptx0_link_clk_src =;

static struct clk_rcg2 disp1_cc_mdss_dptx0_link_clk_src =;

static struct clk_rcg2 disp0_cc_mdss_dptx0_pixel0_clk_src =;

static struct clk_rcg2 disp1_cc_mdss_dptx0_pixel0_clk_src =;

static struct clk_rcg2 disp0_cc_mdss_dptx0_pixel1_clk_src =;

static struct clk_rcg2 disp1_cc_mdss_dptx0_pixel1_clk_src =;

static struct clk_rcg2 disp0_cc_mdss_dptx1_aux_clk_src =;

static struct clk_rcg2 disp1_cc_mdss_dptx1_aux_clk_src =;

static struct clk_rcg2 disp0_cc_mdss_dptx1_link_clk_src =;

static struct clk_rcg2 disp1_cc_mdss_dptx1_link_clk_src =;

static struct clk_rcg2 disp0_cc_mdss_dptx1_pixel0_clk_src =;

static struct clk_rcg2 disp1_cc_mdss_dptx1_pixel0_clk_src =;

static struct clk_rcg2 disp0_cc_mdss_dptx1_pixel1_clk_src =;

static struct clk_rcg2 disp1_cc_mdss_dptx1_pixel1_clk_src =;

static struct clk_rcg2 disp0_cc_mdss_dptx2_aux_clk_src =;

static struct clk_rcg2 disp1_cc_mdss_dptx2_aux_clk_src =;

static struct clk_rcg2 disp0_cc_mdss_dptx2_link_clk_src =;

static struct clk_rcg2 disp1_cc_mdss_dptx2_link_clk_src =;

static struct clk_rcg2 disp0_cc_mdss_dptx2_pixel0_clk_src =;

static struct clk_rcg2 disp1_cc_mdss_dptx2_pixel0_clk_src =;

static struct clk_rcg2 disp0_cc_mdss_dptx2_pixel1_clk_src =;

static struct clk_rcg2 disp1_cc_mdss_dptx2_pixel1_clk_src =;

static struct clk_rcg2 disp0_cc_mdss_dptx3_aux_clk_src =;

static struct clk_rcg2 disp1_cc_mdss_dptx3_aux_clk_src =;

static struct clk_rcg2 disp0_cc_mdss_dptx3_link_clk_src =;

static struct clk_rcg2 disp1_cc_mdss_dptx3_link_clk_src =;

static struct clk_rcg2 disp0_cc_mdss_dptx3_pixel0_clk_src =;

static struct clk_rcg2 disp1_cc_mdss_dptx3_pixel0_clk_src =;

static struct clk_rcg2 disp0_cc_mdss_esc0_clk_src =;

static struct clk_rcg2 disp1_cc_mdss_esc0_clk_src =;

static struct clk_rcg2 disp0_cc_mdss_esc1_clk_src =;

static struct clk_rcg2 disp1_cc_mdss_esc1_clk_src =;

static const struct freq_tbl ftbl_disp_cc_mdss_mdp_clk_src[] =;

static struct clk_rcg2 disp0_cc_mdss_mdp_clk_src =;

static struct clk_rcg2 disp1_cc_mdss_mdp_clk_src =;

static struct clk_rcg2 disp0_cc_mdss_pclk0_clk_src =;

static struct clk_rcg2 disp1_cc_mdss_pclk0_clk_src =;

static struct clk_rcg2 disp0_cc_mdss_pclk1_clk_src =;

static struct clk_rcg2 disp1_cc_mdss_pclk1_clk_src =;

static const struct freq_tbl ftbl_disp_cc_mdss_rot_clk_src[] =;

static struct clk_rcg2 disp0_cc_mdss_rot_clk_src =;

static struct clk_rcg2 disp1_cc_mdss_rot_clk_src =;

static struct clk_rcg2 disp0_cc_mdss_vsync_clk_src =;

static struct clk_rcg2 disp1_cc_mdss_vsync_clk_src =;

static const struct freq_tbl ftbl_disp_cc_sleep_clk_src[] =;

static struct clk_rcg2 disp0_cc_sleep_clk_src =;

static struct clk_rcg2 disp1_cc_sleep_clk_src =;

static struct clk_regmap_div disp0_cc_mdss_byte0_div_clk_src =;

static struct clk_regmap_div disp1_cc_mdss_byte0_div_clk_src =;

static struct clk_regmap_div disp0_cc_mdss_byte1_div_clk_src =;

static struct clk_regmap_div disp1_cc_mdss_byte1_div_clk_src =;

static struct clk_regmap_div disp0_cc_mdss_dptx0_link_div_clk_src =;

static struct clk_regmap_div disp1_cc_mdss_dptx0_link_div_clk_src =;

static struct clk_regmap_div disp0_cc_mdss_dptx1_link_div_clk_src =;

static struct clk_regmap_div disp1_cc_mdss_dptx1_link_div_clk_src =;

static struct clk_regmap_div disp0_cc_mdss_dptx2_link_div_clk_src =;

static struct clk_regmap_div disp1_cc_mdss_dptx2_link_div_clk_src =;

static struct clk_regmap_div disp0_cc_mdss_dptx3_link_div_clk_src =;

static struct clk_regmap_div disp1_cc_mdss_dptx3_link_div_clk_src =;

static struct clk_branch disp0_cc_mdss_ahb1_clk =;

static struct clk_branch disp1_cc_mdss_ahb1_clk =;

static struct clk_branch disp0_cc_mdss_ahb_clk =;

static struct clk_branch disp1_cc_mdss_ahb_clk =;

static struct clk_branch disp0_cc_mdss_byte0_clk =;

static struct clk_branch disp1_cc_mdss_byte0_clk =;

static struct clk_branch disp0_cc_mdss_byte0_intf_clk =;

static struct clk_branch disp1_cc_mdss_byte0_intf_clk =;

static struct clk_branch disp0_cc_mdss_byte1_clk =;

static struct clk_branch disp1_cc_mdss_byte1_clk =;

static struct clk_branch disp0_cc_mdss_byte1_intf_clk =;

static struct clk_branch disp1_cc_mdss_byte1_intf_clk =;

static struct clk_branch disp0_cc_mdss_dptx0_aux_clk =;

static struct clk_branch disp1_cc_mdss_dptx0_aux_clk =;

static struct clk_branch disp0_cc_mdss_dptx0_link_clk =;

static struct clk_branch disp1_cc_mdss_dptx0_link_clk =;

static struct clk_branch disp0_cc_mdss_dptx0_link_intf_clk =;

static struct clk_branch disp1_cc_mdss_dptx0_link_intf_clk =;

static struct clk_branch disp0_cc_mdss_dptx0_pixel0_clk =;

static struct clk_branch disp1_cc_mdss_dptx0_pixel0_clk =;

static struct clk_branch disp0_cc_mdss_dptx0_pixel1_clk =;

static struct clk_branch disp1_cc_mdss_dptx0_pixel1_clk =;

static struct clk_branch disp0_cc_mdss_dptx0_usb_router_link_intf_clk =;

static struct clk_branch disp1_cc_mdss_dptx0_usb_router_link_intf_clk =;

static struct clk_branch disp0_cc_mdss_dptx1_aux_clk =;

static struct clk_branch disp1_cc_mdss_dptx1_aux_clk =;

static struct clk_branch disp0_cc_mdss_dptx1_link_clk =;

static struct clk_branch disp1_cc_mdss_dptx1_link_clk =;

static struct clk_branch disp0_cc_mdss_dptx1_link_intf_clk =;

static struct clk_branch disp1_cc_mdss_dptx1_link_intf_clk =;

static struct clk_branch disp0_cc_mdss_dptx1_pixel0_clk =;

static struct clk_branch disp1_cc_mdss_dptx1_pixel0_clk =;

static struct clk_branch disp0_cc_mdss_dptx1_pixel1_clk =;

static struct clk_branch disp1_cc_mdss_dptx1_pixel1_clk =;

static struct clk_branch disp0_cc_mdss_dptx1_usb_router_link_intf_clk =;

static struct clk_branch disp1_cc_mdss_dptx1_usb_router_link_intf_clk =;

static struct clk_branch disp0_cc_mdss_dptx2_aux_clk =;

static struct clk_branch disp1_cc_mdss_dptx2_aux_clk =;

static struct clk_branch disp0_cc_mdss_dptx2_link_clk =;

static struct clk_branch disp1_cc_mdss_dptx2_link_clk =;

static struct clk_branch disp0_cc_mdss_dptx2_link_intf_clk =;

static struct clk_branch disp1_cc_mdss_dptx2_link_intf_clk =;

static struct clk_branch disp0_cc_mdss_dptx2_pixel0_clk =;

static struct clk_branch disp1_cc_mdss_dptx2_pixel0_clk =;

static struct clk_branch disp0_cc_mdss_dptx2_pixel1_clk =;

static struct clk_branch disp1_cc_mdss_dptx2_pixel1_clk =;

static struct clk_branch disp0_cc_mdss_dptx3_aux_clk =;

static struct clk_branch disp1_cc_mdss_dptx3_aux_clk =;

static struct clk_branch disp0_cc_mdss_dptx3_link_clk =;

static struct clk_branch disp1_cc_mdss_dptx3_link_clk =;

static struct clk_branch disp0_cc_mdss_dptx3_link_intf_clk =;

static struct clk_branch disp1_cc_mdss_dptx3_link_intf_clk =;

static struct clk_branch disp0_cc_mdss_dptx3_pixel0_clk =;

static struct clk_branch disp1_cc_mdss_dptx3_pixel0_clk =;

static struct clk_branch disp0_cc_mdss_esc0_clk =;

static struct clk_branch disp1_cc_mdss_esc0_clk =;

static struct clk_branch disp0_cc_mdss_esc1_clk =;

static struct clk_branch disp1_cc_mdss_esc1_clk =;

static struct clk_branch disp0_cc_mdss_mdp1_clk =;

static struct clk_branch disp1_cc_mdss_mdp1_clk =;

static struct clk_branch disp0_cc_mdss_mdp_clk =;

static struct clk_branch disp1_cc_mdss_mdp_clk =;

static struct clk_branch disp0_cc_mdss_mdp_lut1_clk =;

static struct clk_branch disp1_cc_mdss_mdp_lut1_clk =;

static struct clk_branch disp0_cc_mdss_mdp_lut_clk =;

static struct clk_branch disp1_cc_mdss_mdp_lut_clk =;

static struct clk_branch disp0_cc_mdss_non_gdsc_ahb_clk =;

static struct clk_branch disp1_cc_mdss_non_gdsc_ahb_clk =;

static struct clk_branch disp0_cc_mdss_pclk0_clk =;

static struct clk_branch disp1_cc_mdss_pclk0_clk =;

static struct clk_branch disp0_cc_mdss_pclk1_clk =;

static struct clk_branch disp1_cc_mdss_pclk1_clk =;

static struct clk_branch disp0_cc_mdss_rot1_clk =;

static struct clk_branch disp1_cc_mdss_rot1_clk =;

static struct clk_branch disp0_cc_mdss_rot_clk =;

static struct clk_branch disp1_cc_mdss_rot_clk =;

static struct clk_branch disp0_cc_mdss_rscc_ahb_clk =;

static struct clk_branch disp1_cc_mdss_rscc_ahb_clk =;

static struct clk_branch disp0_cc_mdss_rscc_vsync_clk =;

static struct clk_branch disp1_cc_mdss_rscc_vsync_clk =;

static struct clk_branch disp0_cc_mdss_vsync1_clk =;

static struct clk_branch disp1_cc_mdss_vsync1_clk =;

static struct clk_branch disp0_cc_mdss_vsync_clk =;

static struct clk_branch disp1_cc_mdss_vsync_clk =;

static struct clk_branch disp0_cc_sleep_clk =;

static struct clk_branch disp1_cc_sleep_clk =;

static struct clk_regmap *disp0_cc_sc8280xp_clocks[] =;

static struct clk_regmap *disp1_cc_sc8280xp_clocks[] =;

static const struct qcom_reset_map disp_cc_sc8280xp_resets[] =;

static struct gdsc disp0_mdss_gdsc =;

static struct gdsc disp1_mdss_gdsc =;

static struct gdsc disp0_mdss_int2_gdsc =;

static struct gdsc disp1_mdss_int2_gdsc =;

static struct gdsc *disp0_cc_sc8280xp_gdscs[] =;

static struct gdsc *disp1_cc_sc8280xp_gdscs[] =;

static const struct regmap_config disp_cc_sc8280xp_regmap_config =;

static struct qcom_cc_desc disp0_cc_sc8280xp_desc =;

static struct qcom_cc_desc disp1_cc_sc8280xp_desc =;

#define clkr_to_alpha_clk_pll(_clkr)

static int disp_cc_sc8280xp_probe(struct platform_device *pdev)
{}

static const struct of_device_id disp_cc_sc8280xp_match_table[] =;
MODULE_DEVICE_TABLE(of, disp_cc_sc8280xp_match_table);

static struct platform_driver disp_cc_sc8280xp_driver =;

module_platform_driver();

MODULE_DESCRIPTION();
MODULE_LICENSE();