#include <linux/bitops.h>
#include <linux/clk-provider.h>
#include <linux/err.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/of.h>
#include <linux/platform_device.h>
#include <linux/regmap.h>
#include <linux/reset-controller.h>
#include <dt-bindings/clock/qcom,gcc-msm8917.h>
#include "clk-alpha-pll.h"
#include "clk-branch.h"
#include "clk-pll.h"
#include "clk-rcg.h"
#include "common.h"
#include "gdsc.h"
#include "reset.h"
enum { … };
enum { … };
static struct clk_alpha_pll gpll0_sleep_clk_src = …;
static struct clk_alpha_pll gpll0_early = …;
static struct clk_alpha_pll_postdiv gpll0 = …;
static const struct pll_vco gpll3_p_vco[] = …;
static const struct alpha_pll_config gpll3_early_config = …;
static struct clk_alpha_pll gpll3_early = …;
static struct clk_alpha_pll_postdiv gpll3 = …;
static struct clk_alpha_pll gpll4_early = …;
static struct clk_alpha_pll_postdiv gpll4 = …;
static struct clk_pll gpll6_early = …;
static struct clk_regmap gpll6 = …;
static const struct parent_map gcc_xo_gpll0_map[] = …;
static const struct parent_map gcc_xo_gpll0_out_aux_map[] = …;
static const struct clk_parent_data gcc_xo_gpll0_data[] = …;
static const struct parent_map gcc_xo_gpll0_gpll6_sleep_map[] = …;
static const struct clk_parent_data gcc_xo_gpll0_gpll6_sleep_data[] = …;
static const struct parent_map gcc_xo_gpll0_gpll6_gpll4_map[] = …;
static const struct clk_parent_data gcc_xo_gpll0_gpll6_gpll4_data[] = …;
static const struct freq_tbl ftbl_apss_ahb_clk_src[] = …;
static struct clk_rcg2 apss_ahb_clk_src = …;
static const struct freq_tbl ftbl_blsp_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 struct clk_rcg2 blsp1_qup4_i2c_apps_clk_src = …;
static struct clk_rcg2 blsp2_qup1_i2c_apps_clk_src = …;
static struct clk_rcg2 blsp2_qup2_i2c_apps_clk_src = …;
static struct clk_rcg2 blsp2_qup3_i2c_apps_clk_src = …;
static const struct freq_tbl ftbl_blsp_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 struct clk_rcg2 blsp1_qup4_spi_apps_clk_src = …;
static struct clk_rcg2 blsp2_qup1_spi_apps_clk_src = …;
static struct clk_rcg2 blsp2_qup2_spi_apps_clk_src = …;
static struct clk_rcg2 blsp2_qup3_spi_apps_clk_src = …;
static const struct freq_tbl ftbl_blsp_uart_apps_clk_src[] = …;
static struct clk_rcg2 blsp1_uart1_apps_clk_src = …;
static struct clk_rcg2 blsp1_uart2_apps_clk_src = …;
static struct clk_rcg2 blsp2_uart1_apps_clk_src = …;
static struct clk_rcg2 blsp2_uart2_apps_clk_src = …;
static const struct parent_map gcc_byte0_map[] = …;
static const struct clk_parent_data gcc_byte_data[] = …;
static struct clk_rcg2 byte0_clk_src = …;
static const struct freq_tbl ftbl_camss_gp_clk_src[] = …;
static struct clk_rcg2 camss_gp0_clk_src = …;
static struct clk_rcg2 camss_gp1_clk_src = …;
static const struct freq_tbl ftbl_camss_top_ahb_clk_src[] = …;
static struct clk_rcg2 camss_top_ahb_clk_src = …;
static const struct freq_tbl ftbl_cci_clk_src[] = …;
static struct clk_rcg2 cci_clk_src = …;
static const struct parent_map gcc_cpp_map[] = …;
static const struct clk_parent_data gcc_cpp_data[] = …;
static const struct freq_tbl ftbl_cpp_clk_src[] = …;
static struct clk_rcg2 cpp_clk_src = …;
static const struct freq_tbl ftbl_crypto_clk_src[] = …;
static struct clk_rcg2 crypto_clk_src = …;
static const struct freq_tbl ftbl_csi_clk_src[] = …;
static struct clk_rcg2 csi0_clk_src = …;
static struct clk_rcg2 csi1_clk_src = …;
static struct clk_rcg2 csi2_clk_src = …;
static const struct freq_tbl ftbl_csi_phytimer_clk_src[] = …;
static struct clk_rcg2 csi0phytimer_clk_src = …;
static struct clk_rcg2 csi1phytimer_clk_src = …;
static const struct freq_tbl ftbl_esc0_1_clk_src[] = …;
static struct clk_rcg2 esc0_clk_src = …;
static const struct parent_map gcc_gfx3d_map[] = …;
static const struct parent_map gcc_gfx3d_map_qm215[] = …;
static const struct clk_parent_data gcc_gfx3d_data[] = …;
static const struct freq_tbl ftbl_gfx3d_clk_src[] = …;
static struct clk_rcg2 gfx3d_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_jpeg0_clk_src[] = …;
static struct clk_rcg2 jpeg0_clk_src = …;
static const struct freq_tbl ftbl_mclk_clk_src[] = …;
static struct clk_rcg2 mclk0_clk_src = …;
static struct clk_rcg2 mclk1_clk_src = …;
static struct clk_rcg2 mclk2_clk_src = …;
static const struct freq_tbl ftbl_mdp_clk_src[] = …;
static struct clk_rcg2 mdp_clk_src = …;
static const struct parent_map gcc_pclk_map[] = …;
static const struct clk_parent_data gcc_pclk_data[] = …;
static struct clk_rcg2 pclk0_clk_src = …;
static const struct freq_tbl ftbl_pdm2_clk_src[] = …;
static struct clk_rcg2 pdm2_clk_src = …;
static const struct freq_tbl ftbl_sdcc1_ice_core_clk_src[] = …;
static struct clk_rcg2 sdcc1_ice_core_clk_src = …;
static const struct parent_map gcc_sdcc1_apps_map[] = …;
static const struct clk_parent_data gcc_sdcc1_apss_data[] = …;
static const struct freq_tbl ftbl_sdcc1_apps_clk_src[] = …;
static struct clk_rcg2 sdcc1_apps_clk_src = …;
static const struct freq_tbl ftbl_sdcc2_apps_clk_src[] = …;
static struct clk_rcg2 sdcc2_apps_clk_src = …;
static const struct freq_tbl ftbl_usb_hs_system_clk_src[] = …;
static struct clk_rcg2 usb_hs_system_clk_src = …;
static const struct freq_tbl ftbl_vcodec0_clk_src[] = …;
static struct clk_rcg2 vcodec0_clk_src = …;
static const struct freq_tbl ftbl_vfe_clk_src[] = …;
static struct clk_rcg2 vfe0_clk_src = …;
static struct clk_rcg2 vfe1_clk_src = …;
static const struct freq_tbl ftbl_vsync_clk_src[] = …;
static struct clk_rcg2 vsync_clk_src = …;
static struct clk_branch gcc_apss_tcu_clk = …;
static struct clk_branch gcc_bimc_gfx_clk = …;
static struct clk_branch gcc_bimc_gpu_clk = …;
static struct clk_branch gcc_blsp1_ahb_clk = …;
static struct clk_branch gcc_blsp2_ahb_clk = …;
static struct clk_branch gcc_blsp1_qup2_i2c_apps_clk = …;
static struct clk_branch gcc_blsp1_qup3_i2c_apps_clk = …;
static struct clk_branch gcc_blsp1_qup4_i2c_apps_clk = …;
static struct clk_branch gcc_blsp2_qup1_i2c_apps_clk = …;
static struct clk_branch gcc_blsp2_qup2_i2c_apps_clk = …;
static struct clk_branch gcc_blsp2_qup3_i2c_apps_clk = …;
static struct clk_branch gcc_blsp1_qup2_spi_apps_clk = …;
static struct clk_branch gcc_blsp1_qup3_spi_apps_clk = …;
static struct clk_branch gcc_blsp1_qup4_spi_apps_clk = …;
static struct clk_branch gcc_blsp2_qup1_spi_apps_clk = …;
static struct clk_branch gcc_blsp2_qup2_spi_apps_clk = …;
static struct clk_branch gcc_blsp2_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_blsp2_uart1_apps_clk = …;
static struct clk_branch gcc_blsp2_uart2_apps_clk = …;
static struct clk_branch gcc_boot_rom_ahb_clk = …;
static struct clk_branch gcc_camss_ahb_clk = …;
static struct clk_branch gcc_camss_cci_ahb_clk = …;
static struct clk_branch gcc_camss_cci_clk = …;
static struct clk_branch gcc_camss_cpp_ahb_clk = …;
static struct clk_branch gcc_camss_cpp_clk = …;
static struct clk_branch gcc_camss_csi0_ahb_clk = …;
static struct clk_branch gcc_camss_csi1_ahb_clk = …;
static struct clk_branch gcc_camss_csi2_ahb_clk = …;
static struct clk_branch gcc_camss_csi0_clk = …;
static struct clk_branch gcc_camss_csi1_clk = …;
static struct clk_branch gcc_camss_csi2_clk = …;
static struct clk_branch gcc_camss_csi0phy_clk = …;
static struct clk_branch gcc_camss_csi1phy_clk = …;
static struct clk_branch gcc_camss_csi2phy_clk = …;
static struct clk_branch gcc_camss_csi0phytimer_clk = …;
static struct clk_branch gcc_camss_csi1phytimer_clk = …;
static struct clk_branch gcc_camss_csi0pix_clk = …;
static struct clk_branch gcc_camss_csi1pix_clk = …;
static struct clk_branch gcc_camss_csi2pix_clk = …;
static struct clk_branch gcc_camss_csi0rdi_clk = …;
static struct clk_branch gcc_camss_csi1rdi_clk = …;
static struct clk_branch gcc_camss_csi2rdi_clk = …;
static struct clk_branch gcc_camss_csi_vfe0_clk = …;
static struct clk_branch gcc_camss_csi_vfe1_clk = …;
static struct clk_branch gcc_camss_gp0_clk = …;
static struct clk_branch gcc_camss_gp1_clk = …;
static struct clk_branch gcc_camss_ispif_ahb_clk = …;
static struct clk_branch gcc_camss_jpeg0_clk = …;
static struct clk_branch gcc_camss_jpeg_ahb_clk = …;
static struct clk_branch gcc_camss_jpeg_axi_clk = …;
static struct clk_branch gcc_camss_mclk0_clk = …;
static struct clk_branch gcc_camss_mclk1_clk = …;
static struct clk_branch gcc_camss_mclk2_clk = …;
static struct clk_branch gcc_camss_micro_ahb_clk = …;
static struct clk_branch gcc_camss_top_ahb_clk = …;
static struct clk_branch gcc_camss_vfe0_ahb_clk = …;
static struct clk_branch gcc_camss_vfe0_axi_clk = …;
static struct clk_branch gcc_camss_vfe0_clk = …;
static struct clk_branch gcc_camss_vfe1_ahb_clk = …;
static struct clk_branch gcc_camss_vfe1_axi_clk = …;
static struct clk_branch gcc_camss_vfe1_clk = …;
static struct clk_branch gcc_cpp_tbu_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_gfx_tbu_clk = …;
static struct clk_branch gcc_gfx_tcu_clk = …;
static struct clk_branch gcc_gtcu_ahb_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_jpeg_tbu_clk = …;
static struct clk_branch gcc_mdp_tbu_clk = …;
static struct clk_branch gcc_mdss_ahb_clk = …;
static struct clk_branch gcc_mdss_axi_clk = …;
static struct clk_branch gcc_mdss_byte0_clk = …;
static struct clk_branch gcc_mdss_esc0_clk = …;
static struct clk_branch gcc_mdss_mdp_clk = …;
static struct clk_branch gcc_mdss_pclk0_clk = …;
static struct clk_branch gcc_mdss_vsync_clk = …;
static struct clk_branch gcc_mss_cfg_ahb_clk = …;
static struct clk_branch gcc_mss_q6_bimc_axi_clk = …;
static struct clk_branch gcc_oxili_ahb_clk = …;
static struct clk_branch gcc_oxili_gfx3d_clk = …;
static struct clk_branch gcc_pdm2_clk = …;
static struct clk_branch gcc_pdm_ahb_clk = …;
static struct clk_branch gcc_prng_ahb_clk = …;
static struct clk_branch gcc_qdss_dap_clk = …;
static struct clk_branch gcc_sdcc1_ice_core_clk = …;
static struct clk_branch gcc_sdcc1_ahb_clk = …;
static struct clk_branch gcc_sdcc2_ahb_clk = …;
static struct clk_branch gcc_sdcc1_apps_clk = …;
static struct clk_branch gcc_sdcc2_apps_clk = …;
static struct clk_branch gcc_smmu_cfg_clk = …;
static struct clk_branch gcc_usb2a_phy_sleep_clk = …;
static struct clk_branch gcc_usb_hs_ahb_clk = …;
static struct clk_branch gcc_usb_hs_phy_cfg_ahb_clk = …;
static struct clk_branch gcc_usb_hs_system_clk = …;
static struct clk_branch gcc_venus0_ahb_clk = …;
static struct clk_branch gcc_venus0_axi_clk = …;
static struct clk_branch gcc_venus0_core0_vcodec0_clk = …;
static struct clk_branch gcc_venus0_vcodec0_clk = …;
static struct clk_branch gcc_venus_tbu_clk = …;
static struct clk_branch gcc_vfe1_tbu_clk = …;
static struct clk_branch gcc_vfe_tbu_clk = …;
static struct gdsc venus_gdsc = …;
static struct gdsc venus_core0_gdsc = …;
static struct gdsc mdss_gdsc = …;
static struct gdsc jpeg_gdsc = …;
static struct gdsc vfe0_gdsc = …;
static struct gdsc vfe1_gdsc = …;
static struct gdsc oxili_gx_gdsc = …;
static struct gdsc cpp_gdsc = …;
static struct clk_regmap *gcc_msm8917_clocks[] = …;
static const struct qcom_reset_map gcc_msm8917_resets[] = …;
static const struct regmap_config gcc_msm8917_regmap_config = …;
static struct gdsc *gcc_msm8917_gdscs[] = …;
static const struct qcom_cc_desc gcc_msm8917_desc = …;
static const struct qcom_cc_desc gcc_qm215_desc = …;
static int gcc_msm8917_probe(struct platform_device *pdev)
{ … }
static const struct of_device_id gcc_msm8917_match_table[] = …;
MODULE_DEVICE_TABLE(of, gcc_msm8917_match_table);
static struct platform_driver gcc_msm8917_driver = …;
static int __init gcc_msm8917_init(void)
{ … }
core_initcall(gcc_msm8917_init);
static void __exit gcc_msm8917_exit(void)
{ … }
module_exit(gcc_msm8917_exit);
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;