#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,qdu1000-ecpricc.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 "common.h"
#include "reset.h"
enum { … };
enum { … };
static const struct pll_vco lucid_evo_vco[] = …;
static const struct alpha_pll_config ecpri_cc_pll0_config = …;
static struct clk_alpha_pll ecpri_cc_pll0 = …;
static const struct alpha_pll_config ecpri_cc_pll1_config = …;
static struct clk_alpha_pll ecpri_cc_pll1 = …;
static const struct parent_map ecpri_cc_parent_map_0[] = …;
static const struct clk_parent_data ecpri_cc_parent_data_0[] = …;
static const struct parent_map ecpri_cc_parent_map_1[] = …;
static const struct clk_parent_data ecpri_cc_parent_data_1[] = …;
static const struct parent_map ecpri_cc_parent_map_2[] = …;
static const struct clk_parent_data ecpri_cc_parent_data_2[] = …;
static const struct freq_tbl ftbl_ecpri_cc_ecpri_clk_src[] = …;
static struct clk_rcg2 ecpri_cc_ecpri_clk_src = …;
static const struct freq_tbl ftbl_ecpri_cc_ecpri_dma_clk_src[] = …;
static struct clk_rcg2 ecpri_cc_ecpri_dma_clk_src = …;
static const struct freq_tbl ftbl_ecpri_cc_ecpri_fast_clk_src[] = …;
static struct clk_rcg2 ecpri_cc_ecpri_fast_clk_src = …;
static const struct freq_tbl ftbl_ecpri_cc_ecpri_oran_clk_src[] = …;
static struct clk_rcg2 ecpri_cc_ecpri_oran_clk_src = …;
static const struct freq_tbl ftbl_ecpri_cc_eth_100g_c2c0_hm_ff_clk_src[] = …;
static struct clk_rcg2 ecpri_cc_eth_100g_c2c0_hm_ff_clk_src = …;
static const struct freq_tbl ftbl_ecpri_cc_eth_100g_c2c_hm_macsec_clk_src[] = …;
static struct clk_rcg2 ecpri_cc_eth_100g_c2c_hm_macsec_clk_src = …;
static struct clk_rcg2 ecpri_cc_eth_100g_dbg_c2c_hm_ff_clk_src = …;
static struct clk_rcg2 ecpri_cc_eth_100g_fh0_hm_ff_clk_src = …;
static struct clk_rcg2 ecpri_cc_eth_100g_fh0_macsec_clk_src = …;
static struct clk_rcg2 ecpri_cc_eth_100g_fh1_hm_ff_clk_src = …;
static const struct freq_tbl ftbl_ecpri_cc_eth_100g_fh1_macsec_clk_src[] = …;
static struct clk_rcg2 ecpri_cc_eth_100g_fh1_macsec_clk_src = …;
static struct clk_rcg2 ecpri_cc_eth_100g_fh2_hm_ff_clk_src = …;
static struct clk_rcg2 ecpri_cc_eth_100g_fh2_macsec_clk_src = …;
static const struct freq_tbl ftbl_ecpri_cc_eth_100g_mac_c2c_hm_ref_clk_src[] = …;
static struct clk_rcg2 ecpri_cc_eth_100g_mac_c2c_hm_ref_clk_src = …;
static struct clk_rcg2 ecpri_cc_eth_100g_mac_dbg_c2c_hm_ref_clk_src = …;
static struct clk_rcg2 ecpri_cc_eth_100g_mac_fh0_hm_ref_clk_src = …;
static struct clk_rcg2 ecpri_cc_eth_100g_mac_fh1_hm_ref_clk_src = …;
static struct clk_rcg2 ecpri_cc_eth_100g_mac_fh2_hm_ref_clk_src = …;
static const struct freq_tbl ftbl_ecpri_cc_mss_emac_clk_src[] = …;
static struct clk_rcg2 ecpri_cc_mss_emac_clk_src = …;
static struct clk_regmap_div ecpri_cc_ecpri_fast_div2_clk_src = …;
static struct clk_regmap_div ecpri_cc_eth_100g_c2c_hm_ff_0_div_clk_src = …;
static struct clk_regmap_div ecpri_cc_eth_100g_c2c_hm_ff_1_div_clk_src = …;
static struct clk_regmap_div ecpri_cc_eth_100g_dbg_c2c_hm_ff_0_div_clk_src = …;
static struct clk_regmap_div ecpri_cc_eth_100g_dbg_c2c_hm_ff_1_div_clk_src = …;
static struct clk_regmap_div ecpri_cc_eth_100g_fh_0_hm_ff_0_div_clk_src = …;
static struct clk_regmap_div ecpri_cc_eth_100g_fh_0_hm_ff_1_div_clk_src = …;
static struct clk_regmap_div ecpri_cc_eth_100g_fh_0_hm_ff_2_div_clk_src = …;
static struct clk_regmap_div ecpri_cc_eth_100g_fh_0_hm_ff_3_div_clk_src = …;
static struct clk_regmap_div ecpri_cc_eth_100g_fh_1_hm_ff_0_div_clk_src = …;
static struct clk_regmap_div ecpri_cc_eth_100g_fh_1_hm_ff_1_div_clk_src = …;
static struct clk_regmap_div ecpri_cc_eth_100g_fh_1_hm_ff_2_div_clk_src = …;
static struct clk_regmap_div ecpri_cc_eth_100g_fh_1_hm_ff_3_div_clk_src = …;
static struct clk_regmap_div ecpri_cc_eth_100g_fh_2_hm_ff_0_div_clk_src = …;
static struct clk_regmap_div ecpri_cc_eth_100g_fh_2_hm_ff_1_div_clk_src = …;
static struct clk_regmap_div ecpri_cc_eth_100g_fh_2_hm_ff_2_div_clk_src = …;
static struct clk_regmap_div ecpri_cc_eth_100g_fh_2_hm_ff_3_div_clk_src = …;
static struct clk_branch ecpri_cc_ecpri_cg_clk = …;
static struct clk_branch ecpri_cc_ecpri_dma_clk = …;
static struct clk_branch ecpri_cc_ecpri_dma_noc_clk = …;
static struct clk_branch ecpri_cc_ecpri_fast_clk = …;
static struct clk_branch ecpri_cc_ecpri_fast_div2_clk = …;
static struct clk_branch ecpri_cc_ecpri_fast_div2_noc_clk = …;
static struct clk_branch ecpri_cc_ecpri_fr_clk = …;
static struct clk_branch ecpri_cc_ecpri_oran_div2_clk = …;
static struct clk_branch ecpri_cc_eth_100g_c2c0_udp_fifo_clk = …;
static struct clk_branch ecpri_cc_eth_100g_c2c1_udp_fifo_clk = …;
static struct clk_mem_branch ecpri_cc_eth_100g_c2c_0_hm_ff_0_clk = …;
static struct clk_mem_branch ecpri_cc_eth_100g_c2c_0_hm_ff_1_clk = …;
static struct clk_mem_branch ecpri_cc_eth_100g_c2c_hm_macsec_clk = …;
static struct clk_mem_branch ecpri_cc_eth_100g_dbg_c2c_hm_ff_0_clk = …;
static struct clk_mem_branch ecpri_cc_eth_100g_dbg_c2c_hm_ff_1_clk = …;
static struct clk_branch ecpri_cc_eth_100g_dbg_c2c_udp_fifo_clk = …;
static struct clk_mem_branch ecpri_cc_eth_100g_fh_0_hm_ff_0_clk = …;
static struct clk_mem_branch ecpri_cc_eth_100g_fh_0_hm_ff_1_clk = …;
static struct clk_mem_branch ecpri_cc_eth_100g_fh_0_hm_ff_2_clk = …;
static struct clk_mem_branch ecpri_cc_eth_100g_fh_0_hm_ff_3_clk = …;
static struct clk_branch ecpri_cc_eth_100g_fh_0_udp_fifo_clk = …;
static struct clk_mem_branch ecpri_cc_eth_100g_fh_1_hm_ff_0_clk = …;
static struct clk_mem_branch ecpri_cc_eth_100g_fh_1_hm_ff_1_clk = …;
static struct clk_mem_branch ecpri_cc_eth_100g_fh_1_hm_ff_2_clk = …;
static struct clk_mem_branch ecpri_cc_eth_100g_fh_1_hm_ff_3_clk = …;
static struct clk_branch ecpri_cc_eth_100g_fh_1_udp_fifo_clk = …;
static struct clk_mem_branch ecpri_cc_eth_100g_fh_2_hm_ff_0_clk = …;
static struct clk_mem_branch ecpri_cc_eth_100g_fh_2_hm_ff_1_clk = …;
static struct clk_mem_branch ecpri_cc_eth_100g_fh_2_hm_ff_2_clk = …;
static struct clk_mem_branch ecpri_cc_eth_100g_fh_2_hm_ff_3_clk = …;
static struct clk_branch ecpri_cc_eth_100g_fh_2_udp_fifo_clk = …;
static struct clk_mem_branch ecpri_cc_eth_100g_fh_macsec_0_clk = …;
static struct clk_mem_branch ecpri_cc_eth_100g_fh_macsec_1_clk = …;
static struct clk_mem_branch ecpri_cc_eth_100g_fh_macsec_2_clk = …;
static struct clk_mem_branch ecpri_cc_eth_100g_mac_c2c_hm_ref_clk = …;
static struct clk_mem_branch ecpri_cc_eth_100g_mac_dbg_c2c_hm_ref_clk = …;
static struct clk_mem_branch ecpri_cc_eth_100g_mac_fh0_hm_ref_clk = …;
static struct clk_mem_branch ecpri_cc_eth_100g_mac_fh1_hm_ref_clk = …;
static struct clk_mem_branch ecpri_cc_eth_100g_mac_fh2_hm_ref_clk = …;
static struct clk_branch ecpri_cc_eth_dbg_nfapi_axi_clk = …;
static struct clk_branch ecpri_cc_eth_dbg_noc_axi_clk = …;
static struct clk_mem_branch ecpri_cc_eth_phy_0_ock_sram_clk = …;
static struct clk_mem_branch ecpri_cc_eth_phy_1_ock_sram_clk = …;
static struct clk_mem_branch ecpri_cc_eth_phy_2_ock_sram_clk = …;
static struct clk_mem_branch ecpri_cc_eth_phy_3_ock_sram_clk = …;
static struct clk_mem_branch ecpri_cc_eth_phy_4_ock_sram_clk = …;
static struct clk_branch ecpri_cc_mss_emac_clk = …;
static struct clk_branch ecpri_cc_mss_oran_clk = …;
static struct clk_branch ecpri_cc_phy0_lane0_rx_clk = …;
static struct clk_branch ecpri_cc_phy0_lane0_tx_clk = …;
static struct clk_branch ecpri_cc_phy0_lane1_rx_clk = …;
static struct clk_branch ecpri_cc_phy0_lane1_tx_clk = …;
static struct clk_branch ecpri_cc_phy0_lane2_rx_clk = …;
static struct clk_branch ecpri_cc_phy0_lane2_tx_clk = …;
static struct clk_branch ecpri_cc_phy0_lane3_rx_clk = …;
static struct clk_branch ecpri_cc_phy0_lane3_tx_clk = …;
static struct clk_branch ecpri_cc_phy1_lane0_rx_clk = …;
static struct clk_branch ecpri_cc_phy1_lane0_tx_clk = …;
static struct clk_branch ecpri_cc_phy1_lane1_rx_clk = …;
static struct clk_branch ecpri_cc_phy1_lane1_tx_clk = …;
static struct clk_branch ecpri_cc_phy1_lane2_rx_clk = …;
static struct clk_branch ecpri_cc_phy1_lane2_tx_clk = …;
static struct clk_branch ecpri_cc_phy1_lane3_rx_clk = …;
static struct clk_branch ecpri_cc_phy1_lane3_tx_clk = …;
static struct clk_branch ecpri_cc_phy2_lane0_rx_clk = …;
static struct clk_branch ecpri_cc_phy2_lane0_tx_clk = …;
static struct clk_branch ecpri_cc_phy2_lane1_rx_clk = …;
static struct clk_branch ecpri_cc_phy2_lane1_tx_clk = …;
static struct clk_branch ecpri_cc_phy2_lane2_rx_clk = …;
static struct clk_branch ecpri_cc_phy2_lane2_tx_clk = …;
static struct clk_branch ecpri_cc_phy2_lane3_rx_clk = …;
static struct clk_branch ecpri_cc_phy2_lane3_tx_clk = …;
static struct clk_branch ecpri_cc_phy3_lane0_rx_clk = …;
static struct clk_branch ecpri_cc_phy3_lane0_tx_clk = …;
static struct clk_branch ecpri_cc_phy3_lane1_rx_clk = …;
static struct clk_branch ecpri_cc_phy3_lane1_tx_clk = …;
static struct clk_branch ecpri_cc_phy3_lane2_rx_clk = …;
static struct clk_branch ecpri_cc_phy3_lane2_tx_clk = …;
static struct clk_branch ecpri_cc_phy3_lane3_rx_clk = …;
static struct clk_branch ecpri_cc_phy3_lane3_tx_clk = …;
static struct clk_branch ecpri_cc_phy4_lane0_rx_clk = …;
static struct clk_branch ecpri_cc_phy4_lane0_tx_clk = …;
static struct clk_branch ecpri_cc_phy4_lane1_rx_clk = …;
static struct clk_branch ecpri_cc_phy4_lane1_tx_clk = …;
static struct clk_branch ecpri_cc_phy4_lane2_rx_clk = …;
static struct clk_branch ecpri_cc_phy4_lane2_tx_clk = …;
static struct clk_branch ecpri_cc_phy4_lane3_rx_clk = …;
static struct clk_branch ecpri_cc_phy4_lane3_tx_clk = …;
static struct clk_regmap *ecpri_cc_qdu1000_clocks[] = …;
static const struct qcom_reset_map ecpri_cc_qdu1000_resets[] = …;
static const struct regmap_config ecpri_cc_qdu1000_regmap_config = …;
static const struct qcom_cc_desc ecpri_cc_qdu1000_desc = …;
static const struct of_device_id ecpri_cc_qdu1000_match_table[] = …;
MODULE_DEVICE_TABLE(of, ecpri_cc_qdu1000_match_table);
static int ecpri_cc_qdu1000_probe(struct platform_device *pdev)
{ … }
static struct platform_driver ecpri_cc_qdu1000_driver = …;
module_platform_driver(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;