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

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

#include <linux/kernel.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-qcs404.h>

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

enum {};

enum {};

static const struct parent_map gcc_parent_map_1[] =;

static const struct clk_parent_data gcc_parent_data_1[] =;

static struct clk_fixed_factor cxo =;

static struct clk_alpha_pll gpll0_sleep_clk_src =;

static struct clk_alpha_pll gpll0_out_main =;

static struct clk_alpha_pll gpll0_ao_out_main =;

static struct clk_alpha_pll gpll1_out_main =;

/* 930MHz configuration */
static const struct alpha_pll_config gpll3_config =;

static const struct pll_vco gpll3_vco[] =;

static struct clk_alpha_pll gpll3_out_main =;

static struct clk_alpha_pll gpll4_out_main =;

static struct clk_pll gpll6 =;

static struct clk_regmap gpll6_out_aux =;

static const struct parent_map gcc_parent_map_0[] =;

static const struct clk_parent_data gcc_parent_data_0[] =;

static const struct clk_parent_data gcc_parent_data_ao_0[] =;

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

static const struct clk_parent_data gcc_parent_data_13[] =;

static const struct parent_map gcc_parent_map_14[] =;

static const struct clk_parent_data gcc_parent_data_14[] =;

static const struct parent_map gcc_parent_map_15[] =;

static const struct clk_parent_data gcc_parent_data_15[] =;

static const struct parent_map gcc_parent_map_16[] =;

static const struct clk_parent_data gcc_parent_data_16[] =;

static const struct freq_tbl ftbl_apss_ahb_clk_src[] =;

static struct clk_rcg2 apss_ahb_clk_src =;

static const struct freq_tbl ftbl_blsp1_qup0_i2c_apps_clk_src[] =;

static struct clk_rcg2 blsp1_qup0_i2c_apps_clk_src =;

static const struct freq_tbl ftbl_blsp1_qup0_spi_apps_clk_src[] =;

static struct clk_rcg2 blsp1_qup0_spi_apps_clk_src =;

static struct clk_rcg2 blsp1_qup1_i2c_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 struct clk_rcg2 blsp1_qup2_i2c_apps_clk_src =;

static const struct freq_tbl ftbl_blsp1_qup2_spi_apps_clk_src[] =;

static struct clk_rcg2 blsp1_qup2_spi_apps_clk_src =;

static struct clk_rcg2 blsp1_qup3_i2c_apps_clk_src =;

static struct clk_rcg2 blsp1_qup3_spi_apps_clk_src =;

static struct clk_rcg2 blsp1_qup4_i2c_apps_clk_src =;

static struct clk_rcg2 blsp1_qup4_spi_apps_clk_src =;

static const struct freq_tbl ftbl_blsp1_uart0_apps_clk_src[] =;

static struct clk_rcg2 blsp1_uart0_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 blsp1_uart3_apps_clk_src =;

static struct clk_rcg2 blsp2_qup0_i2c_apps_clk_src =;

static struct clk_rcg2 blsp2_qup0_spi_apps_clk_src =;

static struct clk_rcg2 blsp2_uart0_apps_clk_src =;

static struct clk_rcg2 byte0_clk_src =;

static const struct freq_tbl ftbl_emac_clk_src[] =;

static struct clk_rcg2 emac_clk_src =;

static const struct freq_tbl ftbl_emac_ptp_clk_src[] =;

static struct clk_rcg2 emac_ptp_clk_src =;

static const struct freq_tbl ftbl_esc0_clk_src[] =;

static struct clk_rcg2 esc0_clk_src =;

static const struct freq_tbl ftbl_gfx3d_clk_src[] =;

static struct clk_rcg2 gfx3d_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 struct clk_rcg2 hdmi_app_clk_src =;

static struct clk_rcg2 hdmi_pclk_clk_src =;

static const struct freq_tbl ftbl_mdp_clk_src[] =;

static struct clk_rcg2 mdp_clk_src =;

static const struct freq_tbl ftbl_pcie_0_aux_clk_src[] =;

static struct clk_rcg2 pcie_0_aux_clk_src =;

static const struct freq_tbl ftbl_pcie_0_pipe_clk_src[] =;

static struct clk_rcg2 pcie_0_pipe_clk_src =;

static struct clk_rcg2 pclk0_clk_src =;

static const struct freq_tbl ftbl_pdm2_clk_src[] =;

static struct clk_rcg2 pdm2_clk_src =;

static const struct freq_tbl ftbl_sdcc1_apps_clk_src[] =;

static struct clk_rcg2 sdcc1_apps_clk_src =;

static const 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 usb20_mock_utmi_clk_src =;

static const struct freq_tbl ftbl_usb30_master_clk_src[] =;

static struct clk_rcg2 usb30_master_clk_src =;

static struct clk_rcg2 usb30_mock_utmi_clk_src =;

static struct clk_rcg2 usb3_phy_aux_clk_src =;

static const struct freq_tbl ftbl_usb_hs_system_clk_src[] =;

static struct clk_rcg2 usb_hs_system_clk_src =;

static struct clk_rcg2 vsync_clk_src =;

static const struct freq_tbl ftbl_cdsp_bimc_clk_src[] =;

static struct clk_rcg2 cdsp_bimc_clk_src =;

static struct clk_branch gcc_apss_ahb_clk =;

static struct clk_branch gcc_apss_tcu_clk =;

static struct clk_branch gcc_bimc_gfx_clk =;

static struct clk_branch gcc_bimc_gpu_clk =;

static struct clk_branch gcc_bimc_cdsp_clk =;

static struct clk_branch gcc_bimc_mdss_clk =;

static struct clk_branch gcc_blsp1_ahb_clk =;

static struct clk_branch gcc_dcc_clk =;

static struct clk_branch gcc_dcc_xo_clk =;

static struct clk_branch gcc_blsp1_qup0_i2c_apps_clk =;

static struct clk_branch gcc_blsp1_qup0_spi_apps_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_qup4_i2c_apps_clk =;

static struct clk_branch gcc_blsp1_qup4_spi_apps_clk =;

static struct clk_branch gcc_blsp1_uart0_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_blsp1_uart3_apps_clk =;

static struct clk_branch gcc_blsp2_ahb_clk =;

static struct clk_branch gcc_blsp2_qup0_i2c_apps_clk =;

static struct clk_branch gcc_blsp2_qup0_spi_apps_clk =;

static struct clk_branch gcc_blsp2_uart0_apps_clk =;

static struct clk_branch gcc_boot_rom_ahb_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_eth_axi_clk =;

static struct clk_branch gcc_eth_ptp_clk =;

static struct clk_branch gcc_eth_rgmii_clk =;

static struct clk_branch gcc_eth_slave_ahb_clk =;

static struct clk_branch gcc_geni_ir_s_clk =;

static struct clk_branch gcc_geni_ir_h_clk =;

static struct clk_branch gcc_gfx_tcu_clk =;

static struct clk_branch gcc_gfx_tbu_clk =;

static struct clk_branch gcc_cdsp_tbu_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_gtcu_ahb_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_esc0_clk =;

static struct clk_branch gcc_mdss_hdmi_app_clk =;

static struct clk_branch gcc_mdss_hdmi_pclk_clk =;

static struct clk_branch gcc_mdss_mdp_clk =;

static struct clk_branch gcc_mdss_pclk0_clk =;

static struct clk_branch gcc_mdss_vsync_clk =;

static struct clk_branch gcc_oxili_ahb_clk =;

static struct clk_branch gcc_oxili_gfx3d_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_mstr_axi_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_pcnoc_usb2_clk =;

static struct clk_branch gcc_pcnoc_usb3_clk =;

static struct clk_branch gcc_pdm2_clk =;

static struct clk_branch gcc_pdm_ahb_clk =;

static struct clk_branch gcc_prng_ahb_clk =;

/* PWM clks do not have XO as parent as src clk is a balance root */
static struct clk_branch gcc_pwm0_xo512_clk =;

static struct clk_branch gcc_pwm1_xo512_clk =;

static struct clk_branch gcc_pwm2_xo512_clk =;

static struct clk_branch gcc_qdss_dap_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_cdsp_cfg_ahb_clk =;

static struct clk_branch gcc_sdcc2_ahb_clk =;

static struct clk_branch gcc_sdcc2_apps_clk =;

static struct clk_branch gcc_smmu_cfg_clk =;

static struct clk_branch gcc_sys_noc_usb3_clk =;

static struct clk_branch gcc_usb_hs_inactivity_timers_clk =;

static struct clk_branch gcc_usb20_mock_utmi_clk =;

static struct clk_branch gcc_usb2a_phy_sleep_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_phy_aux_clk =;

static struct clk_branch gcc_usb3_phy_pipe_clk =;

static struct clk_branch gcc_usb_hs_phy_cfg_ahb_clk =;

static struct clk_branch gcc_usb_hs_system_clk =;

static struct clk_branch gcc_wdsp_q6ss_ahbs_clk =;

static struct clk_branch gcc_wdsp_q6ss_axim_clk =;

static struct gdsc mdss_gdsc =;

static struct gdsc oxili_gdsc =;

static struct clk_hw *gcc_qcs404_hws[] =;

static struct clk_regmap *gcc_qcs404_clocks[] =;

static struct gdsc *gcc_qcs404_gdscs[] =;

static const struct qcom_reset_map gcc_qcs404_resets[] =;

static const struct regmap_config gcc_qcs404_regmap_config =;

static const struct qcom_cc_desc gcc_qcs404_desc =;

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

static int gcc_qcs404_probe(struct platform_device *pdev)
{}

static struct platform_driver gcc_qcs404_driver =;

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

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

MODULE_DESCRIPTION();
MODULE_LICENSE();