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

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

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

#include <dt-bindings/clock/qcom,gcc-msm8953.h>

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

enum {};

static struct clk_alpha_pll gpll0_early =;

static struct clk_fixed_factor gpll0_early_div =;

static struct clk_alpha_pll_postdiv gpll0 =;

static struct clk_alpha_pll gpll2_early =;

static struct clk_alpha_pll_postdiv gpll2 =;

static const struct pll_vco gpll3_p_vco[] =;

static const struct alpha_pll_config gpll3_early_config =;

static struct clk_alpha_pll gpll3_early =;

static struct clk_alpha_pll_postdiv gpll3 =;

static struct clk_alpha_pll gpll4_early =;

static struct clk_alpha_pll_postdiv gpll4 =;

static struct clk_alpha_pll gpll6_early =;

static struct clk_fixed_factor gpll6_early_div =;

static struct clk_alpha_pll_postdiv gpll6 =;

static const struct parent_map gcc_xo_gpll0_gpll0div2_2_map[] =;

static const struct parent_map gcc_xo_gpll0_gpll0div2_4_map[] =;

static const struct clk_parent_data gcc_xo_gpll0_gpll0div2_data[] =;

static const struct parent_map gcc_apc_droop_detector_map[] =;

static const struct clk_parent_data gcc_apc_droop_detector_data[] =;

static const struct freq_tbl ftbl_apc_droop_detector_clk_src[] =;

static struct clk_rcg2 apc0_droop_detector_clk_src =;
static struct clk_rcg2 apc1_droop_detector_clk_src =;

static const struct freq_tbl ftbl_apss_ahb_clk_src[] =;

static struct clk_rcg2 apss_ahb_clk_src =;

static const struct freq_tbl ftbl_blsp_i2c_apps_clk_src[] =;

static struct clk_rcg2 blsp1_qup1_i2c_apps_clk_src =;

static struct clk_rcg2 blsp1_qup2_i2c_apps_clk_src =;

static struct clk_rcg2 blsp1_qup3_i2c_apps_clk_src =;

static struct clk_rcg2 blsp1_qup4_i2c_apps_clk_src =;

static struct clk_rcg2 blsp2_qup1_i2c_apps_clk_src =;

static struct clk_rcg2 blsp2_qup2_i2c_apps_clk_src =;

static struct clk_rcg2 blsp2_qup3_i2c_apps_clk_src =;

static struct clk_rcg2 blsp2_qup4_i2c_apps_clk_src =;

static const struct freq_tbl ftbl_blsp_spi_apps_clk_src[] =;

static struct clk_rcg2 blsp1_qup1_spi_apps_clk_src =;

static struct clk_rcg2 blsp1_qup2_spi_apps_clk_src =;

static struct clk_rcg2 blsp1_qup3_spi_apps_clk_src =;

static struct clk_rcg2 blsp1_qup4_spi_apps_clk_src =;

static struct clk_rcg2 blsp2_qup1_spi_apps_clk_src =;

static struct clk_rcg2 blsp2_qup2_spi_apps_clk_src =;

static struct clk_rcg2 blsp2_qup3_spi_apps_clk_src =;

static struct clk_rcg2 blsp2_qup4_spi_apps_clk_src =;

static const struct freq_tbl ftbl_blsp_uart_apps_clk_src[] =;

static struct clk_rcg2 blsp1_uart1_apps_clk_src =;

static struct clk_rcg2 blsp1_uart2_apps_clk_src =;

static struct clk_rcg2 blsp2_uart1_apps_clk_src =;

static struct clk_rcg2 blsp2_uart2_apps_clk_src =;

static const struct parent_map gcc_byte0_map[] =;

static const struct parent_map gcc_byte1_map[] =;

static const struct clk_parent_data gcc_byte_data[] =;

static struct clk_rcg2 byte0_clk_src =;

static struct clk_rcg2 byte1_clk_src =;

static const struct parent_map gcc_gp_map[] =;

static const struct clk_parent_data gcc_gp_data[] =;

static const struct freq_tbl ftbl_camss_gp_clk_src[] =;

static struct clk_rcg2 camss_gp0_clk_src =;

static struct clk_rcg2 camss_gp1_clk_src =;

static const struct freq_tbl ftbl_camss_top_ahb_clk_src[] =;

static struct clk_rcg2 camss_top_ahb_clk_src =;

static const struct parent_map gcc_cci_map[] =;

static const struct clk_parent_data gcc_cci_data[] =;

static const struct freq_tbl ftbl_cci_clk_src[] =;

static struct clk_rcg2 cci_clk_src =;

static const struct parent_map gcc_cpp_map[] =;

static const struct clk_parent_data gcc_cpp_data[] =;

static const struct freq_tbl ftbl_cpp_clk_src[] =;

static struct clk_rcg2 cpp_clk_src =;

static const struct freq_tbl ftbl_crypto_clk_src[] =;

static struct clk_rcg2 crypto_clk_src =;

static const struct parent_map gcc_csi0_map[] =;

static const struct parent_map gcc_csi12_map[] =;

static const struct clk_parent_data gcc_csi_data[] =;

static const struct freq_tbl ftbl_csi_clk_src[] =;

static struct clk_rcg2 csi0_clk_src =;

static struct clk_rcg2 csi1_clk_src =;

static struct clk_rcg2 csi2_clk_src =;

static const struct parent_map gcc_csip_map[] =;

static const struct clk_parent_data gcc_csip_data[] =;

static const struct freq_tbl ftbl_csi_p_clk_src[] =;

static struct clk_rcg2 csi0p_clk_src =;

static struct clk_rcg2 csi1p_clk_src =;

static struct clk_rcg2 csi2p_clk_src =;

static const struct freq_tbl ftbl_csi_phytimer_clk_src[] =;

static struct clk_rcg2 csi0phytimer_clk_src =;

static struct clk_rcg2 csi1phytimer_clk_src =;

static struct clk_rcg2 csi2phytimer_clk_src =;

static const struct parent_map gcc_esc_map[] =;

static const struct clk_parent_data gcc_esc_vsync_data[] =;

static const struct freq_tbl ftbl_esc0_1_clk_src[] =;

static struct clk_rcg2 esc0_clk_src =;

static struct clk_rcg2 esc1_clk_src =;

static const struct parent_map gcc_gfx3d_map[] =;

static const struct clk_parent_data gcc_gfx3d_data[] =;

static const struct freq_tbl ftbl_gfx3d_clk_src[] =;

static struct clk_rcg2 gfx3d_clk_src =;

static const struct freq_tbl ftbl_gp_clk_src[] =;

static struct clk_rcg2 gp1_clk_src =;

static struct clk_rcg2 gp2_clk_src =;

static struct clk_rcg2 gp3_clk_src =;

static const struct parent_map gcc_jpeg0_map[] =;

static const struct clk_parent_data gcc_jpeg0_data[] =;

static const struct freq_tbl ftbl_jpeg0_clk_src[] =;

static struct clk_rcg2 jpeg0_clk_src =;

static const struct parent_map gcc_mclk_map[] =;

static const struct clk_parent_data gcc_mclk_data[] =;

static const struct freq_tbl ftbl_mclk_clk_src[] =;

static struct clk_rcg2 mclk0_clk_src =;

static struct clk_rcg2 mclk1_clk_src =;

static struct clk_rcg2 mclk2_clk_src =;

static struct clk_rcg2 mclk3_clk_src =;

static const struct parent_map gcc_mdp_map[] =;

static const struct clk_parent_data gcc_mdp_data[] =;

static const struct freq_tbl ftbl_mdp_clk_src[] =;

static struct clk_rcg2 mdp_clk_src =;

static const struct parent_map gcc_pclk0_map[] =;

static const struct parent_map gcc_pclk1_map[] =;

static const struct clk_parent_data gcc_pclk_data[] =;

static struct clk_rcg2 pclk0_clk_src =;

static struct clk_rcg2 pclk1_clk_src =;

static const struct freq_tbl ftbl_pdm2_clk_src[] =;

static struct clk_rcg2 pdm2_clk_src =;

static const struct freq_tbl ftbl_rbcpr_gfx_clk_src[] =;

static struct clk_rcg2 rbcpr_gfx_clk_src =;

static const struct parent_map gcc_sdcc1_ice_core_map[] =;

static const struct clk_parent_data gcc_sdcc1_ice_core_data[] =;

static const struct freq_tbl ftbl_sdcc1_ice_core_clk_src[] =;

static struct clk_rcg2 sdcc1_ice_core_clk_src =;

static const struct parent_map gcc_sdcc_apps_map[] =;

static const struct clk_parent_data gcc_sdcc_apss_data[] =;

static const struct freq_tbl ftbl_sdcc1_apps_clk_src[] =;

static struct clk_rcg2 sdcc1_apps_clk_src =;

static const struct freq_tbl ftbl_sdcc2_apps_clk_src[] =;

static struct clk_rcg2 sdcc2_apps_clk_src =;

static const struct freq_tbl ftbl_usb30_master_clk_src[] =;

static struct clk_rcg2 usb30_master_clk_src =;

static const struct parent_map gcc_usb30_mock_utmi_map[] =;

static const struct clk_parent_data gcc_usb30_mock_utmi_data[] =;

static const struct freq_tbl ftbl_usb30_mock_utmi_clk_src[] =;

static struct clk_rcg2 usb30_mock_utmi_clk_src =;

static const struct parent_map gcc_usb3_aux_map[] =;

static const struct clk_parent_data gcc_usb3_aux_data[] =;

static const struct freq_tbl ftbl_usb3_aux_clk_src[] =;

static struct clk_rcg2 usb3_aux_clk_src =;

static const struct parent_map gcc_vcodec0_map[] =;

static const struct clk_parent_data gcc_vcodec0_data[] =;

static const struct freq_tbl ftbl_vcodec0_clk_src[] =;

static struct clk_rcg2 vcodec0_clk_src =;

static const struct parent_map gcc_vfe_map[] =;

static const struct clk_parent_data gcc_vfe_data[] =;

static const struct freq_tbl ftbl_vfe_clk_src[] =;

static struct clk_rcg2 vfe0_clk_src =;

static struct clk_rcg2 vfe1_clk_src =;

static const struct parent_map gcc_vsync_map[] =;

static const struct freq_tbl ftbl_vsync_clk_src[] =;

static struct clk_rcg2 vsync_clk_src =;

static struct clk_branch gcc_apc0_droop_detector_gpll0_clk =;

static struct clk_branch gcc_apc1_droop_detector_gpll0_clk =;

static struct clk_branch gcc_apss_ahb_clk =;

static struct clk_branch gcc_apss_axi_clk =;

static struct clk_branch gcc_apss_tcu_async_clk =;

static struct clk_branch gcc_bimc_gfx_clk =;

static struct clk_branch gcc_bimc_gpu_clk =;

static struct clk_branch gcc_blsp1_ahb_clk =;

static struct clk_branch gcc_blsp2_ahb_clk =;

static struct clk_branch gcc_blsp1_qup1_i2c_apps_clk =;

static struct clk_branch gcc_blsp1_qup2_i2c_apps_clk =;

static struct clk_branch gcc_blsp1_qup3_i2c_apps_clk =;

static struct clk_branch gcc_blsp1_qup4_i2c_apps_clk =;

static struct clk_branch gcc_blsp2_qup1_i2c_apps_clk =;

static struct clk_branch gcc_blsp2_qup2_i2c_apps_clk =;

static struct clk_branch gcc_blsp2_qup3_i2c_apps_clk =;

static struct clk_branch gcc_blsp2_qup4_i2c_apps_clk =;

static struct clk_branch gcc_blsp1_qup1_spi_apps_clk =;

static struct clk_branch gcc_blsp1_qup2_spi_apps_clk =;

static struct clk_branch gcc_blsp1_qup3_spi_apps_clk =;

static struct clk_branch gcc_blsp1_qup4_spi_apps_clk =;

static struct clk_branch gcc_blsp2_qup1_spi_apps_clk =;

static struct clk_branch gcc_blsp2_qup2_spi_apps_clk =;

static struct clk_branch gcc_blsp2_qup3_spi_apps_clk =;

static struct clk_branch gcc_blsp2_qup4_spi_apps_clk =;

static struct clk_branch gcc_blsp1_uart1_apps_clk =;

static struct clk_branch gcc_blsp1_uart2_apps_clk =;

static struct clk_branch gcc_blsp2_uart1_apps_clk =;

static struct clk_branch gcc_blsp2_uart2_apps_clk =;

static struct clk_branch gcc_boot_rom_ahb_clk =;

static struct clk_branch gcc_camss_ahb_clk =;

static struct clk_branch gcc_camss_cci_ahb_clk =;

static struct clk_branch gcc_camss_cci_clk =;

static struct clk_branch gcc_camss_cpp_ahb_clk =;

static struct clk_branch gcc_camss_cpp_axi_clk =;

static struct clk_branch gcc_camss_cpp_clk =;

static struct clk_branch gcc_camss_csi0_ahb_clk =;

static struct clk_branch gcc_camss_csi1_ahb_clk =;

static struct clk_branch gcc_camss_csi2_ahb_clk =;

static struct clk_branch gcc_camss_csi0_clk =;

static struct clk_branch gcc_camss_csi1_clk =;

static struct clk_branch gcc_camss_csi2_clk =;

static struct clk_branch gcc_camss_csi0_csiphy_3p_clk =;

static struct clk_branch gcc_camss_csi1_csiphy_3p_clk =;

static struct clk_branch gcc_camss_csi2_csiphy_3p_clk =;

static struct clk_branch gcc_camss_csi0phy_clk =;

static struct clk_branch gcc_camss_csi1phy_clk =;

static struct clk_branch gcc_camss_csi2phy_clk =;

static struct clk_branch gcc_camss_csi0phytimer_clk =;

static struct clk_branch gcc_camss_csi1phytimer_clk =;

static struct clk_branch gcc_camss_csi2phytimer_clk =;

static struct clk_branch gcc_camss_csi0pix_clk =;

static struct clk_branch gcc_camss_csi1pix_clk =;

static struct clk_branch gcc_camss_csi2pix_clk =;

static struct clk_branch gcc_camss_csi0rdi_clk =;

static struct clk_branch gcc_camss_csi1rdi_clk =;

static struct clk_branch gcc_camss_csi2rdi_clk =;

static struct clk_branch gcc_camss_csi_vfe0_clk =;

static struct clk_branch gcc_camss_csi_vfe1_clk =;

static struct clk_branch gcc_camss_gp0_clk =;

static struct clk_branch gcc_camss_gp1_clk =;

static struct clk_branch gcc_camss_ispif_ahb_clk =;

static struct clk_branch gcc_camss_jpeg0_clk =;

static struct clk_branch gcc_camss_jpeg_ahb_clk =;

static struct clk_branch gcc_camss_jpeg_axi_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_micro_ahb_clk =;

static struct clk_branch gcc_camss_top_ahb_clk =;

static struct clk_branch gcc_camss_vfe0_ahb_clk =;

static struct clk_branch gcc_camss_vfe0_axi_clk =;

static struct clk_branch gcc_camss_vfe0_clk =;

static struct clk_branch gcc_camss_vfe1_ahb_clk =;

static struct clk_branch gcc_camss_vfe1_axi_clk =;

static struct clk_branch gcc_camss_vfe1_clk =;

static struct clk_branch gcc_cpp_tbu_clk =;

static struct clk_branch gcc_crypto_ahb_clk =;

static struct clk_branch gcc_crypto_axi_clk =;

static struct clk_branch gcc_crypto_clk =;

static struct clk_branch gcc_dcc_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_jpeg_tbu_clk =;

static struct clk_branch gcc_mdp_tbu_clk =;

static struct clk_branch gcc_mdss_ahb_clk =;

static struct clk_branch gcc_mdss_axi_clk =;

static struct clk_branch gcc_mdss_byte0_clk =;

static struct clk_branch gcc_mdss_byte1_clk =;

static struct clk_branch gcc_mdss_esc0_clk =;

static struct clk_branch gcc_mdss_esc1_clk =;

static struct clk_branch gcc_mdss_mdp_clk =;

static struct clk_branch gcc_mdss_pclk0_clk =;

static struct clk_branch gcc_mdss_pclk1_clk =;

static struct clk_branch gcc_mdss_vsync_clk =;

static struct clk_branch gcc_mss_cfg_ahb_clk =;

static struct clk_branch gcc_mss_q6_bimc_axi_clk =;

static struct clk_branch gcc_oxili_ahb_clk =;

static struct clk_branch gcc_oxili_aon_clk =;

static struct clk_branch gcc_oxili_gfx3d_clk =;

static struct clk_branch gcc_oxili_timer_clk =;

static struct clk_branch gcc_pcnoc_usb3_axi_clk =;

static struct clk_branch gcc_pdm2_clk =;

static struct clk_branch gcc_pdm_ahb_clk =;

static struct clk_branch gcc_prng_ahb_clk =;

static struct clk_branch gcc_qdss_dap_clk =;

static struct clk_branch gcc_qusb_ref_clk =;

static struct clk_branch gcc_rbcpr_gfx_clk =;

static struct clk_branch gcc_sdcc1_ice_core_clk =;

static struct clk_branch gcc_sdcc1_ahb_clk =;

static struct clk_branch gcc_sdcc2_ahb_clk =;

static struct clk_branch gcc_sdcc1_apps_clk =;

static struct clk_branch gcc_sdcc2_apps_clk =;

static struct clk_branch gcc_smmu_cfg_clk =;

static struct clk_branch gcc_usb30_master_clk =;

static struct clk_branch gcc_usb30_mock_utmi_clk =;

static struct clk_branch gcc_usb30_sleep_clk =;

static struct clk_branch gcc_usb3_aux_clk =;

static struct clk_branch gcc_usb3_pipe_clk =;

static struct clk_branch gcc_usb_phy_cfg_ahb_clk =;

static struct clk_branch gcc_usb_ss_ref_clk =;

static struct clk_branch gcc_venus0_ahb_clk =;

static struct clk_branch gcc_venus0_axi_clk =;

static struct clk_branch gcc_venus0_core0_vcodec0_clk =;

static struct clk_branch gcc_venus0_vcodec0_clk =;

static struct clk_branch gcc_venus_tbu_clk =;

static struct clk_branch gcc_vfe1_tbu_clk =;

static struct clk_branch gcc_vfe_tbu_clk =;

static struct gdsc usb30_gdsc =;

static struct gdsc venus_gdsc =;

static struct gdsc venus_core0_gdsc =;

static struct gdsc mdss_gdsc =;

static struct gdsc jpeg_gdsc =;

static struct gdsc vfe0_gdsc =;

static struct gdsc vfe1_gdsc =;

static struct gdsc oxili_gx_gdsc =;

static struct gdsc oxili_cx_gdsc =;

static struct gdsc cpp_gdsc =;

static struct clk_hw *gcc_msm8953_hws[] =;

static struct clk_regmap *gcc_msm8953_clocks[] =;

static const struct qcom_reset_map gcc_msm8953_resets[] =;

static const struct regmap_config gcc_msm8953_regmap_config =;

static struct gdsc *gcc_msm8953_gdscs[] =;

static const struct qcom_cc_desc gcc_msm8953_desc =;

static int gcc_msm8953_probe(struct platform_device *pdev)
{}

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

static struct platform_driver gcc_msm8953_driver =;

static int __init gcc_msm8953_init(void)
{}
core_initcall(gcc_msm8953_init);

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

MODULE_DESCRIPTION();
MODULE_LICENSE();