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

// SPDX-License-Identifier: GPL-2.0-only
/*
 * 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/module.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-msm8996.h>

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

enum {};

static struct clk_fixed_factor xo =;

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_branch gcc_mmss_gpll0_div_clk =;

static struct clk_branch gcc_mss_gpll0_div_clk =;

static struct clk_alpha_pll gpll4_early =;

static struct clk_alpha_pll_postdiv gpll4 =;

static const struct parent_map gcc_sleep_clk_map[] =;

static const struct clk_parent_data gcc_sleep_clk[] =;

static const struct parent_map gcc_xo_gpll0_map[] =;

static const struct clk_parent_data gcc_xo_gpll0[] =;

static const struct parent_map gcc_xo_sleep_clk_map[] =;

static const struct clk_parent_data gcc_xo_sleep_clk[] =;

static const struct parent_map gcc_xo_gpll0_gpll0_early_div_map[] =;

static const struct clk_parent_data gcc_xo_gpll0_gpll0_early_div[] =;

static const struct parent_map gcc_xo_gpll0_gpll4_map[] =;

static const struct clk_parent_data gcc_xo_gpll0_gpll4[] =;

static const struct parent_map gcc_xo_gpll0_aud_ref_clk_map[] =;

static const struct clk_parent_data gcc_xo_gpll0_aud_ref_clk[] =;

static const struct parent_map gcc_xo_gpll0_sleep_clk_gpll0_early_div_map[] =;

static const struct clk_parent_data gcc_xo_gpll0_sleep_clk_gpll0_early_div[] =;

static const struct parent_map gcc_xo_gpll0_gpll4_gpll0_early_div_map[] =;

static const struct clk_parent_data gcc_xo_gpll0_gpll4_gpll0_early_div[] =;

static const struct freq_tbl ftbl_usb30_master_clk_src[] =;

static struct clk_rcg2 usb30_master_clk_src =;

static const struct freq_tbl ftbl_usb30_mock_utmi_clk_src[] =;

static struct clk_rcg2 usb30_mock_utmi_clk_src =;

static const struct freq_tbl ftbl_usb3_phy_aux_clk_src[] =;

static struct clk_rcg2 usb3_phy_aux_clk_src =;

static const struct freq_tbl ftbl_usb20_master_clk_src[] =;

static struct clk_rcg2 usb20_master_clk_src =;

static struct clk_rcg2 usb20_mock_utmi_clk_src =;

static const struct freq_tbl ftbl_sdcc1_apps_clk_src[] =;

static struct clk_rcg2 sdcc1_apps_clk_src =;

static struct freq_tbl ftbl_sdcc1_ice_core_clk_src[] =;

static struct clk_rcg2 sdcc1_ice_core_clk_src =;

static const struct freq_tbl ftbl_sdcc2_apps_clk_src[] =;

static struct clk_rcg2 sdcc2_apps_clk_src =;

static struct clk_rcg2 sdcc3_apps_clk_src =;

static const struct freq_tbl ftbl_sdcc4_apps_clk_src[] =;

static struct clk_rcg2 sdcc4_apps_clk_src =;

static const struct freq_tbl ftbl_blsp1_qup1_spi_apps_clk_src[] =;

static struct clk_rcg2 blsp1_qup1_spi_apps_clk_src =;

static const struct freq_tbl ftbl_blsp1_qup1_i2c_apps_clk_src[] =;

static struct clk_rcg2 blsp1_qup1_i2c_apps_clk_src =;

static const struct freq_tbl ftbl_blsp1_uart1_apps_clk_src[] =;

static struct clk_rcg2 blsp1_uart1_apps_clk_src =;

static struct clk_rcg2 blsp1_qup2_spi_apps_clk_src =;

static struct clk_rcg2 blsp1_qup2_i2c_apps_clk_src =;

static struct clk_rcg2 blsp1_uart2_apps_clk_src =;

static struct clk_rcg2 blsp1_qup3_spi_apps_clk_src =;

static struct clk_rcg2 blsp1_qup3_i2c_apps_clk_src =;

static struct clk_rcg2 blsp1_uart3_apps_clk_src =;

static struct clk_rcg2 blsp1_qup4_spi_apps_clk_src =;

static struct clk_rcg2 blsp1_qup4_i2c_apps_clk_src =;

static struct clk_rcg2 blsp1_uart4_apps_clk_src =;

static struct clk_rcg2 blsp1_qup5_spi_apps_clk_src =;

static struct clk_rcg2 blsp1_qup5_i2c_apps_clk_src =;

static struct clk_rcg2 blsp1_uart5_apps_clk_src =;

static struct clk_rcg2 blsp1_qup6_spi_apps_clk_src =;

static struct clk_rcg2 blsp1_qup6_i2c_apps_clk_src =;

static struct clk_rcg2 blsp1_uart6_apps_clk_src =;

static struct clk_rcg2 blsp2_qup1_spi_apps_clk_src =;

static struct clk_rcg2 blsp2_qup1_i2c_apps_clk_src =;

static struct clk_rcg2 blsp2_uart1_apps_clk_src =;

static struct clk_rcg2 blsp2_qup2_spi_apps_clk_src =;

static struct clk_rcg2 blsp2_qup2_i2c_apps_clk_src =;

static struct clk_rcg2 blsp2_uart2_apps_clk_src =;

static struct clk_rcg2 blsp2_qup3_spi_apps_clk_src =;

static struct clk_rcg2 blsp2_qup3_i2c_apps_clk_src =;

static struct clk_rcg2 blsp2_uart3_apps_clk_src =;

static struct clk_rcg2 blsp2_qup4_spi_apps_clk_src =;

static struct clk_rcg2 blsp2_qup4_i2c_apps_clk_src =;

static struct clk_rcg2 blsp2_uart4_apps_clk_src =;

static struct clk_rcg2 blsp2_qup5_spi_apps_clk_src =;

static struct clk_rcg2 blsp2_qup5_i2c_apps_clk_src =;

static struct clk_rcg2 blsp2_uart5_apps_clk_src =;

static struct clk_rcg2 blsp2_qup6_spi_apps_clk_src =;

static struct clk_rcg2 blsp2_qup6_i2c_apps_clk_src =;

static struct clk_rcg2 blsp2_uart6_apps_clk_src =;

static const struct freq_tbl ftbl_pdm2_clk_src[] =;

static struct clk_rcg2 pdm2_clk_src =;

static const struct freq_tbl ftbl_tsif_ref_clk_src[] =;

static struct clk_rcg2 tsif_ref_clk_src =;

static struct clk_rcg2 gcc_sleep_clk_src =;

static struct clk_rcg2 hmss_rbcpr_clk_src =;

static struct clk_rcg2 hmss_gpll0_clk_src =;

static const struct freq_tbl ftbl_gp1_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 freq_tbl ftbl_pcie_aux_clk_src[] =;

static struct clk_rcg2 pcie_aux_clk_src =;

static const struct freq_tbl ftbl_ufs_axi_clk_src[] =;

static struct clk_rcg2 ufs_axi_clk_src =;

static const struct freq_tbl ftbl_ufs_ice_core_clk_src[] =;

static struct clk_rcg2 ufs_ice_core_clk_src =;

static const struct freq_tbl ftbl_qspi_ser_clk_src[] =;

static struct clk_rcg2 qspi_ser_clk_src =;

static struct clk_branch gcc_sys_noc_usb3_axi_clk =;

static struct clk_branch gcc_sys_noc_ufs_axi_clk =;

static struct clk_branch gcc_periph_noc_usb20_ahb_clk =;

static struct clk_branch gcc_mmss_noc_cfg_ahb_clk =;

static struct clk_branch gcc_mmss_bimc_gfx_clk =;

static struct clk_branch gcc_usb30_master_clk =;

static struct clk_branch gcc_usb30_sleep_clk =;

static struct clk_branch gcc_usb30_mock_utmi_clk =;

static struct clk_branch gcc_usb3_phy_aux_clk =;

static struct clk_branch gcc_usb3_phy_pipe_clk =;

static struct clk_branch gcc_usb20_master_clk =;

static struct clk_branch gcc_usb20_sleep_clk =;

static struct clk_branch gcc_usb20_mock_utmi_clk =;

static struct clk_branch gcc_usb_phy_cfg_ahb2phy_clk =;

static struct clk_branch gcc_sdcc1_apps_clk =;

static struct clk_branch gcc_sdcc1_ahb_clk =;

static struct clk_branch gcc_sdcc1_ice_core_clk =;

static struct clk_branch gcc_sdcc2_apps_clk =;

static struct clk_branch gcc_sdcc2_ahb_clk =;

static struct clk_branch gcc_sdcc3_apps_clk =;

static struct clk_branch gcc_sdcc3_ahb_clk =;

static struct clk_branch gcc_sdcc4_apps_clk =;

static struct clk_branch gcc_sdcc4_ahb_clk =;

static struct clk_branch gcc_blsp1_ahb_clk =;

static struct clk_branch gcc_blsp1_sleep_clk =;

static struct clk_branch gcc_blsp1_qup1_spi_apps_clk =;

static struct clk_branch gcc_blsp1_qup1_i2c_apps_clk =;

static struct clk_branch gcc_blsp1_uart1_apps_clk =;

static struct clk_branch gcc_blsp1_qup2_spi_apps_clk =;

static struct clk_branch gcc_blsp1_qup2_i2c_apps_clk =;

static struct clk_branch gcc_blsp1_uart2_apps_clk =;

static struct clk_branch gcc_blsp1_qup3_spi_apps_clk =;

static struct clk_branch gcc_blsp1_qup3_i2c_apps_clk =;

static struct clk_branch gcc_blsp1_uart3_apps_clk =;

static struct clk_branch gcc_blsp1_qup4_spi_apps_clk =;

static struct clk_branch gcc_blsp1_qup4_i2c_apps_clk =;

static struct clk_branch gcc_blsp1_uart4_apps_clk =;

static struct clk_branch gcc_blsp1_qup5_spi_apps_clk =;

static struct clk_branch gcc_blsp1_qup5_i2c_apps_clk =;

static struct clk_branch gcc_blsp1_uart5_apps_clk =;

static struct clk_branch gcc_blsp1_qup6_spi_apps_clk =;

static struct clk_branch gcc_blsp1_qup6_i2c_apps_clk =;

static struct clk_branch gcc_blsp1_uart6_apps_clk =;

static struct clk_branch gcc_blsp2_ahb_clk =;

static struct clk_branch gcc_blsp2_sleep_clk =;

static struct clk_branch gcc_blsp2_qup1_spi_apps_clk =;

static struct clk_branch gcc_blsp2_qup1_i2c_apps_clk =;

static struct clk_branch gcc_blsp2_uart1_apps_clk =;

static struct clk_branch gcc_blsp2_qup2_spi_apps_clk =;

static struct clk_branch gcc_blsp2_qup2_i2c_apps_clk =;

static struct clk_branch gcc_blsp2_uart2_apps_clk =;

static struct clk_branch gcc_blsp2_qup3_spi_apps_clk =;

static struct clk_branch gcc_blsp2_qup3_i2c_apps_clk =;

static struct clk_branch gcc_blsp2_uart3_apps_clk =;

static struct clk_branch gcc_blsp2_qup4_spi_apps_clk =;

static struct clk_branch gcc_blsp2_qup4_i2c_apps_clk =;

static struct clk_branch gcc_blsp2_uart4_apps_clk =;

static struct clk_branch gcc_blsp2_qup5_spi_apps_clk =;

static struct clk_branch gcc_blsp2_qup5_i2c_apps_clk =;

static struct clk_branch gcc_blsp2_uart5_apps_clk =;

static struct clk_branch gcc_blsp2_qup6_spi_apps_clk =;

static struct clk_branch gcc_blsp2_qup6_i2c_apps_clk =;

static struct clk_branch gcc_blsp2_uart6_apps_clk =;

static struct clk_branch gcc_pdm_ahb_clk =;

static struct clk_branch gcc_pdm2_clk =;

static struct clk_branch gcc_prng_ahb_clk =;

static struct clk_branch gcc_tsif_ahb_clk =;

static struct clk_branch gcc_tsif_ref_clk =;

static struct clk_branch gcc_tsif_inactivity_timers_clk =;

static struct clk_branch gcc_boot_rom_ahb_clk =;

static struct clk_branch gcc_bimc_gfx_clk =;

static struct clk_branch gcc_hmss_rbcpr_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_slv_axi_clk =;

static struct clk_branch gcc_pcie_0_mstr_axi_clk =;

static struct clk_branch gcc_pcie_0_cfg_ahb_clk =;

static struct clk_branch gcc_pcie_0_aux_clk =;

static struct clk_branch gcc_pcie_0_pipe_clk =;

static struct clk_branch gcc_pcie_1_slv_axi_clk =;

static struct clk_branch gcc_pcie_1_mstr_axi_clk =;

static struct clk_branch gcc_pcie_1_cfg_ahb_clk =;

static struct clk_branch gcc_pcie_1_aux_clk =;

static struct clk_branch gcc_pcie_1_pipe_clk =;

static struct clk_branch gcc_pcie_2_slv_axi_clk =;

static struct clk_branch gcc_pcie_2_mstr_axi_clk =;

static struct clk_branch gcc_pcie_2_cfg_ahb_clk =;

static struct clk_branch gcc_pcie_2_aux_clk =;

static struct clk_branch gcc_pcie_2_pipe_clk =;

static struct clk_branch gcc_pcie_phy_cfg_ahb_clk =;

static struct clk_branch gcc_pcie_phy_aux_clk =;

static struct clk_branch gcc_ufs_axi_clk =;

static struct clk_branch gcc_ufs_ahb_clk =;

static struct clk_fixed_factor ufs_tx_cfg_clk_src =;

static struct clk_branch gcc_ufs_tx_cfg_clk =;

static struct clk_fixed_factor ufs_rx_cfg_clk_src =;

static struct clk_branch gcc_hlos1_vote_lpass_core_smmu_clk =;

static struct clk_branch gcc_hlos1_vote_lpass_adsp_smmu_clk =;

static struct clk_branch gcc_ufs_rx_cfg_clk =;

static struct clk_branch gcc_ufs_tx_symbol_0_clk =;

static struct clk_branch gcc_ufs_rx_symbol_0_clk =;

static struct clk_branch gcc_ufs_rx_symbol_1_clk =;

static struct clk_fixed_factor ufs_ice_core_postdiv_clk_src =;

static struct clk_branch gcc_ufs_unipro_core_clk =;

static struct clk_branch gcc_ufs_ice_core_clk =;

static struct clk_branch gcc_ufs_sys_clk_core_clk =;

static struct clk_branch gcc_ufs_tx_symbol_clk_core_clk =;

static struct clk_branch gcc_aggre0_snoc_axi_clk =;

static struct clk_branch gcc_aggre0_cnoc_ahb_clk =;

static struct clk_branch gcc_smmu_aggre0_axi_clk =;

static struct clk_branch gcc_smmu_aggre0_ahb_clk =;

static struct clk_branch gcc_aggre2_ufs_axi_clk =;

static struct clk_branch gcc_aggre2_usb3_axi_clk =;

static struct clk_branch gcc_dcc_ahb_clk =;

static struct clk_branch gcc_aggre0_noc_mpu_cfg_ahb_clk =;

static struct clk_branch gcc_qspi_ahb_clk =;

static struct clk_branch gcc_qspi_ser_clk =;

static struct clk_branch gcc_usb3_clkref_clk =;

static struct clk_branch gcc_hdmi_clkref_clk =;

static struct clk_branch gcc_edp_clkref_clk =;

static struct clk_branch gcc_ufs_clkref_clk =;

static struct clk_branch gcc_pcie_clkref_clk =;

static struct clk_branch gcc_rx2_usb2_clkref_clk =;

static struct clk_branch gcc_rx1_usb2_clkref_clk =;

static struct clk_branch gcc_mss_cfg_ahb_clk =;

static struct clk_branch gcc_mss_mnoc_bimc_axi_clk =;

static struct clk_branch gcc_mss_snoc_axi_clk =;

static struct clk_branch gcc_mss_q6_bimc_axi_clk =;

static struct clk_hw *gcc_msm8996_hws[] =;

static struct gdsc aggre0_noc_gdsc =;

static struct gdsc hlos1_vote_aggre0_noc_gdsc =;

static struct gdsc hlos1_vote_lpass_adsp_gdsc =;

static struct gdsc hlos1_vote_lpass_core_gdsc =;

static struct gdsc usb30_gdsc =;

static struct gdsc pcie0_gdsc =;

static struct gdsc pcie1_gdsc =;

static struct gdsc pcie2_gdsc =;

static struct gdsc ufs_gdsc =;

static struct clk_regmap *gcc_msm8996_clocks[] =;

static struct gdsc *gcc_msm8996_gdscs[] =;

static const struct qcom_reset_map gcc_msm8996_resets[] =;

static const struct regmap_config gcc_msm8996_regmap_config =;

static const struct qcom_cc_desc gcc_msm8996_desc =;

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

static int gcc_msm8996_probe(struct platform_device *pdev)
{}

static struct platform_driver gcc_msm8996_driver =;

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

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

MODULE_DESCRIPTION();
MODULE_LICENSE();
MODULE_ALIAS();