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

// SPDX-License-Identifier: GPL-2.0-only
/*
 * Copyright (c) 2022-2023 Qualcomm Innovation Center, Inc. All rights reserved.
 */

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

#include <dt-bindings/clock/qcom,ipq5332-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 "reset.h"

enum {};

enum {};

static const struct clk_parent_data gcc_parent_data_xo =;

static struct clk_alpha_pll gpll0_main =;

static struct clk_fixed_factor gpll0_div2 =;

static struct clk_alpha_pll_postdiv gpll0 =;

static struct clk_alpha_pll gpll2_main =;

static struct clk_alpha_pll_postdiv gpll2 =;

static struct clk_alpha_pll gpll4_main =;

static struct clk_alpha_pll_postdiv gpll4 =;

static const struct parent_map gcc_parent_map_xo[] =;

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_7[] =;

static const struct clk_parent_data gcc_parent_data_7[] =;

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 const struct parent_map gcc_parent_map_11[] =;

static const struct clk_parent_data gcc_parent_data_11[] =;

static const struct parent_map gcc_parent_map_12[] =;

static const struct clk_parent_data gcc_parent_data_12[] =;

static const struct freq_tbl ftbl_gcc_adss_pwm_clk_src[] =;

static struct clk_rcg2 gcc_adss_pwm_clk_src =;

static const struct freq_tbl ftbl_gcc_apss_axi_clk_src[] =;

static const struct freq_tbl ftbl_gcc_blsp1_qup1_spi_apps_clk_src[] =;

static struct clk_rcg2 gcc_blsp1_qup1_spi_apps_clk_src =;

static struct clk_rcg2 gcc_blsp1_qup2_spi_apps_clk_src =;

static struct clk_rcg2 gcc_blsp1_qup3_spi_apps_clk_src =;

static const struct freq_tbl ftbl_gcc_blsp1_uart1_apps_clk_src[] =;

static struct clk_rcg2 gcc_blsp1_uart1_apps_clk_src =;

static struct clk_rcg2 gcc_blsp1_uart2_apps_clk_src =;

static struct clk_rcg2 gcc_blsp1_uart3_apps_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 const struct freq_tbl ftbl_gcc_lpass_sway_clk_src[] =;

static struct clk_rcg2 gcc_lpass_sway_clk_src =;

static const struct freq_tbl ftbl_gcc_nss_ts_clk_src[] =;

static struct clk_rcg2 gcc_nss_ts_clk_src =;

static const struct freq_tbl ftbl_gcc_pcie3x1_0_axi_clk_src[] =;

static struct clk_rcg2 gcc_pcie3x1_0_axi_clk_src =;

static struct clk_rcg2 gcc_pcie3x1_0_rchg_clk_src =;

static struct clk_branch gcc_pcie3x1_0_rchg_clk =;

static struct clk_rcg2 gcc_pcie3x1_1_axi_clk_src =;

static struct clk_rcg2 gcc_pcie3x1_1_rchg_clk_src =;

static struct clk_branch gcc_pcie3x1_1_rchg_clk =;

static const struct freq_tbl ftbl_gcc_pcie3x2_axi_m_clk_src[] =;

static struct clk_rcg2 gcc_pcie3x2_axi_m_clk_src =;

static struct clk_rcg2 gcc_pcie3x2_axi_s_clk_src =;

static struct clk_rcg2 gcc_pcie3x2_rchg_clk_src =;

static struct clk_branch gcc_pcie3x2_rchg_clk =;

static const struct freq_tbl ftbl_gcc_pcie_aux_clk_src[] =;

static struct clk_rcg2 gcc_pcie_aux_clk_src =;

static struct clk_regmap_phy_mux gcc_pcie3x2_pipe_clk_src =;

static struct clk_regmap_phy_mux gcc_pcie3x1_0_pipe_clk_src =;

static struct clk_regmap_phy_mux gcc_pcie3x1_1_pipe_clk_src =;

static const struct freq_tbl ftbl_gcc_pcnoc_bfdcd_clk_src[] =;

static struct clk_rcg2 gcc_pcnoc_bfdcd_clk_src =;

static struct clk_rcg2 gcc_q6_axim_clk_src =;

static const struct freq_tbl ftbl_gcc_qdss_at_clk_src[] =;

static struct clk_rcg2 gcc_qdss_at_clk_src =;

static const struct freq_tbl ftbl_gcc_qdss_tsctr_clk_src[] =;

static struct clk_rcg2 gcc_qdss_tsctr_clk_src =;

static struct clk_fixed_factor gcc_qdss_tsctr_div2_clk_src =;

static struct clk_fixed_factor gcc_qdss_tsctr_div3_clk_src =;

static struct clk_fixed_factor gcc_qdss_tsctr_div4_clk_src =;

static struct clk_fixed_factor gcc_qdss_tsctr_div8_clk_src =;

static struct clk_fixed_factor gcc_qdss_tsctr_div16_clk_src =;

static const struct freq_tbl ftbl_gcc_qpic_io_macro_clk_src[] =;

static struct clk_rcg2 gcc_qpic_io_macro_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_sleep_clk_src[] =;

static struct clk_rcg2 gcc_sleep_clk_src =;

static const struct freq_tbl ftbl_gcc_system_noc_bfdcd_clk_src[] =;

static struct clk_rcg2 gcc_system_noc_bfdcd_clk_src =;

static struct clk_fixed_factor gcc_system_noc_bfdcd_div2_clk_src =;

static struct clk_rcg2 gcc_uniphy_sys_clk_src =;

static struct clk_rcg2 gcc_usb0_aux_clk_src =;

static const struct freq_tbl ftbl_gcc_usb0_lfps_clk_src[] =;

static struct clk_rcg2 gcc_usb0_lfps_clk_src =;

static struct clk_rcg2 gcc_usb0_master_clk_src =;

static const struct freq_tbl ftbl_gcc_usb0_mock_utmi_clk_src[] =;

static struct clk_rcg2 gcc_usb0_mock_utmi_clk_src =;

static struct clk_regmap_phy_mux gcc_usb0_pipe_clk_src =;

static struct clk_rcg2 gcc_wcss_ahb_clk_src =;

static struct clk_rcg2 gcc_xo_clk_src =;

static struct clk_fixed_factor gcc_xo_div4_clk_src =;

static struct clk_regmap_div gcc_qdss_dap_div_clk_src =;

static struct clk_regmap_div gcc_usb0_mock_utmi_div_clk_src =;

static struct clk_branch gcc_adss_pwm_clk =;

static struct clk_branch gcc_ahb_clk =;

static struct clk_branch gcc_blsp1_ahb_clk =;

static struct clk_branch gcc_blsp1_qup1_i2c_apps_clk =;

static struct clk_branch gcc_blsp1_qup1_spi_apps_clk =;

static struct clk_branch gcc_blsp1_qup2_i2c_apps_clk =;

static struct clk_branch gcc_blsp1_qup2_spi_apps_clk =;

static struct clk_branch gcc_blsp1_qup3_i2c_apps_clk =;

static struct clk_branch gcc_blsp1_qup3_spi_apps_clk =;

static struct clk_branch gcc_blsp1_sleep_clk =;

static struct clk_branch gcc_blsp1_uart1_apps_clk =;

static struct clk_branch gcc_blsp1_uart2_apps_clk =;

static struct clk_branch gcc_blsp1_uart3_apps_clk =;

static struct clk_branch gcc_ce_ahb_clk =;

static struct clk_branch gcc_ce_axi_clk =;

static struct clk_branch gcc_ce_pcnoc_ahb_clk =;

static struct clk_branch gcc_cmn_12gpll_ahb_clk =;

static struct clk_branch gcc_cmn_12gpll_apu_clk =;

static struct clk_branch gcc_cmn_12gpll_sys_clk =;

static struct clk_branch gcc_gp1_clk =;

static struct clk_branch gcc_gp2_clk =;

static struct clk_branch gcc_lpass_core_axim_clk =;

static struct clk_branch gcc_lpass_sway_clk =;

static struct clk_branch gcc_mdio_ahb_clk =;

static struct clk_branch gcc_mdio_slave_ahb_clk =;

static struct clk_branch gcc_nss_ts_clk =;

static struct clk_branch gcc_nsscc_clk =;

static struct clk_branch gcc_nsscfg_clk =;

static struct clk_branch gcc_nssnoc_atb_clk =;

static struct clk_branch gcc_nssnoc_nsscc_clk =;

static struct clk_branch gcc_nssnoc_qosgen_ref_clk =;

static struct clk_branch gcc_nssnoc_snoc_1_clk =;

static struct clk_branch gcc_nssnoc_snoc_clk =;

static struct clk_branch gcc_nssnoc_timeout_ref_clk =;

static struct clk_branch gcc_nssnoc_xo_dcd_clk =;

static struct clk_branch gcc_pcie3x1_0_ahb_clk =;

static struct clk_branch gcc_pcie3x1_0_aux_clk =;

static struct clk_branch gcc_pcie3x1_0_axi_m_clk =;

static struct clk_branch gcc_pcie3x1_0_axi_s_bridge_clk =;

static struct clk_branch gcc_pcie3x1_0_axi_s_clk =;

static struct clk_branch gcc_pcie3x1_0_pipe_clk =;

static struct clk_branch gcc_pcie3x1_1_ahb_clk =;

static struct clk_branch gcc_pcie3x1_1_aux_clk =;

static struct clk_branch gcc_pcie3x1_1_axi_m_clk =;

static struct clk_branch gcc_pcie3x1_1_axi_s_bridge_clk =;

static struct clk_branch gcc_pcie3x1_1_axi_s_clk =;

static struct clk_branch gcc_pcie3x1_1_pipe_clk =;

static struct clk_branch gcc_pcie3x1_phy_ahb_clk =;

static struct clk_branch gcc_pcie3x2_ahb_clk =;

static struct clk_branch gcc_pcie3x2_aux_clk =;

static struct clk_branch gcc_pcie3x2_axi_m_clk =;

static struct clk_branch gcc_pcie3x2_axi_s_bridge_clk =;

static struct clk_branch gcc_pcie3x2_axi_s_clk =;

static struct clk_branch gcc_pcie3x2_phy_ahb_clk =;

static struct clk_branch gcc_pcie3x2_pipe_clk =;

static struct clk_branch gcc_pcnoc_at_clk =;

static struct clk_branch gcc_pcnoc_lpass_clk =;

static struct clk_branch gcc_prng_ahb_clk =;

static struct clk_branch gcc_q6_ahb_clk =;

static struct clk_branch gcc_q6_ahb_s_clk =;

static struct clk_branch gcc_q6_axim_clk =;

static struct clk_branch gcc_q6_axis_clk =;

static struct clk_branch gcc_q6_tsctr_1to2_clk =;

static struct clk_branch gcc_q6ss_atbm_clk =;

static struct clk_branch gcc_q6ss_pclkdbg_clk =;

static struct clk_branch gcc_q6ss_trig_clk =;

static struct clk_branch gcc_qdss_at_clk =;

static struct clk_branch gcc_qdss_cfg_ahb_clk =;

static struct clk_branch gcc_qdss_dap_ahb_clk =;

static struct clk_branch gcc_qdss_dap_clk =;

static struct clk_branch gcc_qdss_etr_usb_clk =;

static struct clk_fixed_factor gcc_eud_at_div_clk_src =;

static struct clk_branch gcc_qdss_eud_at_clk =;

static struct clk_branch gcc_qpic_ahb_clk =;

static struct clk_branch gcc_qpic_clk =;

static struct clk_branch gcc_qpic_io_macro_clk =;

static struct clk_branch gcc_qpic_sleep_clk =;

static struct clk_branch gcc_sdcc1_ahb_clk =;

static struct clk_branch gcc_sdcc1_apps_clk =;

static struct clk_branch gcc_snoc_lpass_cfg_clk =;

static struct clk_branch gcc_snoc_nssnoc_1_clk =;

static struct clk_branch gcc_snoc_nssnoc_clk =;

static struct clk_branch gcc_snoc_pcie3_1lane_1_m_clk =;

static struct clk_branch gcc_snoc_pcie3_1lane_1_s_clk =;

static struct clk_branch gcc_snoc_pcie3_1lane_m_clk =;

static struct clk_branch gcc_snoc_pcie3_1lane_s_clk =;

static struct clk_branch gcc_snoc_pcie3_2lane_m_clk =;

static struct clk_branch gcc_snoc_pcie3_2lane_s_clk =;

static struct clk_branch gcc_snoc_usb_clk =;

static struct clk_branch gcc_sys_noc_at_clk =;

static struct clk_branch gcc_sys_noc_wcss_ahb_clk =;

static struct clk_branch gcc_uniphy0_ahb_clk =;

static struct clk_branch gcc_uniphy0_sys_clk =;

static struct clk_branch gcc_uniphy1_ahb_clk =;

static struct clk_branch gcc_uniphy1_sys_clk =;

static struct clk_branch gcc_usb0_aux_clk =;

static struct clk_branch gcc_usb0_eud_at_clk =;

static struct clk_branch gcc_usb0_lfps_clk =;

static struct clk_branch gcc_usb0_master_clk =;

static struct clk_branch gcc_usb0_mock_utmi_clk =;

static struct clk_branch gcc_usb0_phy_cfg_ahb_clk =;

static struct clk_branch gcc_usb0_pipe_clk =;

static struct clk_branch gcc_usb0_sleep_clk =;

static struct clk_branch gcc_wcss_axim_clk =;

static struct clk_branch gcc_wcss_axis_clk =;

static struct clk_branch gcc_wcss_dbg_ifc_apb_bdg_clk =;

static struct clk_branch gcc_wcss_dbg_ifc_apb_clk =;

static struct clk_branch gcc_wcss_dbg_ifc_atb_bdg_clk =;

static struct clk_branch gcc_wcss_dbg_ifc_atb_clk =;

static struct clk_branch gcc_wcss_dbg_ifc_nts_bdg_clk =;

static struct clk_branch gcc_wcss_dbg_ifc_nts_clk =;

static struct clk_branch gcc_wcss_ecahb_clk =;

static struct clk_branch gcc_wcss_mst_async_bdg_clk =;

static struct clk_branch gcc_wcss_slv_async_bdg_clk =;

static struct clk_branch gcc_xo_clk =;

static struct clk_branch gcc_xo_div4_clk =;

static struct clk_branch gcc_im_sleep_clk =;

static struct clk_branch gcc_nssnoc_pcnoc_1_clk =;

static struct clk_regmap_div gcc_snoc_qosgen_extref_div_clk_src =;

static struct clk_regmap *gcc_ipq5332_clocks[] =;

static const struct qcom_reset_map gcc_ipq5332_resets[] =;

static const struct regmap_config gcc_ipq5332_regmap_config =;

static struct clk_hw *gcc_ipq5332_hws[] =;

static const struct qcom_cc_desc gcc_ipq5332_desc =;

static int gcc_ipq5332_probe(struct platform_device *pdev)
{}

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

static struct platform_driver gcc_ipq5332_driver =;

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

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

MODULE_DESCRIPTION();
MODULE_LICENSE();