#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-mdm9615.h>
#include <dt-bindings/reset/qcom,gcc-mdm9615.h>
#include "common.h"
#include "clk-regmap.h"
#include "clk-pll.h"
#include "clk-rcg.h"
#include "clk-branch.h"
#include "reset.h"
enum { … };
enum { … };
static const struct parent_map gcc_cxo_map[] = …;
static const struct clk_parent_data gcc_cxo[] = …;
static struct clk_pll pll0 = …;
static struct clk_regmap pll0_vote = …;
static struct clk_regmap pll4_vote = …;
static struct clk_pll pll8 = …;
static struct clk_regmap pll8_vote = …;
static struct clk_pll pll14 = …;
static struct clk_regmap pll14_vote = …;
static const struct parent_map gcc_cxo_pll8_map[] = …;
static const struct clk_parent_data gcc_cxo_pll8[] = …;
static const struct parent_map gcc_cxo_pll14_map[] = …;
static const struct clk_parent_data gcc_cxo_pll14[] = …;
static struct freq_tbl clk_tbl_gsbi_uart[] = …;
static struct clk_rcg gsbi1_uart_src = …;
static struct clk_branch gsbi1_uart_clk = …;
static struct clk_rcg gsbi2_uart_src = …;
static struct clk_branch gsbi2_uart_clk = …;
static struct clk_rcg gsbi3_uart_src = …;
static struct clk_branch gsbi3_uart_clk = …;
static struct clk_rcg gsbi4_uart_src = …;
static struct clk_branch gsbi4_uart_clk = …;
static struct clk_rcg gsbi5_uart_src = …;
static struct clk_branch gsbi5_uart_clk = …;
static struct freq_tbl clk_tbl_gsbi_qup[] = …;
static struct clk_rcg gsbi1_qup_src = …;
static struct clk_branch gsbi1_qup_clk = …;
static struct clk_rcg gsbi2_qup_src = …;
static struct clk_branch gsbi2_qup_clk = …;
static struct clk_rcg gsbi3_qup_src = …;
static struct clk_branch gsbi3_qup_clk = …;
static struct clk_rcg gsbi4_qup_src = …;
static struct clk_branch gsbi4_qup_clk = …;
static struct clk_rcg gsbi5_qup_src = …;
static struct clk_branch gsbi5_qup_clk = …;
static const struct freq_tbl clk_tbl_gp[] = …;
static struct clk_rcg gp0_src = …;
static struct clk_branch gp0_clk = …;
static struct clk_rcg gp1_src = …;
static struct clk_branch gp1_clk = …;
static struct clk_rcg gp2_src = …;
static struct clk_branch gp2_clk = …;
static struct clk_branch pmem_clk = …;
static struct clk_rcg prng_src = …;
static struct clk_branch prng_clk = …;
static const struct freq_tbl clk_tbl_sdc[] = …;
static struct clk_rcg sdc1_src = …;
static struct clk_branch sdc1_clk = …;
static struct clk_rcg sdc2_src = …;
static struct clk_branch sdc2_clk = …;
static const struct freq_tbl clk_tbl_usb[] = …;
static struct clk_rcg usb_hs1_xcvr_src = …;
static struct clk_branch usb_hs1_xcvr_clk = …;
static struct clk_rcg usb_hsic_xcvr_fs_src = …;
static struct clk_branch usb_hsic_xcvr_fs_clk = …;
static const struct freq_tbl clk_tbl_usb_hs1_system[] = …;
static struct clk_rcg usb_hs1_system_src = …;
static struct clk_branch usb_hs1_system_clk = …;
static const struct freq_tbl clk_tbl_usb_hsic_system[] = …;
static struct clk_rcg usb_hsic_system_src = …;
static struct clk_branch usb_hsic_system_clk = …;
static const struct freq_tbl clk_tbl_usb_hsic_hsic[] = …;
static struct clk_rcg usb_hsic_hsic_src = …;
static struct clk_branch usb_hsic_hsic_clk = …;
static struct clk_branch usb_hsic_hsio_cal_clk = …;
static struct clk_branch ce1_core_clk = …;
static struct clk_branch ce1_h_clk = …;
static struct clk_branch dma_bam_h_clk = …;
static struct clk_branch gsbi1_h_clk = …;
static struct clk_branch gsbi2_h_clk = …;
static struct clk_branch gsbi3_h_clk = …;
static struct clk_branch gsbi4_h_clk = …;
static struct clk_branch gsbi5_h_clk = …;
static struct clk_branch usb_hs1_h_clk = …;
static struct clk_branch usb_hsic_h_clk = …;
static struct clk_branch sdc1_h_clk = …;
static struct clk_branch sdc2_h_clk = …;
static struct clk_branch adm0_clk = …;
static struct clk_branch adm0_pbus_clk = …;
static struct clk_branch pmic_arb0_h_clk = …;
static struct clk_branch pmic_arb1_h_clk = …;
static struct clk_branch pmic_ssbi2_clk = …;
static struct clk_branch rpm_msg_ram_h_clk = …;
static struct clk_branch ebi2_clk = …;
static struct clk_branch ebi2_aon_clk = …;
static struct clk_regmap *gcc_mdm9615_clks[] = …;
static const struct qcom_reset_map gcc_mdm9615_resets[] = …;
static const struct regmap_config gcc_mdm9615_regmap_config = …;
static const struct qcom_cc_desc gcc_mdm9615_desc = …;
static const struct of_device_id gcc_mdm9615_match_table[] = …;
MODULE_DEVICE_TABLE(of, gcc_mdm9615_match_table);
static int gcc_mdm9615_probe(struct platform_device *pdev)
{ … }
static struct platform_driver gcc_mdm9615_driver = …;
static int __init gcc_mdm9615_init(void)
{ … }
core_initcall(gcc_mdm9615_init);
static void __exit gcc_mdm9615_exit(void)
{ … }
module_exit(gcc_mdm9615_exit);
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;
MODULE_ALIAS(…) …;