#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,gcc-ipq5018.h>
#include <dt-bindings/reset/qcom,gcc-ipq5018.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 "reset.h"
enum { … };
enum { … };
static const struct clk_parent_data gcc_xo_data[] = …;
static const struct clk_parent_data gcc_sleep_clk_data[] = …;
static struct clk_alpha_pll gpll0_main = …;
static struct clk_alpha_pll gpll2_main = …;
static struct clk_alpha_pll gpll4_main = …;
static struct clk_alpha_pll ubi32_pll_main = …;
static struct clk_alpha_pll_postdiv gpll0 = …;
static struct clk_alpha_pll_postdiv gpll2 = …;
static struct clk_alpha_pll_postdiv gpll4 = …;
static struct clk_alpha_pll_postdiv ubi32_pll = …;
static struct clk_fixed_factor gpll0_out_main_div2 = …;
static const struct clk_parent_data gcc_xo_gpll0_gpll0_out_main_div2[] = …;
static const struct parent_map gcc_xo_gpll0_gpll0_out_main_div2_map[] = …;
static const struct clk_parent_data gcc_xo_gpll0[] = …;
static const struct parent_map gcc_xo_gpll0_map[] = …;
static const struct clk_parent_data gcc_xo_gpll0_out_main_div2_gpll0[] = …;
static const struct parent_map gcc_xo_gpll0_out_main_div2_gpll0_map[] = …;
static const struct clk_parent_data gcc_xo_ubi32_gpll0[] = …;
static const struct parent_map gcc_xo_ubi32_gpll0_map[] = …;
static const struct clk_parent_data gcc_xo_gpll0_gpll2[] = …;
static const struct parent_map gcc_xo_gpll0_gpll2_map[] = …;
static const struct clk_parent_data gcc_xo_gpll0_gpll2_gpll4[] = …;
static const struct parent_map gcc_xo_gpll0_gpll2_gpll4_map[] = …;
static const struct clk_parent_data gcc_xo_gpll0_gpll4[] = …;
static const struct parent_map gcc_xo_gpll0_gpll4_map[] = …;
static const struct clk_parent_data gcc_xo_gpll0_core_pi_sleep_clk[] = …;
static const struct parent_map gcc_xo_gpll0_core_pi_sleep_clk_map[] = …;
static const struct clk_parent_data gcc_xo_gpll0_gpll0_out_main_div2_sleep_clk[] = …;
static const struct parent_map gcc_xo_gpll0_gpll0_out_main_div2_sleep_clk_map[] = …;
static const struct clk_parent_data gcc_xo_gpll0_gpll2_gpll0_out_main_div2[] = …;
static const struct parent_map gcc_xo_gpll0_gpll2_gpll0_out_main_div2_map[] = …;
static const struct clk_parent_data gcc_xo_gpll4_gpll0_gpll0_out_main_div2[] = …;
static const struct parent_map gcc_xo_gpll4_gpll0_gpll0_out_main_div2_map1[] = …;
static const struct parent_map gcc_xo_gpll4_gpll0_gpll0_out_main_div2_map2[] = …;
static const struct clk_parent_data gcc_xo_gephy_gcc_rx_gephy_gcc_tx_ubi32_pll_gpll0[] = …;
static const struct parent_map gcc_xo_gephy_gcc_rx_gephy_gcc_tx_ubi32_pll_gpll0_map[] = …;
static const struct clk_parent_data gcc_xo_gephy_gcc_tx_gephy_gcc_rx_ubi32_pll_gpll0[] = …;
static const struct parent_map gcc_xo_gephy_gcc_tx_gephy_gcc_rx_ubi32_pll_gpll0_map[] = …;
static const struct clk_parent_data gcc_xo_uniphy_gcc_rx_uniphy_gcc_tx_ubi32_pll_gpll0[] = …;
static const struct parent_map gcc_xo_uniphy_gcc_rx_uniphy_gcc_tx_ubi32_pll_gpll0_map[] = …;
static const struct clk_parent_data gcc_xo_uniphy_gcc_tx_uniphy_gcc_rx_ubi32_pll_gpll0[] = …;
static const struct parent_map gcc_xo_uniphy_gcc_tx_uniphy_gcc_rx_ubi32_pll_gpll0_map[] = …;
static const struct clk_parent_data gcc_pcie20_phy0_pipe_clk_xo[] = …;
static const struct parent_map gcc_pcie20_phy0_pipe_clk_xo_map[] = …;
static const struct clk_parent_data gcc_pcie20_phy1_pipe_clk_xo[] = …;
static const struct parent_map gcc_pcie20_phy1_pipe_clk_xo_map[] = …;
static const struct clk_parent_data gcc_usb3phy_0_cc_pipe_clk_xo[] = …;
static const struct parent_map gcc_usb3phy_0_cc_pipe_clk_xo_map[] = …;
static const struct freq_tbl ftbl_adss_pwm_clk_src[] = …;
static struct clk_rcg2 adss_pwm_clk_src = …;
static const struct freq_tbl ftbl_blsp1_qup_i2c_apps_clk_src[] = …;
static struct clk_rcg2 blsp1_qup1_i2c_apps_clk_src = …;
static struct clk_rcg2 blsp1_qup2_i2c_apps_clk_src = …;
static struct clk_rcg2 blsp1_qup3_i2c_apps_clk_src = …;
static const struct freq_tbl ftbl_blsp1_qup_spi_apps_clk_src[] = …;
static struct clk_rcg2 blsp1_qup1_spi_apps_clk_src = …;
static struct clk_rcg2 blsp1_qup2_spi_apps_clk_src = …;
static struct clk_rcg2 blsp1_qup3_spi_apps_clk_src = …;
static const struct freq_tbl ftbl_blsp1_uart_apps_clk_src[] = …;
static struct clk_rcg2 blsp1_uart1_apps_clk_src = …;
static struct clk_rcg2 blsp1_uart2_apps_clk_src = …;
static const struct freq_tbl ftbl_crypto_clk_src[] = …;
static struct clk_rcg2 crypto_clk_src = …;
static const struct freq_tbl ftbl_gmac0_tx_clk_src[] = …;
static struct clk_rcg2 gmac0_rx_clk_src = …;
static struct clk_regmap_div gmac0_rx_div_clk_src = …;
static struct clk_rcg2 gmac0_tx_clk_src = …;
static struct clk_regmap_div gmac0_tx_div_clk_src = …;
static const struct freq_tbl ftbl_gmac1_rx_clk_src[] = …;
static struct clk_rcg2 gmac1_rx_clk_src = …;
static struct clk_regmap_div gmac1_rx_div_clk_src = …;
static const struct freq_tbl ftbl_gmac1_tx_clk_src[] = …;
static struct clk_rcg2 gmac1_tx_clk_src = …;
static struct clk_regmap_div gmac1_tx_div_clk_src = …;
static const struct freq_tbl ftbl_gmac_clk_src[] = …;
static struct clk_rcg2 gmac_clk_src = …;
static const struct freq_tbl ftbl_gp_clk_src[] = …;
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_lpass_axim_clk_src[] = …;
static struct clk_rcg2 lpass_axim_clk_src = …;
static const struct freq_tbl ftbl_lpass_sway_clk_src[] = …;
static struct clk_rcg2 lpass_sway_clk_src = …;
static const struct freq_tbl ftbl_pcie0_aux_clk_src[] = …;
static struct clk_rcg2 pcie0_aux_clk_src = …;
static const struct freq_tbl ftbl_pcie0_axi_clk_src[] = …;
static struct clk_rcg2 pcie0_axi_clk_src = …;
static struct clk_rcg2 pcie1_aux_clk_src = …;
static struct clk_rcg2 pcie1_axi_clk_src = …;
static struct clk_regmap_mux pcie0_pipe_clk_src = …;
static struct clk_regmap_mux pcie1_pipe_clk_src = …;
static const struct freq_tbl ftbl_pcnoc_bfdcd_clk_src[] = …;
static struct clk_rcg2 pcnoc_bfdcd_clk_src = …;
static struct clk_fixed_factor pcnoc_clk_src = …;
static const struct freq_tbl ftbl_qdss_at_clk_src[] = …;
static struct clk_rcg2 qdss_at_clk_src = …;
static const struct freq_tbl ftbl_qdss_stm_clk_src[] = …;
static struct clk_rcg2 qdss_stm_clk_src = …;
static const struct freq_tbl ftbl_qdss_traceclkin_clk_src[] = …;
static struct clk_rcg2 qdss_traceclkin_clk_src = …;
static const struct freq_tbl ftbl_qdss_tsctr_clk_src[] = …;
static struct clk_rcg2 qdss_tsctr_clk_src = …;
static struct clk_fixed_factor qdss_tsctr_div2_clk_src = …;
static struct clk_fixed_factor qdss_dap_sync_clk_src = …;
static struct clk_fixed_factor eud_at_clk_src = …;
static const struct freq_tbl ftbl_qpic_io_macro_clk_src[] = …;
static struct clk_rcg2 qpic_io_macro_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_system_noc_bfdcd_clk_src[] = …;
static struct clk_rcg2 system_noc_bfdcd_clk_src = …;
static struct clk_fixed_factor system_noc_clk_src = …;
static const struct freq_tbl ftbl_apss_axi_clk_src[] = …;
static struct clk_rcg2 ubi0_axi_clk_src = …;
static const struct freq_tbl ftbl_ubi0_core_clk_src[] = …;
static struct clk_rcg2 ubi0_core_clk_src = …;
static struct clk_rcg2 usb0_aux_clk_src = …;
static const struct freq_tbl ftbl_usb0_lfps_clk_src[] = …;
static struct clk_rcg2 usb0_lfps_clk_src = …;
static struct clk_rcg2 usb0_master_clk_src = …;
static const struct freq_tbl ftbl_usb0_mock_utmi_clk_src[] = …;
static struct clk_rcg2 usb0_mock_utmi_clk_src = …;
static struct clk_regmap_mux usb0_pipe_clk_src = …;
static const struct freq_tbl ftbl_q6_axi_clk_src[] = …;
static struct clk_rcg2 q6_axi_clk_src = …;
static const struct freq_tbl ftbl_wcss_ahb_clk_src[] = …;
static struct clk_rcg2 wcss_ahb_clk_src = …;
static struct clk_branch gcc_sleep_clk_src = …;
static struct clk_branch gcc_xo_clk_src = …;
static struct clk_branch gcc_xo_clk = …;
static struct clk_branch gcc_adss_pwm_clk = …;
static struct clk_branch gcc_blsp1_ahb_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_uart1_apps_clk = …;
static struct clk_branch gcc_blsp1_uart2_apps_clk = …;
static struct clk_branch gcc_btss_lpo_clk = …;
static struct clk_branch gcc_cmn_blk_ahb_clk = …;
static struct clk_branch gcc_cmn_blk_sys_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_dcc_clk = …;
static struct clk_branch gcc_gephy_rx_clk = …;
static struct clk_branch gcc_gephy_tx_clk = …;
static struct clk_branch gcc_gmac0_cfg_clk = …;
static struct clk_branch gcc_gmac0_ptp_clk = …;
static struct clk_branch gcc_gmac0_rx_clk = …;
static struct clk_branch gcc_gmac0_sys_clk = …;
static struct clk_branch gcc_gmac0_tx_clk = …;
static struct clk_branch gcc_gmac1_cfg_clk = …;
static struct clk_branch gcc_gmac1_ptp_clk = …;
static struct clk_branch gcc_gmac1_rx_clk = …;
static struct clk_branch gcc_gmac1_sys_clk = …;
static struct clk_branch gcc_gmac1_tx_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_lpass_core_axim_clk = …;
static struct clk_branch gcc_lpass_sway_clk = …;
static struct clk_branch gcc_mdio0_ahb_clk = …;
static struct clk_branch gcc_mdio1_ahb_clk = …;
static struct clk_branch gcc_pcie0_ahb_clk = …;
static struct clk_branch gcc_pcie0_aux_clk = …;
static struct clk_branch gcc_pcie0_axi_m_clk = …;
static struct clk_branch gcc_pcie0_axi_s_bridge_clk = …;
static struct clk_branch gcc_pcie0_axi_s_clk = …;
static struct clk_branch gcc_pcie0_pipe_clk = …;
static struct clk_branch gcc_pcie1_ahb_clk = …;
static struct clk_branch gcc_pcie1_aux_clk = …;
static struct clk_branch gcc_pcie1_axi_m_clk = …;
static struct clk_branch gcc_pcie1_axi_s_bridge_clk = …;
static struct clk_branch gcc_pcie1_axi_s_clk = …;
static struct clk_branch gcc_pcie1_pipe_clk = …;
static struct clk_branch gcc_prng_ahb_clk = …;
static struct clk_branch gcc_q6_ahb_clk = …;
static struct clk_branch gcc_q6_ahb_s_clk = …;
static struct clk_branch gcc_q6_axim_clk = …;
static struct clk_branch gcc_q6_axim2_clk = …;
static struct clk_branch gcc_q6_axis_clk = …;
static struct clk_branch gcc_q6_tsctr_1to2_clk = …;
static struct clk_branch gcc_q6ss_atbm_clk = …;
static struct clk_branch gcc_q6ss_pclkdbg_clk = …;
static struct clk_branch gcc_q6ss_trig_clk = …;
static struct clk_branch gcc_qdss_at_clk = …;
static struct clk_branch gcc_qdss_dap_clk = …;
static struct clk_branch gcc_qdss_cfg_ahb_clk = …;
static struct clk_branch gcc_qdss_dap_ahb_clk = …;
static struct clk_branch gcc_qdss_etr_usb_clk = …;
static struct clk_branch gcc_qdss_eud_at_clk = …;
static struct clk_branch gcc_qdss_stm_clk = …;
static struct clk_branch gcc_qdss_traceclkin_clk = …;
static struct clk_branch gcc_qdss_tsctr_div8_clk = …;
static struct clk_branch gcc_qpic_ahb_clk = …;
static struct clk_branch gcc_qpic_clk = …;
static struct clk_branch gcc_qpic_io_macro_clk = …;
static struct clk_branch gcc_sdcc1_ahb_clk = …;
static struct clk_branch gcc_sdcc1_apps_clk = …;
static struct clk_branch gcc_snoc_gmac0_ahb_clk = …;
static struct clk_branch gcc_snoc_gmac0_axi_clk = …;
static struct clk_branch gcc_snoc_gmac1_ahb_clk = …;
static struct clk_branch gcc_snoc_gmac1_axi_clk = …;
static struct clk_branch gcc_snoc_lpass_axim_clk = …;
static struct clk_branch gcc_snoc_lpass_sway_clk = …;
static struct clk_branch gcc_snoc_ubi0_axi_clk = …;
static struct clk_branch gcc_sys_noc_pcie0_axi_clk = …;
static struct clk_branch gcc_sys_noc_pcie1_axi_clk = …;
static struct clk_branch gcc_sys_noc_qdss_stm_axi_clk = …;
static struct clk_branch gcc_sys_noc_usb0_axi_clk = …;
static struct clk_branch gcc_sys_noc_wcss_ahb_clk = …;
static struct clk_branch gcc_ubi0_axi_clk = …;
static struct clk_branch gcc_ubi0_cfg_clk = …;
static struct clk_branch gcc_ubi0_dbg_clk = …;
static struct clk_branch gcc_ubi0_core_clk = …;
static struct clk_branch gcc_ubi0_nc_axi_clk = …;
static struct clk_branch gcc_ubi0_utcm_clk = …;
static struct clk_branch gcc_uniphy_ahb_clk = …;
static struct clk_branch gcc_uniphy_rx_clk = …;
static struct clk_branch gcc_uniphy_tx_clk = …;
static struct clk_branch gcc_uniphy_sys_clk = …;
static struct clk_branch gcc_usb0_aux_clk = …;
static struct clk_branch gcc_usb0_eud_at_clk = …;
static struct clk_branch gcc_usb0_lfps_clk = …;
static struct clk_branch gcc_usb0_master_clk = …;
static struct clk_branch gcc_usb0_mock_utmi_clk = …;
static struct clk_branch gcc_usb0_phy_cfg_ahb_clk = …;
static struct clk_branch gcc_usb0_sleep_clk = …;
static struct clk_branch gcc_usb0_pipe_clk = …;
static struct clk_branch gcc_wcss_acmt_clk = …;
static struct clk_branch gcc_wcss_ahb_s_clk = …;
static struct clk_branch gcc_wcss_axi_m_clk = …;
static struct clk_branch gcc_wcss_axi_s_clk = …;
static struct clk_branch gcc_wcss_dbg_ifc_apb_bdg_clk = …;
static struct clk_branch gcc_wcss_dbg_ifc_apb_clk = …;
static struct clk_branch gcc_wcss_dbg_ifc_atb_bdg_clk = …;
static struct clk_branch gcc_wcss_dbg_ifc_atb_clk = …;
static struct clk_branch gcc_wcss_dbg_ifc_dapbus_bdg_clk = …;
static struct clk_branch gcc_wcss_dbg_ifc_dapbus_clk = …;
static struct clk_branch gcc_wcss_dbg_ifc_nts_bdg_clk = …;
static struct clk_branch gcc_wcss_dbg_ifc_nts_clk = …;
static struct clk_branch gcc_wcss_ecahb_clk = …;
static struct clk_hw *gcc_ipq5018_hws[] = …;
static const struct alpha_pll_config ubi32_pll_config = …;
static struct clk_regmap *gcc_ipq5018_clks[] = …;
static const struct qcom_reset_map gcc_ipq5018_resets[] = …;
static const struct of_device_id gcc_ipq5018_match_table[] = …;
MODULE_DEVICE_TABLE(of, gcc_ipq5018_match_table);
static const struct regmap_config gcc_ipq5018_regmap_config = …;
static const struct qcom_cc_desc gcc_ipq5018_desc = …;
static int gcc_ipq5018_probe(struct platform_device *pdev)
{ … }
static struct platform_driver gcc_ipq5018_driver = …;
static int __init gcc_ipq5018_init(void)
{ … }
core_initcall(gcc_ipq5018_init);
static void __exit gcc_ipq5018_exit(void)
{ … }
module_exit(gcc_ipq5018_exit);
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;