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

// SPDX-License-Identifier: GPL-2.0-only
/*
 * Copyright (c) 2014, 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/of_platform.h>
#include <linux/clk-provider.h>
#include <linux/regmap.h>
#include <linux/reset-controller.h>

#include <dt-bindings/clock/qcom,gcc-ipq806x.h>
#include <dt-bindings/reset/qcom,gcc-ipq806x.h>

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

static const struct clk_parent_data gcc_pxo[] =;

static struct clk_pll pll0 =;

static struct clk_regmap pll0_vote =;

static struct clk_pll pll3 =;

static struct clk_regmap pll4_vote =;

static struct clk_pll pll8 =;

static struct clk_regmap pll8_vote =;

static struct hfpll_data hfpll0_data =;

static struct clk_hfpll hfpll0 =;

static struct hfpll_data hfpll1_data =;

static struct clk_hfpll hfpll1 =;

static struct hfpll_data hfpll_l2_data =;

static struct clk_hfpll hfpll_l2 =;

static struct clk_pll pll14 =;

static struct clk_regmap pll14_vote =;

#define NSS_PLL_RATE(f, _l, _m, _n, i)

static struct pll_freq_tbl pll18_freq_tbl[] =;

static struct clk_pll pll18 =;

static struct clk_pll pll11 =;

enum {};

static const struct parent_map gcc_pxo_pll8_map[] =;

static const struct clk_parent_data gcc_pxo_pll8[] =;

static const struct parent_map gcc_pxo_pll8_cxo_map[] =;

static const struct clk_parent_data gcc_pxo_pll8_cxo[] =;

static const struct parent_map gcc_pxo_pll3_map[] =;

static const struct parent_map gcc_pxo_pll3_sata_map[] =;

static const struct clk_parent_data gcc_pxo_pll3[] =;

static const struct parent_map gcc_pxo_pll8_pll0_map[] =;

static const struct clk_parent_data gcc_pxo_pll8_pll0[] =;

static const struct parent_map gcc_pxo_pll8_pll14_pll18_pll0_map[] =;

static const struct clk_parent_data gcc_pxo_pll8_pll14_pll18_pll0[] =;

static const struct parent_map gcc_pxo_pll8_pll0_pll14_pll18_pll11_map[] =;

static const struct clk_parent_data gcc_pxo_pll8_pll0_pll14_pll18_pll11[] =;

static const struct parent_map gcc_pxo_pll3_pll0_pll14_pll18_pll11_map[] =;

static const struct clk_parent_data gcc_pxo_pll3_pll0_pll14_pll18_pll11[] =;

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 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 clk_rcg gsbi6_uart_src =;

static struct clk_branch gsbi6_uart_clk =;

static struct clk_rcg gsbi7_uart_src =;

static struct clk_branch gsbi7_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 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 struct clk_rcg gsbi6_qup_src =;

static struct clk_branch gsbi6_qup_clk =;

static struct clk_rcg gsbi7_qup_src =;

static struct clk_branch gsbi7_qup_clk =;

static struct clk_branch gsbi1_h_clk =;

static struct clk_branch gsbi2_h_clk =;

static struct clk_branch gsbi4_h_clk =;

static struct clk_branch gsbi5_h_clk =;

static struct clk_branch gsbi6_h_clk =;

static struct clk_branch gsbi7_h_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 sdc3_src =;

static struct clk_branch sdc3_clk =;

static struct clk_branch sdc1_h_clk =;

static struct clk_branch sdc3_h_clk =;

static const struct freq_tbl clk_tbl_tsif_ref[] =;

static struct clk_rcg tsif_ref_src =;

static struct clk_branch tsif_ref_clk =;

static struct clk_branch tsif_h_clk =;

static struct clk_branch dma_bam_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 const struct freq_tbl clk_tbl_pcie_ref[] =;

static struct clk_rcg pcie_ref_src =;

static struct clk_branch pcie_ref_src_clk =;

static struct clk_branch pcie_a_clk =;

static struct clk_branch pcie_aux_clk =;

static struct clk_branch pcie_h_clk =;

static struct clk_branch pcie_phy_clk =;

static struct clk_rcg pcie1_ref_src =;

static struct clk_branch pcie1_ref_src_clk =;

static struct clk_branch pcie1_a_clk =;

static struct clk_branch pcie1_aux_clk =;

static struct clk_branch pcie1_h_clk =;

static struct clk_branch pcie1_phy_clk =;

static struct clk_rcg pcie2_ref_src =;

static struct clk_branch pcie2_ref_src_clk =;

static struct clk_branch pcie2_a_clk =;

static struct clk_branch pcie2_aux_clk =;

static struct clk_branch pcie2_h_clk =;

static struct clk_branch pcie2_phy_clk =;

static const struct freq_tbl clk_tbl_sata_ref[] =;

static struct clk_rcg sata_ref_src =;

static struct clk_branch sata_rxoob_clk =;

static struct clk_branch sata_pmalive_clk =;

static struct clk_branch sata_phy_ref_clk =;

static struct clk_branch sata_a_clk =;

static struct clk_branch sata_h_clk =;

static struct clk_branch sfab_sata_s_h_clk =;

static struct clk_branch sata_phy_cfg_clk =;

static const struct freq_tbl clk_tbl_usb30_master[] =;

static struct clk_rcg usb30_master_clk_src =;

static struct clk_branch usb30_0_branch_clk =;

static struct clk_branch usb30_1_branch_clk =;

static const struct freq_tbl clk_tbl_usb30_utmi[] =;

static struct clk_rcg usb30_utmi_clk =;

static struct clk_branch usb30_0_utmi_clk_ctl =;

static struct clk_branch usb30_1_utmi_clk_ctl =;

static const struct freq_tbl clk_tbl_usb[] =;

static struct clk_rcg usb_hs1_xcvr_clk_src =;

static struct clk_branch usb_hs1_xcvr_clk =;

static struct clk_branch usb_hs1_h_clk =;

static struct clk_rcg usb_fs1_xcvr_clk_src =;

static struct clk_branch usb_fs1_xcvr_clk =;

static struct clk_branch usb_fs1_sys_clk =;

static struct clk_branch usb_fs1_h_clk =;

static struct clk_branch ebi2_clk =;

static struct clk_branch ebi2_aon_clk =;

static const struct freq_tbl clk_tbl_gmac[] =;

static struct clk_dyn_rcg gmac_core1_src =;

static struct clk_branch gmac_core1_clk =;

static struct clk_dyn_rcg gmac_core2_src =;

static struct clk_branch gmac_core2_clk =;

static struct clk_dyn_rcg gmac_core3_src =;

static struct clk_branch gmac_core3_clk =;

static struct clk_dyn_rcg gmac_core4_src =;

static struct clk_branch gmac_core4_clk =;

static const struct freq_tbl clk_tbl_nss_tcm[] =;

static struct clk_dyn_rcg nss_tcm_src =;

static struct clk_branch nss_tcm_clk =;

static const struct freq_tbl clk_tbl_nss_ipq8064[] =;

static const struct freq_tbl clk_tbl_nss_ipq8065[] =;

static struct clk_dyn_rcg ubi32_core1_src_clk =;

static struct clk_dyn_rcg ubi32_core2_src_clk =;

static const struct freq_tbl clk_tbl_ce5_core[] =;

static struct clk_dyn_rcg ce5_core_src =;

static struct clk_branch ce5_core_clk =;

static const struct freq_tbl clk_tbl_ce5_a_clk[] =;

static struct clk_dyn_rcg ce5_a_clk_src =;

static struct clk_branch ce5_a_clk =;

static const struct freq_tbl clk_tbl_ce5_h_clk[] =;

static struct clk_dyn_rcg ce5_h_clk_src =;

static struct clk_branch ce5_h_clk =;

static struct clk_regmap *gcc_ipq806x_clks[] =;

static const struct qcom_reset_map gcc_ipq806x_resets[] =;

static const struct regmap_config gcc_ipq806x_regmap_config =;

static const struct qcom_cc_desc gcc_ipq806x_desc =;

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

static int gcc_ipq806x_probe(struct platform_device *pdev)
{}

static struct platform_driver gcc_ipq806x_driver =;

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

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

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