#include <linux/clk-provider.h>
#include <linux/module.h>
#include <linux/of.h>
#include <linux/platform_device.h>
#include <linux/regmap.h>
#include <dt-bindings/clock/qcom,qdu1000-gcc.h>
#include "clk-alpha-pll.h"
#include "clk-branch.h"
#include "clk-rcg.h"
#include "clk-regmap.h"
#include "clk-regmap-divider.h"
#include "clk-regmap-mux.h"
#include "clk-regmap-phy-mux.h"
#include "gdsc.h"
#include "reset.h"
enum { … };
enum { … };
static struct clk_alpha_pll gcc_gpll0 = …;
static const struct clk_div_table post_div_table_gcc_gpll0_out_even[] = …;
static struct clk_alpha_pll_postdiv gcc_gpll0_out_even = …;
static struct clk_alpha_pll gcc_gpll1 = …;
static struct clk_alpha_pll_postdiv gcc_gpll1_out_even = …;
static struct clk_alpha_pll gcc_gpll2 = …;
static struct clk_alpha_pll_postdiv gcc_gpll2_out_even = …;
static struct clk_alpha_pll gcc_gpll3 = …;
static struct clk_alpha_pll gcc_gpll4 = …;
static struct clk_alpha_pll gcc_gpll5 = …;
static struct clk_alpha_pll_postdiv gcc_gpll5_out_even = …;
static struct clk_alpha_pll gcc_gpll6 = …;
static struct clk_alpha_pll gcc_gpll7 = …;
static struct clk_alpha_pll gcc_gpll8 = …;
static const struct parent_map gcc_parent_map_0[] = …;
static const struct clk_parent_data gcc_parent_data_0[] = …;
static const struct parent_map gcc_parent_map_1[] = …;
static const struct clk_parent_data gcc_parent_data_1[] = …;
static const struct parent_map gcc_parent_map_2[] = …;
static const struct clk_parent_data gcc_parent_data_2[] = …;
static const struct parent_map gcc_parent_map_3[] = …;
static const struct clk_parent_data gcc_parent_data_3[] = …;
static const struct parent_map gcc_parent_map_4[] = …;
static const struct clk_parent_data gcc_parent_data_4[] = …;
static const struct parent_map gcc_parent_map_5[] = …;
static const struct clk_parent_data gcc_parent_data_5[] = …;
static const struct parent_map gcc_parent_map_6[] = …;
static const struct clk_parent_data gcc_parent_data_6[] = …;
static const struct parent_map gcc_parent_map_8[] = …;
static const struct clk_parent_data gcc_parent_data_8[] = …;
static const struct parent_map gcc_parent_map_9[] = …;
static const struct clk_parent_data gcc_parent_data_9[] = …;
static const struct parent_map gcc_parent_map_10[] = …;
static const struct clk_parent_data gcc_parent_data_10[] = …;
static struct clk_regmap_mux gcc_pcie_0_phy_aux_clk_src = …;
static struct clk_regmap_phy_mux gcc_pcie_0_pipe_clk_src = …;
static struct clk_regmap_mux gcc_usb3_prim_phy_pipe_clk_src = …;
static const struct freq_tbl ftbl_gcc_aggre_noc_ecpri_dma_clk_src[] = …;
static struct clk_rcg2 gcc_aggre_noc_ecpri_dma_clk_src = …;
static const struct freq_tbl ftbl_gcc_aggre_noc_ecpri_gsi_clk_src[] = …;
static struct clk_rcg2 gcc_aggre_noc_ecpri_gsi_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_pcie_0_aux_clk_src[] = …;
static struct clk_rcg2 gcc_pcie_0_aux_clk_src = …;
static const struct freq_tbl ftbl_gcc_pcie_0_phy_rchng_clk_src[] = …;
static struct clk_rcg2 gcc_pcie_0_phy_rchng_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 const struct freq_tbl ftbl_gcc_qupv3_wrap0_s5_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 struct clk_init_data gcc_qupv3_wrap0_s6_clk_src_init = …;
static struct clk_rcg2 gcc_qupv3_wrap0_s6_clk_src = …;
static struct clk_init_data gcc_qupv3_wrap0_s7_clk_src_init = …;
static struct clk_rcg2 gcc_qupv3_wrap0_s7_clk_src = …;
static struct clk_init_data gcc_qupv3_wrap1_s0_clk_src_init = …;
static struct clk_rcg2 gcc_qupv3_wrap1_s0_clk_src = …;
static struct clk_init_data gcc_qupv3_wrap1_s1_clk_src_init = …;
static struct clk_rcg2 gcc_qupv3_wrap1_s1_clk_src = …;
static struct clk_init_data gcc_qupv3_wrap1_s2_clk_src_init = …;
static struct clk_rcg2 gcc_qupv3_wrap1_s2_clk_src = …;
static struct clk_init_data gcc_qupv3_wrap1_s3_clk_src_init = …;
static struct clk_rcg2 gcc_qupv3_wrap1_s3_clk_src = …;
static struct clk_init_data gcc_qupv3_wrap1_s4_clk_src_init = …;
static struct clk_rcg2 gcc_qupv3_wrap1_s4_clk_src = …;
static struct clk_init_data gcc_qupv3_wrap1_s5_clk_src_init = …;
static struct clk_rcg2 gcc_qupv3_wrap1_s5_clk_src = …;
static struct clk_init_data gcc_qupv3_wrap1_s6_clk_src_init = …;
static struct clk_rcg2 gcc_qupv3_wrap1_s6_clk_src = …;
static struct clk_init_data gcc_qupv3_wrap1_s7_clk_src_init = …;
static struct clk_rcg2 gcc_qupv3_wrap1_s7_clk_src = …;
static const struct freq_tbl ftbl_gcc_sdcc5_apps_clk_src[] = …;
static struct clk_rcg2 gcc_sdcc5_apps_clk_src = …;
static const struct freq_tbl ftbl_gcc_sdcc5_ice_core_clk_src[] = …;
static struct clk_rcg2 gcc_sdcc5_ice_core_clk_src = …;
static struct clk_rcg2 gcc_sm_bus_xo_clk_src = …;
static const struct freq_tbl ftbl_gcc_tsc_clk_src[] = …;
static struct clk_rcg2 gcc_tsc_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_usb30_prim_mock_utmi_clk_src = …;
static struct clk_rcg2 gcc_usb3_prim_phy_aux_clk_src = …;
static struct clk_regmap_div gcc_usb30_prim_mock_utmi_postdiv_clk_src = …;
static struct clk_branch gcc_aggre_noc_ecpri_dma_clk = …;
static struct clk_branch gcc_aggre_noc_ecpri_gsi_clk = …;
static struct clk_branch gcc_boot_rom_ahb_clk = …;
static struct clk_branch gcc_cfg_noc_ecpri_cc_ahb_clk = …;
static struct clk_branch gcc_cfg_noc_usb3_prim_axi_clk = …;
static struct clk_branch gcc_ddrss_ecpri_dma_clk = …;
static struct clk_branch gcc_ddrss_ecpri_gsi_clk = …;
static struct clk_branch gcc_ecpri_ahb_clk = …;
static struct clk_branch gcc_ecpri_cc_gpll0_clk_src = …;
static struct clk_branch gcc_ecpri_cc_gpll1_even_clk_src = …;
static struct clk_branch gcc_ecpri_cc_gpll2_even_clk_src = …;
static struct clk_branch gcc_ecpri_cc_gpll3_clk_src = …;
static struct clk_branch gcc_ecpri_cc_gpll4_clk_src = …;
static struct clk_branch gcc_ecpri_cc_gpll5_even_clk_src = …;
static struct clk_branch gcc_ecpri_xo_clk = …;
static struct clk_branch gcc_eth_100g_c2c_hm_apb_clk = …;
static struct clk_branch gcc_eth_100g_fh_hm_apb_0_clk = …;
static struct clk_branch gcc_eth_100g_fh_hm_apb_1_clk = …;
static struct clk_branch gcc_eth_100g_fh_hm_apb_2_clk = …;
static struct clk_branch gcc_eth_dbg_c2c_hm_apb_clk = …;
static struct clk_branch gcc_eth_dbg_snoc_axi_clk = …;
static struct clk_branch gcc_gemnoc_pcie_qx_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_pcie_0_aux_clk = …;
static struct clk_branch gcc_pcie_0_cfg_ahb_clk = …;
static struct clk_branch gcc_pcie_0_clkref_en = …;
static struct clk_branch gcc_pcie_0_mstr_axi_clk = …;
static struct clk_branch gcc_pcie_0_phy_aux_clk = …;
static struct clk_branch gcc_pcie_0_phy_rchng_clk = …;
static struct clk_branch gcc_pcie_0_pipe_clk = …;
static struct clk_branch gcc_pcie_0_slv_axi_clk = …;
static struct clk_branch gcc_pcie_0_slv_q2a_axi_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_qmip_anoc_pcie_clk = …;
static struct clk_branch gcc_qmip_ecpri_dma0_clk = …;
static struct clk_branch gcc_qmip_ecpri_dma1_clk = …;
static struct clk_branch gcc_qmip_ecpri_gsi_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_wrap0_s6_clk = …;
static struct clk_branch gcc_qupv3_wrap0_s7_clk = …;
static struct clk_branch gcc_qupv3_wrap1_core_2x_clk = …;
static struct clk_branch gcc_qupv3_wrap1_core_clk = …;
static struct clk_branch gcc_qupv3_wrap1_s0_clk = …;
static struct clk_branch gcc_qupv3_wrap1_s1_clk = …;
static struct clk_branch gcc_qupv3_wrap1_s2_clk = …;
static struct clk_branch gcc_qupv3_wrap1_s3_clk = …;
static struct clk_branch gcc_qupv3_wrap1_s4_clk = …;
static struct clk_branch gcc_qupv3_wrap1_s5_clk = …;
static struct clk_branch gcc_qupv3_wrap1_s6_clk = …;
static struct clk_branch gcc_qupv3_wrap1_s7_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_qupv3_wrap_1_m_ahb_clk = …;
static struct clk_branch gcc_qupv3_wrap_1_s_ahb_clk = …;
static struct clk_branch gcc_sdcc5_ahb_clk = …;
static struct clk_branch gcc_sdcc5_apps_clk = …;
static struct clk_branch gcc_sdcc5_ice_core_clk = …;
static struct clk_branch gcc_sm_bus_ahb_clk = …;
static struct clk_branch gcc_sm_bus_xo_clk = …;
static struct clk_branch gcc_snoc_cnoc_gemnoc_pcie_qx_clk = …;
static struct clk_branch gcc_snoc_cnoc_gemnoc_pcie_south_qx_clk = …;
static struct clk_branch gcc_snoc_cnoc_pcie_qx_clk = …;
static struct clk_branch gcc_snoc_pcie_sf_center_qx_clk = …;
static struct clk_branch gcc_snoc_pcie_sf_south_qx_clk = …;
static struct clk_branch gcc_tsc_cfg_ahb_clk = …;
static struct clk_branch gcc_tsc_cntr_clk = …;
static struct clk_branch gcc_tsc_etu_clk = …;
static struct clk_branch gcc_usb2_clkref_en = …;
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_phy_aux_clk = …;
static struct clk_branch gcc_usb3_prim_phy_com_aux_clk = …;
static struct clk_branch gcc_usb3_prim_phy_pipe_clk = …;
static struct gdsc pcie_0_gdsc = …;
static struct gdsc pcie_0_phy_gdsc = …;
static struct gdsc usb30_prim_gdsc = …;
static struct clk_regmap *gcc_qdu1000_clocks[] = …;
static struct gdsc *gcc_qdu1000_gdscs[] = …;
static const struct qcom_reset_map gcc_qdu1000_resets[] = …;
static const struct clk_rcg_dfs_data gcc_dfs_clocks[] = …;
static const struct regmap_config gcc_qdu1000_regmap_config = …;
static const struct qcom_cc_desc gcc_qdu1000_desc = …;
static const struct of_device_id gcc_qdu1000_match_table[] = …;
MODULE_DEVICE_TABLE(of, gcc_qdu1000_match_table);
static int gcc_qdu1000_probe(struct platform_device *pdev)
{ … }
static struct platform_driver gcc_qdu1000_driver = …;
static int __init gcc_qdu1000_init(void)
{ … }
subsys_initcall(gcc_qdu1000_init);
static void __exit gcc_qdu1000_exit(void)
{ … }
module_exit(gcc_qdu1000_exit);
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;