#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-mdm9607.h>
#include "common.h"
#include "clk-regmap.h"
#include "clk-alpha-pll.h"
#include "clk-pll.h"
#include "clk-rcg.h"
#include "clk-branch.h"
#include "reset.h"
#include "gdsc.h"
enum { … };
static struct clk_alpha_pll gpll0_early = …;
static struct clk_alpha_pll_postdiv gpll0 = …;
static const struct parent_map gcc_xo_gpll0_map[] = …;
static const struct clk_parent_data gcc_xo_gpll0[] = …;
static struct clk_pll gpll1 = …;
static struct clk_regmap gpll1_vote = …;
static const struct parent_map gcc_xo_gpll0_gpll1_sleep_map[] = …;
static const struct clk_parent_data gcc_xo_gpll0_gpll1_sleep[] = …;
static struct clk_alpha_pll gpll2_early = …;
static struct clk_alpha_pll_postdiv gpll2 = …;
static const struct parent_map gcc_xo_gpll0_gpll2_map[] = …;
static const struct clk_parent_data gcc_xo_gpll0_gpll2[] = …;
static const struct parent_map gcc_xo_gpll0_gpll1_gpll2_map[] = …;
static const struct clk_parent_data gcc_xo_gpll0_gpll1_gpll2[] = …;
static const struct freq_tbl ftbl_apss_ahb_clk[] = …;
static struct clk_rcg2 apss_ahb_clk_src = …;
static struct clk_pll bimc_pll = …;
static struct clk_regmap bimc_pll_vote = …;
static const struct parent_map gcc_xo_gpll0_bimc_map[] = …;
static const struct clk_parent_data gcc_xo_gpll0_bimc[] = …;
static const struct freq_tbl ftbl_pcnoc_bfdcd_clk_src[] = …;
static struct clk_rcg2 pcnoc_bfdcd_clk_src = …;
static struct clk_rcg2 system_noc_bfdcd_clk_src = …;
static const struct freq_tbl ftbl_gcc_blsp1_qup1_6_i2c_apps_clk[] = …;
static struct clk_rcg2 blsp1_qup1_i2c_apps_clk_src = …;
static const struct freq_tbl ftbl_gcc_blsp1_qup1_6_spi_apps_clk[] = …;
static struct clk_rcg2 blsp1_qup1_spi_apps_clk_src = …;
static struct clk_rcg2 blsp1_qup2_i2c_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 struct clk_rcg2 blsp1_qup5_i2c_apps_clk_src = …;
static struct clk_rcg2 blsp1_qup5_spi_apps_clk_src = …;
static struct clk_rcg2 blsp1_qup6_i2c_apps_clk_src = …;
static struct clk_rcg2 blsp1_qup6_spi_apps_clk_src = …;
static const struct freq_tbl ftbl_gcc_blsp1_uart1_6_apps_clk[] = …;
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 blsp1_uart4_apps_clk_src = …;
static struct clk_rcg2 blsp1_uart5_apps_clk_src = …;
static struct clk_rcg2 blsp1_uart6_apps_clk_src = …;
static const struct freq_tbl ftbl_gcc_crypto_clk[] = …;
static struct clk_rcg2 crypto_clk_src = …;
static const struct freq_tbl ftbl_gcc_gp1_3_clk[] = …;
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_gcc_pdm2_clk[] = …;
static struct clk_rcg2 pdm2_clk_src = …;
static const struct freq_tbl ftbl_gcc_sdcc_apps_clk[] = …;
static struct clk_rcg2 sdcc1_apps_clk_src = …;
static struct clk_rcg2 sdcc2_apps_clk_src = …;
static const struct freq_tbl ftbl_gcc_apss_tcu_clk[] = …;
static struct clk_rcg2 apss_tcu_clk_src = …;
static const struct freq_tbl ftbl_gcc_usb_hs_system_clk[] = …;
static struct clk_rcg2 usb_hs_system_clk_src = …;
static const struct freq_tbl ftbl_usb_hsic_clk_src[] = …;
static struct clk_rcg2 usb_hsic_clk_src = …;
static const struct freq_tbl ftbl_usb_hsic_io_cal_clk_src[] = …;
static struct clk_rcg2 usb_hsic_io_cal_clk_src = …;
static const struct freq_tbl ftbl_usb_hsic_system_clk_src[] = …;
static struct clk_rcg2 usb_hsic_system_clk_src = …;
static struct clk_branch gcc_blsp1_ahb_clk = …;
static struct clk_branch gcc_blsp1_sleep_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_qup5_i2c_apps_clk = …;
static struct clk_branch gcc_blsp1_qup5_spi_apps_clk = …;
static struct clk_branch gcc_blsp1_qup6_i2c_apps_clk = …;
static struct clk_branch gcc_blsp1_qup6_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_blsp1_uart3_apps_clk = …;
static struct clk_branch gcc_blsp1_uart4_apps_clk = …;
static struct clk_branch gcc_blsp1_uart5_apps_clk = …;
static struct clk_branch gcc_blsp1_uart6_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_gp1_clk = …;
static struct clk_branch gcc_gp2_clk = …;
static struct clk_branch gcc_gp3_clk = …;
static struct clk_branch gcc_mss_cfg_ahb_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_sdcc1_ahb_clk = …;
static struct clk_branch gcc_sdcc1_apps_clk = …;
static struct clk_branch gcc_sdcc2_ahb_clk = …;
static struct clk_branch gcc_sdcc2_apps_clk = …;
static struct clk_rcg2 bimc_ddr_clk_src = …;
static struct clk_branch gcc_mss_q6_bimc_axi_clk = …;
static struct clk_branch gcc_apss_tcu_clk = …;
static struct clk_branch gcc_smmu_cfg_clk = …;
static struct clk_branch gcc_qdss_dap_clk = …;
static struct clk_branch gcc_usb2a_phy_sleep_clk = …;
static struct clk_branch gcc_usb_hs_phy_cfg_ahb_clk = …;
static struct clk_branch gcc_usb_hs_ahb_clk = …;
static struct clk_branch gcc_usb_hs_system_clk = …;
static struct clk_branch gcc_apss_ahb_clk = …;
static struct clk_branch gcc_apss_axi_clk = …;
static struct clk_regmap *gcc_mdm9607_clocks[] = …;
static const struct qcom_reset_map gcc_mdm9607_resets[] = …;
static const struct regmap_config gcc_mdm9607_regmap_config = …;
static const struct qcom_cc_desc gcc_mdm9607_desc = …;
static const struct of_device_id gcc_mdm9607_match_table[] = …;
MODULE_DEVICE_TABLE(of, gcc_mdm9607_match_table);
static int gcc_mdm9607_probe(struct platform_device *pdev)
{ … }
static struct platform_driver gcc_mdm9607_driver = …;
static int __init gcc_mdm9607_init(void)
{ … }
core_initcall(gcc_mdm9607_init);
static void __exit gcc_mdm9607_exit(void)
{ … }
module_exit(gcc_mdm9607_exit);
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;