#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,sdx75-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 "gdsc.h"
#include "reset.h"
enum { … };
enum { … };
static struct clk_alpha_pll gpll0 = …;
static const struct clk_div_table post_div_table_gpll0_out_even[] = …;
static struct clk_alpha_pll_postdiv gpll0_out_even = …;
static struct clk_alpha_pll gpll4 = …;
static struct clk_alpha_pll gpll5 = …;
static struct clk_alpha_pll gpll6 = …;
static struct clk_alpha_pll gpll8 = …;
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 parent_map gcc_parent_map_15[] = …;
static const struct clk_parent_data gcc_parent_data_15[] = …;
static const struct parent_map gcc_parent_map_17[] = …;
static const struct clk_parent_data gcc_parent_data_17[] = …;
static const struct parent_map gcc_parent_map_18[] = …;
static const struct clk_parent_data gcc_parent_data_18[] = …;
static const struct parent_map gcc_parent_map_19[] = …;
static const struct clk_parent_data gcc_parent_data_19[] = …;
static struct clk_regmap_mux gcc_emac0_cc_sgmiiphy_rx_clk_src = …;
static struct clk_regmap_mux gcc_emac0_cc_sgmiiphy_tx_clk_src = …;
static struct clk_regmap_mux gcc_emac0_sgmiiphy_mac_rclk_src = …;
static struct clk_regmap_mux gcc_emac0_sgmiiphy_mac_tclk_src = …;
static struct clk_regmap_mux gcc_emac1_cc_sgmiiphy_rx_clk_src = …;
static struct clk_regmap_mux gcc_emac1_cc_sgmiiphy_tx_clk_src = …;
static struct clk_regmap_mux gcc_emac1_sgmiiphy_mac_rclk_src = …;
static struct clk_regmap_mux gcc_emac1_sgmiiphy_mac_tclk_src = …;
static struct clk_regmap_phy_mux gcc_pcie_1_pipe_clk_src = …;
static struct clk_regmap_phy_mux gcc_pcie_2_pipe_clk_src = …;
static struct clk_regmap_mux gcc_pcie_aux_clk_src = …;
static struct clk_regmap_phy_mux gcc_pcie_pipe_clk_src = …;
static struct clk_regmap_mux gcc_usb3_phy_pipe_clk_src = …;
static const struct freq_tbl ftbl_gcc_eee_emac0_clk_src[] = …;
static struct clk_rcg2 gcc_eee_emac0_clk_src = …;
static struct clk_rcg2 gcc_eee_emac1_clk_src = …;
static const struct freq_tbl ftbl_gcc_emac0_phy_aux_clk_src[] = …;
static struct clk_rcg2 gcc_emac0_phy_aux_clk_src = …;
static const struct freq_tbl ftbl_gcc_emac0_ptp_clk_src[] = …;
static struct clk_rcg2 gcc_emac0_ptp_clk_src = …;
static const struct freq_tbl ftbl_gcc_emac0_rgmii_clk_src[] = …;
static struct clk_rcg2 gcc_emac0_rgmii_clk_src = …;
static struct clk_rcg2 gcc_emac1_phy_aux_clk_src = …;
static struct clk_rcg2 gcc_emac1_ptp_clk_src = …;
static struct clk_rcg2 gcc_emac1_rgmii_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 struct clk_rcg2 gcc_gp3_clk_src = …;
static struct clk_rcg2 gcc_pcie_1_aux_phy_clk_src = …;
static const struct freq_tbl ftbl_gcc_pcie_1_phy_rchng_clk_src[] = …;
static struct clk_rcg2 gcc_pcie_1_phy_rchng_clk_src = …;
static struct clk_rcg2 gcc_pcie_2_aux_phy_clk_src = …;
static struct clk_rcg2 gcc_pcie_2_phy_rchng_clk_src = …;
static struct clk_rcg2 gcc_pcie_aux_phy_clk_src = …;
static struct clk_rcg2 gcc_pcie_rchng_phy_clk_src = …;
static const struct freq_tbl ftbl_gcc_pdm2_clk_src[] = …;
static struct clk_rcg2 gcc_pdm2_clk_src = …;
static const struct freq_tbl ftbl_gcc_qupv3_wrap0_s0_clk_src[] = …;
static struct clk_init_data gcc_qupv3_wrap0_s0_clk_src_init = …;
static struct clk_rcg2 gcc_qupv3_wrap0_s0_clk_src = …;
static struct clk_init_data gcc_qupv3_wrap0_s1_clk_src_init = …;
static struct clk_rcg2 gcc_qupv3_wrap0_s1_clk_src = …;
static struct clk_init_data gcc_qupv3_wrap0_s2_clk_src_init = …;
static struct clk_rcg2 gcc_qupv3_wrap0_s2_clk_src = …;
static struct clk_init_data gcc_qupv3_wrap0_s3_clk_src_init = …;
static struct clk_rcg2 gcc_qupv3_wrap0_s3_clk_src = …;
static struct clk_init_data gcc_qupv3_wrap0_s4_clk_src_init = …;
static struct clk_rcg2 gcc_qupv3_wrap0_s4_clk_src = …;
static struct clk_init_data gcc_qupv3_wrap0_s5_clk_src_init = …;
static struct clk_rcg2 gcc_qupv3_wrap0_s5_clk_src = …;
static struct clk_init_data gcc_qupv3_wrap0_s6_clk_src_init = …;
static struct clk_rcg2 gcc_qupv3_wrap0_s6_clk_src = …;
static struct clk_init_data gcc_qupv3_wrap0_s7_clk_src_init = …;
static struct clk_rcg2 gcc_qupv3_wrap0_s7_clk_src = …;
static struct clk_init_data gcc_qupv3_wrap0_s8_clk_src_init = …;
static struct clk_rcg2 gcc_qupv3_wrap0_s8_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_sdcc2_apps_clk_src[] = …;
static struct clk_rcg2 gcc_sdcc2_apps_clk_src = …;
static const struct freq_tbl ftbl_gcc_usb30_master_clk_src[] = …;
static struct clk_rcg2 gcc_usb30_master_clk_src = …;
static struct clk_rcg2 gcc_usb30_mock_utmi_clk_src = …;
static const struct freq_tbl ftbl_gcc_usb3_phy_aux_clk_src[] = …;
static struct clk_rcg2 gcc_usb3_phy_aux_clk_src = …;
static struct clk_regmap_div gcc_pcie_1_pipe_div2_clk_src = …;
static struct clk_regmap_div gcc_pcie_2_pipe_div2_clk_src = …;
static struct clk_regmap_div gcc_usb30_mock_utmi_postdiv_clk_src = …;
static struct clk_branch gcc_boot_rom_ahb_clk = …;
static struct clk_branch gcc_eee_emac0_clk = …;
static struct clk_branch gcc_eee_emac1_clk = …;
static struct clk_branch gcc_emac0_axi_clk = …;
static struct clk_branch gcc_emac0_cc_sgmiiphy_rx_clk = …;
static struct clk_branch gcc_emac0_cc_sgmiiphy_tx_clk = …;
static struct clk_branch gcc_emac0_phy_aux_clk = …;
static struct clk_branch gcc_emac0_ptp_clk = …;
static struct clk_branch gcc_emac0_rgmii_clk = …;
static struct clk_branch gcc_emac0_rpcs_rx_clk = …;
static struct clk_branch gcc_emac0_rpcs_tx_clk = …;
static struct clk_branch gcc_emac0_slv_ahb_clk = …;
static struct clk_branch gcc_emac0_xgxs_rx_clk = …;
static struct clk_branch gcc_emac0_xgxs_tx_clk = …;
static struct clk_branch gcc_emac1_axi_clk = …;
static struct clk_branch gcc_emac1_cc_sgmiiphy_rx_clk = …;
static struct clk_branch gcc_emac1_cc_sgmiiphy_tx_clk = …;
static struct clk_branch gcc_emac1_phy_aux_clk = …;
static struct clk_branch gcc_emac1_ptp_clk = …;
static struct clk_branch gcc_emac1_rgmii_clk = …;
static struct clk_branch gcc_emac1_rpcs_rx_clk = …;
static struct clk_branch gcc_emac1_rpcs_tx_clk = …;
static struct clk_branch gcc_emac1_slv_ahb_clk = …;
static struct clk_branch gcc_emac1_xgxs_rx_clk = …;
static struct clk_branch gcc_emac1_xgxs_tx_clk = …;
static struct clk_branch gcc_emac_0_clkref_en = …;
static struct clk_branch gcc_emac_1_clkref_en = …;
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_pcie_0_clkref_en = …;
static struct clk_branch gcc_pcie_1_aux_clk = …;
static struct clk_branch gcc_pcie_1_cfg_ahb_clk = …;
static struct clk_branch gcc_pcie_1_clkref_en = …;
static struct clk_branch gcc_pcie_1_mstr_axi_clk = …;
static struct clk_branch gcc_pcie_1_phy_rchng_clk = …;
static struct clk_branch gcc_pcie_1_pipe_clk = …;
static struct clk_branch gcc_pcie_1_pipe_div2_clk = …;
static struct clk_branch gcc_pcie_1_slv_axi_clk = …;
static struct clk_branch gcc_pcie_1_slv_q2a_axi_clk = …;
static struct clk_branch gcc_pcie_2_aux_clk = …;
static struct clk_branch gcc_pcie_2_cfg_ahb_clk = …;
static struct clk_branch gcc_pcie_2_clkref_en = …;
static struct clk_branch gcc_pcie_2_mstr_axi_clk = …;
static struct clk_branch gcc_pcie_2_phy_rchng_clk = …;
static struct clk_branch gcc_pcie_2_pipe_clk = …;
static struct clk_branch gcc_pcie_2_pipe_div2_clk = …;
static struct clk_branch gcc_pcie_2_slv_axi_clk = …;
static struct clk_branch gcc_pcie_2_slv_q2a_axi_clk = …;
static struct clk_branch gcc_pcie_aux_clk = …;
static struct clk_branch gcc_pcie_cfg_ahb_clk = …;
static struct clk_branch gcc_pcie_mstr_axi_clk = …;
static struct clk_branch gcc_pcie_pipe_clk = …;
static struct clk_branch gcc_pcie_rchng_phy_clk = …;
static struct clk_branch gcc_pcie_sleep_clk = …;
static struct clk_branch gcc_pcie_slv_axi_clk = …;
static struct clk_branch gcc_pcie_slv_q2a_axi_clk = …;
static struct clk_branch gcc_pdm2_clk = …;
static struct clk_branch gcc_pdm_ahb_clk = …;
static struct clk_branch gcc_pdm_xo4_clk = …;
static struct clk_branch gcc_qupv3_wrap0_core_2x_clk = …;
static struct clk_branch gcc_qupv3_wrap0_core_clk = …;
static struct clk_branch gcc_qupv3_wrap0_s0_clk = …;
static struct clk_branch gcc_qupv3_wrap0_s1_clk = …;
static struct clk_branch gcc_qupv3_wrap0_s2_clk = …;
static struct clk_branch gcc_qupv3_wrap0_s3_clk = …;
static struct clk_branch gcc_qupv3_wrap0_s4_clk = …;
static struct clk_branch gcc_qupv3_wrap0_s5_clk = …;
static struct clk_branch gcc_qupv3_wrap0_s6_clk = …;
static struct clk_branch gcc_qupv3_wrap0_s7_clk = …;
static struct clk_branch gcc_qupv3_wrap0_s8_clk = …;
static struct clk_branch gcc_qupv3_wrap_0_m_ahb_clk = …;
static struct clk_branch gcc_qupv3_wrap_0_s_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_branch gcc_usb2_clkref_en = …;
static struct clk_branch gcc_usb30_master_clk = …;
static struct clk_branch gcc_usb30_mock_utmi_clk = …;
static struct clk_branch gcc_usb30_mstr_axi_clk = …;
static struct clk_branch gcc_usb30_sleep_clk = …;
static struct clk_branch gcc_usb30_slv_ahb_clk = …;
static struct clk_branch gcc_usb3_phy_aux_clk = …;
static struct clk_branch gcc_usb3_phy_pipe_clk = …;
static struct clk_branch gcc_usb3_prim_clkref_en = …;
static struct clk_branch gcc_usb_phy_cfg_ahb2phy_clk = …;
static struct gdsc gcc_emac0_gdsc = …;
static struct gdsc gcc_emac1_gdsc = …;
static struct gdsc gcc_pcie_1_gdsc = …;
static struct gdsc gcc_pcie_1_phy_gdsc = …;
static struct gdsc gcc_pcie_2_gdsc = …;
static struct gdsc gcc_pcie_2_phy_gdsc = …;
static struct gdsc gcc_pcie_gdsc = …;
static struct gdsc gcc_pcie_phy_gdsc = …;
static struct gdsc gcc_usb30_gdsc = …;
static struct gdsc gcc_usb3_phy_gdsc = …;
static struct clk_regmap *gcc_sdx75_clocks[] = …;
static struct gdsc *gcc_sdx75_gdscs[] = …;
static const struct qcom_reset_map gcc_sdx75_resets[] = …;
static const struct clk_rcg_dfs_data gcc_dfs_clocks[] = …;
static const struct regmap_config gcc_sdx75_regmap_config = …;
static const struct qcom_cc_desc gcc_sdx75_desc = …;
static const struct of_device_id gcc_sdx75_match_table[] = …;
MODULE_DEVICE_TABLE(of, gcc_sdx75_match_table);
static int gcc_sdx75_probe(struct platform_device *pdev)
{ … }
static struct platform_driver gcc_sdx75_driver = …;
static int __init gcc_sdx75_init(void)
{ … }
subsys_initcall(gcc_sdx75_init);
static void __exit gcc_sdx75_exit(void)
{ … }
module_exit(gcc_sdx75_exit);
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;