linux/drivers/clk/qcom/gcc-qcm2290.c

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

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

#include <dt-bindings/clock/qcom,gcc-qcm2290.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"

enum {};

static const struct pll_vco brammo_vco[] =;

static const struct pll_vco default_vco[] =;

static const struct pll_vco spark_vco[] =;

static struct clk_alpha_pll gpll0 =;

static const struct clk_div_table post_div_table_gpll0_out_aux2[] =;

static struct clk_alpha_pll_postdiv gpll0_out_aux2 =;

static struct clk_alpha_pll gpll1 =;

/* 1152MHz configuration */
static const struct alpha_pll_config gpll10_config =;

static struct clk_alpha_pll gpll10 =;

/* 532MHz configuration */
static const struct alpha_pll_config gpll11_config =;

static struct clk_alpha_pll gpll11 =;

static struct clk_alpha_pll gpll3 =;

static const struct clk_div_table post_div_table_gpll3_out_main[] =;

static struct clk_alpha_pll_postdiv gpll3_out_main =;

static struct clk_alpha_pll gpll4 =;

static struct clk_alpha_pll gpll5 =;

static struct clk_alpha_pll gpll6 =;

static const struct clk_div_table post_div_table_gpll6_out_main[] =;

static struct clk_alpha_pll_postdiv gpll6_out_main =;

static struct clk_alpha_pll gpll7 =;

/* 533.2MHz configuration */
static const struct alpha_pll_config gpll8_config =;

static struct clk_alpha_pll gpll8 =;

static const struct clk_div_table post_div_table_gpll8_out_main[] =;

static struct clk_alpha_pll_postdiv gpll8_out_main =;

/* 1152MHz configuration */
static const struct alpha_pll_config gpll9_config =;

static struct clk_alpha_pll gpll9 =;

static const struct clk_div_table post_div_table_gpll9_out_main[] =;

static struct clk_alpha_pll_postdiv gpll9_out_main =;

static const struct parent_map gcc_parent_map_0[] =;

static const struct clk_parent_data gcc_parents_0[] =;

static const struct parent_map gcc_parent_map_1[] =;

static const struct clk_parent_data gcc_parents_1[] =;

static const struct parent_map gcc_parent_map_2[] =;

static const struct clk_parent_data gcc_parents_2[] =;

static const struct parent_map gcc_parent_map_3[] =;

static const struct clk_parent_data gcc_parents_3[] =;

static const struct parent_map gcc_parent_map_4[] =;

static const struct clk_parent_data gcc_parents_4[] =;

static const struct parent_map gcc_parent_map_5[] =;

static const struct clk_parent_data gcc_parents_5[] =;

static const struct parent_map gcc_parent_map_6[] =;

static const struct clk_parent_data gcc_parents_6[] =;

static const struct parent_map gcc_parent_map_7[] =;

static const struct clk_parent_data gcc_parents_7[] =;

static const struct parent_map gcc_parent_map_8[] =;

static const struct clk_parent_data gcc_parents_8[] =;

static const struct parent_map gcc_parent_map_9[] =;

static const struct clk_parent_data gcc_parents_9[] =;

static const struct parent_map gcc_parent_map_10[] =;

static const struct clk_parent_data gcc_parents_10[] =;

static const struct parent_map gcc_parent_map_12[] =;

static const struct clk_parent_data gcc_parents_12[] =;

static const struct parent_map gcc_parent_map_13[] =;

static const struct clk_parent_data gcc_parents_13[] =;

static const struct parent_map gcc_parent_map_14[] =;

static const struct clk_parent_data gcc_parents_14[] =;

static const struct freq_tbl ftbl_gcc_usb30_prim_mock_utmi_clk_src[] =;

static struct clk_rcg2 gcc_usb30_prim_mock_utmi_clk_src =;

static struct clk_regmap_div gcc_usb30_prim_mock_utmi_postdiv =;

static const struct freq_tbl ftbl_gcc_camss_axi_clk_src[] =;

static struct clk_rcg2 gcc_camss_axi_clk_src =;

static const struct freq_tbl ftbl_gcc_camss_cci_clk_src[] =;

static struct clk_rcg2 gcc_camss_cci_clk_src =;

static const struct freq_tbl ftbl_gcc_camss_csi0phytimer_clk_src[] =;

static struct clk_rcg2 gcc_camss_csi0phytimer_clk_src =;

static struct clk_rcg2 gcc_camss_csi1phytimer_clk_src =;

static const struct freq_tbl ftbl_gcc_camss_mclk0_clk_src[] =;

static struct clk_rcg2 gcc_camss_mclk0_clk_src =;

static struct clk_rcg2 gcc_camss_mclk1_clk_src =;

static struct clk_rcg2 gcc_camss_mclk2_clk_src =;

static struct clk_rcg2 gcc_camss_mclk3_clk_src =;

static const struct freq_tbl ftbl_gcc_camss_ope_ahb_clk_src[] =;

static struct clk_rcg2 gcc_camss_ope_ahb_clk_src =;

static const struct freq_tbl ftbl_gcc_camss_ope_clk_src[] =;

static struct clk_rcg2 gcc_camss_ope_clk_src =;

static const struct freq_tbl ftbl_gcc_camss_tfe_0_clk_src[] =;

static struct clk_rcg2 gcc_camss_tfe_0_clk_src =;

static const struct freq_tbl ftbl_gcc_camss_tfe_0_csid_clk_src[] =;

static struct clk_rcg2 gcc_camss_tfe_0_csid_clk_src =;

static struct clk_rcg2 gcc_camss_tfe_1_clk_src =;

static struct clk_rcg2 gcc_camss_tfe_1_csid_clk_src =;

static const struct freq_tbl ftbl_gcc_camss_tfe_cphy_rx_clk_src[] =;

static struct clk_rcg2 gcc_camss_tfe_cphy_rx_clk_src =;

static const struct freq_tbl ftbl_gcc_camss_top_ahb_clk_src[] =;

static struct clk_rcg2 gcc_camss_top_ahb_clk_src =;

static const struct freq_tbl ftbl_gcc_gp1_clk_src[] =;

static struct clk_rcg2 gcc_gp1_clk_src =;

static struct clk_rcg2 gcc_gp2_clk_src =;

static struct clk_rcg2 gcc_gp3_clk_src =;

static const struct freq_tbl ftbl_gcc_pdm2_clk_src[] =;

static struct clk_rcg2 gcc_pdm2_clk_src =;

static const struct freq_tbl ftbl_gcc_qupv3_wrap0_s0_clk_src[] =;

static struct clk_init_data gcc_qupv3_wrap0_s0_clk_src_init =;

static struct clk_rcg2 gcc_qupv3_wrap0_s0_clk_src =;

static struct clk_init_data gcc_qupv3_wrap0_s1_clk_src_init =;

static struct clk_rcg2 gcc_qupv3_wrap0_s1_clk_src =;

static struct clk_init_data gcc_qupv3_wrap0_s2_clk_src_init =;

static struct clk_rcg2 gcc_qupv3_wrap0_s2_clk_src =;

static struct clk_init_data gcc_qupv3_wrap0_s3_clk_src_init =;

static struct clk_rcg2 gcc_qupv3_wrap0_s3_clk_src =;

static struct clk_init_data gcc_qupv3_wrap0_s4_clk_src_init =;

static struct clk_rcg2 gcc_qupv3_wrap0_s4_clk_src =;

static struct clk_init_data gcc_qupv3_wrap0_s5_clk_src_init =;

static struct clk_rcg2 gcc_qupv3_wrap0_s5_clk_src =;

static const struct freq_tbl ftbl_gcc_sdcc1_apps_clk_src[] =;

static struct clk_rcg2 gcc_sdcc1_apps_clk_src =;

static const struct freq_tbl ftbl_gcc_sdcc1_ice_core_clk_src[] =;

static struct clk_rcg2 gcc_sdcc1_ice_core_clk_src =;

static const struct freq_tbl ftbl_gcc_sdcc2_apps_clk_src[] =;

static struct clk_rcg2 gcc_sdcc2_apps_clk_src =;

static const struct freq_tbl ftbl_gcc_usb30_prim_master_clk_src[] =;

static struct clk_rcg2 gcc_usb30_prim_master_clk_src =;

static struct clk_rcg2 gcc_usb3_prim_phy_aux_clk_src =;

static const struct freq_tbl ftbl_gcc_video_venus_clk_src[] =;

static struct clk_rcg2 gcc_video_venus_clk_src =;

static struct clk_branch gcc_ahb2phy_csi_clk =;

static struct clk_branch gcc_ahb2phy_usb_clk =;

static struct clk_branch gcc_bimc_gpu_axi_clk =;

static struct clk_branch gcc_boot_rom_ahb_clk =;

static struct clk_branch gcc_cam_throttle_nrt_clk =;

static struct clk_branch gcc_cam_throttle_rt_clk =;

static struct clk_branch gcc_camera_ahb_clk =;

static struct clk_branch gcc_camera_xo_clk =;

static struct clk_branch gcc_camss_axi_clk =;

static struct clk_branch gcc_camss_camnoc_atb_clk =;

static struct clk_branch gcc_camss_camnoc_nts_xo_clk =;

static struct clk_branch gcc_camss_cci_0_clk =;

static struct clk_branch gcc_camss_cphy_0_clk =;

static struct clk_branch gcc_camss_cphy_1_clk =;

static struct clk_branch gcc_camss_csi0phytimer_clk =;

static struct clk_branch gcc_camss_csi1phytimer_clk =;

static struct clk_branch gcc_camss_mclk0_clk =;

static struct clk_branch gcc_camss_mclk1_clk =;

static struct clk_branch gcc_camss_mclk2_clk =;

static struct clk_branch gcc_camss_mclk3_clk =;

static struct clk_branch gcc_camss_nrt_axi_clk =;

static struct clk_branch gcc_camss_ope_ahb_clk =;

static struct clk_branch gcc_camss_ope_clk =;

static struct clk_branch gcc_camss_rt_axi_clk =;

static struct clk_branch gcc_camss_tfe_0_clk =;

static struct clk_branch gcc_camss_tfe_0_cphy_rx_clk =;

static struct clk_branch gcc_camss_tfe_0_csid_clk =;

static struct clk_branch gcc_camss_tfe_1_clk =;

static struct clk_branch gcc_camss_tfe_1_cphy_rx_clk =;

static struct clk_branch gcc_camss_tfe_1_csid_clk =;

static struct clk_branch gcc_camss_top_ahb_clk =;

static struct clk_branch gcc_cfg_noc_usb3_prim_axi_clk =;

static struct clk_branch gcc_disp_ahb_clk =;

static struct clk_regmap_div gcc_disp_gpll0_clk_src =;

static struct clk_branch gcc_disp_gpll0_div_clk_src =;

static struct clk_branch gcc_disp_hf_axi_clk =;

static struct clk_branch gcc_disp_throttle_core_clk =;

static struct clk_branch gcc_disp_xo_clk =;

static struct clk_branch gcc_gp1_clk =;

static struct clk_branch gcc_gp2_clk =;

static struct clk_branch gcc_gp3_clk =;

static struct clk_branch gcc_gpu_cfg_ahb_clk =;

static struct clk_branch gcc_gpu_gpll0_clk_src =;

static struct clk_branch gcc_gpu_gpll0_div_clk_src =;

static struct clk_branch gcc_gpu_iref_clk =;

static struct clk_branch gcc_gpu_memnoc_gfx_clk =;

static struct clk_branch gcc_gpu_snoc_dvm_gfx_clk =;

static struct clk_branch gcc_gpu_throttle_core_clk =;

static struct clk_branch gcc_pdm2_clk =;

static struct clk_branch gcc_pdm_ahb_clk =;

static struct clk_branch gcc_pdm_xo4_clk =;

static struct clk_branch gcc_pwm0_xo512_clk =;

static struct clk_branch gcc_qmip_camera_nrt_ahb_clk =;

static struct clk_branch gcc_qmip_camera_rt_ahb_clk =;

static struct clk_branch gcc_qmip_disp_ahb_clk =;

static struct clk_branch gcc_qmip_gpu_cfg_ahb_clk =;

static struct clk_branch gcc_qmip_video_vcodec_ahb_clk =;

static struct clk_branch gcc_qupv3_wrap0_core_2x_clk =;

static struct clk_branch gcc_qupv3_wrap0_core_clk =;

static struct clk_branch gcc_qupv3_wrap0_s0_clk =;

static struct clk_branch gcc_qupv3_wrap0_s1_clk =;

static struct clk_branch gcc_qupv3_wrap0_s2_clk =;

static struct clk_branch gcc_qupv3_wrap0_s3_clk =;

static struct clk_branch gcc_qupv3_wrap0_s4_clk =;

static struct clk_branch gcc_qupv3_wrap0_s5_clk =;

static struct clk_branch gcc_qupv3_wrap_0_m_ahb_clk =;

static struct clk_branch gcc_qupv3_wrap_0_s_ahb_clk =;

static struct clk_branch gcc_sdcc1_ahb_clk =;

static struct clk_branch gcc_sdcc1_apps_clk =;

static struct clk_branch gcc_sdcc1_ice_core_clk =;

static struct clk_branch gcc_sdcc2_ahb_clk =;

static struct clk_branch gcc_sdcc2_apps_clk =;

static struct clk_branch gcc_sys_noc_cpuss_ahb_clk =;

static struct clk_branch gcc_sys_noc_usb3_prim_axi_clk =;

static struct clk_branch gcc_usb30_prim_master_clk =;

static struct clk_branch gcc_usb30_prim_mock_utmi_clk =;

static struct clk_branch gcc_usb30_prim_sleep_clk =;

static struct clk_branch gcc_usb3_prim_clkref_clk =;

static struct clk_branch gcc_usb3_prim_phy_com_aux_clk =;

static struct clk_branch gcc_usb3_prim_phy_pipe_clk =;

static struct clk_branch gcc_vcodec0_axi_clk =;

static struct clk_branch gcc_venus_ahb_clk =;

static struct clk_branch gcc_venus_ctl_axi_clk =;

static struct clk_branch gcc_video_ahb_clk =;

static struct clk_branch gcc_video_axi0_clk =;

static struct clk_branch gcc_video_throttle_core_clk =;

static struct clk_branch gcc_video_vcodec0_sys_clk =;

static struct clk_branch gcc_video_venus_ctl_clk =;

static struct clk_branch gcc_video_xo_clk =;

static struct gdsc gcc_camss_top_gdsc =;

static struct gdsc gcc_usb30_prim_gdsc =;

static struct gdsc gcc_vcodec0_gdsc =;

static struct gdsc gcc_venus_gdsc =;

static struct gdsc hlos1_vote_turing_mmu_tbu1_gdsc =;

static struct gdsc hlos1_vote_turing_mmu_tbu0_gdsc =;

static struct gdsc hlos1_vote_mm_snoc_mmu_tbu_rt_gdsc =;

static struct gdsc hlos1_vote_mm_snoc_mmu_tbu_nrt_gdsc =;

static struct clk_regmap *gcc_qcm2290_clocks[] =;

static const struct qcom_reset_map gcc_qcm2290_resets[] =;

static struct gdsc *gcc_qcm2290_gdscs[] =;

static const struct clk_rcg_dfs_data gcc_dfs_clocks[] =;

static const struct regmap_config gcc_qcm2290_regmap_config =;

static const struct qcom_cc_desc gcc_qcm2290_desc =;

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

static int gcc_qcm2290_probe(struct platform_device *pdev)
{}

static struct platform_driver gcc_qcm2290_driver =;

static int __init gcc_qcm2290_init(void)
{}
subsys_initcall(gcc_qcm2290_init);

static void __exit gcc_qcm2290_exit(void)
{}
module_exit(gcc_qcm2290_exit);

MODULE_DESCRIPTION();
MODULE_LICENSE();