#include <linux/kernel.h>
#include <linux/bitops.h>
#include <linux/err.h>
#include <linux/delay.h>
#include <linux/platform_device.h>
#include <linux/property.h>
#include <linux/module.h>
#include <linux/of.h>
#include <linux/clk.h>
#include <linux/clk-provider.h>
#include <linux/regmap.h>
#include <linux/reset-controller.h>
#include <dt-bindings/clock/qcom,mmcc-msm8960.h>
#include <dt-bindings/reset/qcom,mmcc-msm8960.h>
#include "common.h"
#include "clk-regmap.h"
#include "clk-pll.h"
#include "clk-rcg.h"
#include "clk-branch.h"
#include "reset.h"
enum { … };
#define F_MN(f, s, _m, _n) …
static struct clk_pll pll2 = …;
static struct clk_pll pll15 = …;
static const struct pll_config pll15_config = …;
static const struct parent_map mmcc_pxo_pll8_pll2_map[] = …;
static const struct clk_parent_data mmcc_pxo_pll8_pll2[] = …;
static const struct parent_map mmcc_pxo_pll8_pll2_pll3_map[] = …;
static const struct clk_parent_data mmcc_pxo_pll8_pll2_pll15[] = …;
static const struct parent_map mmcc_pxo_pll8_pll2_pll15_map[] = …;
static const struct clk_parent_data mmcc_pxo_pll8_pll2_pll3[] = …;
static const struct parent_map mmcc_pxo_dsi2_dsi1_map[] = …;
static const struct clk_parent_data mmcc_pxo_dsi2_dsi1[] = …;
static const struct parent_map mmcc_pxo_dsi1_dsi2_byte_map[] = …;
static const struct clk_parent_data mmcc_pxo_dsi1_dsi2_byte[] = …;
static struct freq_tbl clk_tbl_cam[] = …;
static struct clk_rcg camclk0_src = …;
static struct clk_branch camclk0_clk = …;
static struct clk_rcg camclk1_src = …;
static struct clk_branch camclk1_clk = …;
static struct clk_rcg camclk2_src = …;
static struct clk_branch camclk2_clk = …;
static struct freq_tbl clk_tbl_csi[] = …;
static struct clk_rcg csi0_src = …;
static struct clk_branch csi0_clk = …;
static struct clk_branch csi0_phy_clk = …;
static struct clk_rcg csi1_src = …;
static struct clk_branch csi1_clk = …;
static struct clk_branch csi1_phy_clk = …;
static struct clk_rcg csi2_src = …;
static struct clk_branch csi2_clk = …;
static struct clk_branch csi2_phy_clk = …;
struct clk_pix_rdi { … };
#define to_clk_pix_rdi(_hw) …
static int pix_rdi_set_parent(struct clk_hw *hw, u8 index)
{ … }
static u8 pix_rdi_get_parent(struct clk_hw *hw)
{ … }
static const struct clk_ops clk_ops_pix_rdi = …;
static const struct clk_hw *pix_rdi_parents[] = …;
static struct clk_pix_rdi csi_pix_clk = …;
static struct clk_pix_rdi csi_pix1_clk = …;
static struct clk_pix_rdi csi_rdi_clk = …;
static struct clk_pix_rdi csi_rdi1_clk = …;
static struct clk_pix_rdi csi_rdi2_clk = …;
static struct freq_tbl clk_tbl_csiphytimer[] = …;
static struct clk_rcg csiphytimer_src = …;
static struct clk_branch csiphy0_timer_clk = …;
static struct clk_branch csiphy1_timer_clk = …;
static struct clk_branch csiphy2_timer_clk = …;
static struct freq_tbl clk_tbl_gfx2d[] = …;
static struct clk_dyn_rcg gfx2d0_src = …;
static struct clk_branch gfx2d0_clk = …;
static struct clk_dyn_rcg gfx2d1_src = …;
static struct clk_branch gfx2d1_clk = …;
static struct freq_tbl clk_tbl_gfx3d[] = …;
static struct freq_tbl clk_tbl_gfx3d_8064[] = …;
static struct clk_dyn_rcg gfx3d_src = …;
static const struct clk_init_data gfx3d_8064_init = …;
static struct clk_branch gfx3d_clk = …;
static struct freq_tbl clk_tbl_vcap[] = …;
static struct clk_dyn_rcg vcap_src = …;
static struct clk_branch vcap_clk = …;
static struct clk_branch vcap_npl_clk = …;
static struct freq_tbl clk_tbl_ijpeg[] = …;
static struct clk_rcg ijpeg_src = …;
static struct clk_branch ijpeg_clk = …;
static struct freq_tbl clk_tbl_jpegd[] = …;
static struct clk_rcg jpegd_src = …;
static struct clk_branch jpegd_clk = …;
static struct freq_tbl clk_tbl_mdp[] = …;
static struct clk_dyn_rcg mdp_src = …;
static struct clk_branch mdp_clk = …;
static struct clk_branch mdp_lut_clk = …;
static struct clk_branch mdp_vsync_clk = …;
static struct freq_tbl clk_tbl_rot[] = …;
static struct clk_dyn_rcg rot_src = …;
static struct clk_branch rot_clk = …;
static const struct parent_map mmcc_pxo_hdmi_map[] = …;
static const struct clk_parent_data mmcc_pxo_hdmi[] = …;
static struct freq_tbl clk_tbl_tv[] = …;
static struct clk_rcg tv_src = …;
static struct clk_branch tv_enc_clk = …;
static struct clk_branch tv_dac_clk = …;
static struct clk_branch mdp_tv_clk = …;
static struct clk_branch hdmi_tv_clk = …;
static struct clk_branch rgb_tv_clk = …;
static struct clk_branch npl_tv_clk = …;
static struct clk_branch hdmi_app_clk = …;
static struct freq_tbl clk_tbl_vcodec[] = …;
static struct clk_dyn_rcg vcodec_src = …;
static struct clk_branch vcodec_clk = …;
static struct freq_tbl clk_tbl_vpe[] = …;
static struct clk_rcg vpe_src = …;
static struct clk_branch vpe_clk = …;
static struct freq_tbl clk_tbl_vfe[] = …;
static struct clk_rcg vfe_src = …;
static struct clk_branch vfe_clk = …;
static struct clk_branch vfe_csi_clk = …;
static struct clk_branch gmem_axi_clk = …;
static struct clk_branch ijpeg_axi_clk = …;
static struct clk_branch mmss_imem_axi_clk = …;
static struct clk_branch jpegd_axi_clk = …;
static struct clk_branch vcodec_axi_b_clk = …;
static struct clk_branch vcodec_axi_a_clk = …;
static struct clk_branch vcodec_axi_clk = …;
static struct clk_branch vfe_axi_clk = …;
static struct clk_branch mdp_axi_clk = …;
static struct clk_branch rot_axi_clk = …;
static struct clk_branch vcap_axi_clk = …;
static struct clk_branch vpe_axi_clk = …;
static struct clk_branch gfx3d_axi_clk = …;
static struct clk_branch amp_ahb_clk = …;
static struct clk_branch csi_ahb_clk = …;
static struct clk_branch dsi_m_ahb_clk = …;
static struct clk_branch dsi_s_ahb_clk = …;
static struct clk_branch dsi2_m_ahb_clk = …;
static struct clk_branch dsi2_s_ahb_clk = …;
static struct clk_rcg dsi1_src = …;
static struct clk_branch dsi1_clk = …;
static struct clk_rcg dsi2_src = …;
static struct clk_branch dsi2_clk = …;
static struct clk_rcg dsi1_byte_src = …;
static struct clk_branch dsi1_byte_clk = …;
static struct clk_rcg dsi2_byte_src = …;
static struct clk_branch dsi2_byte_clk = …;
static struct clk_rcg dsi1_esc_src = …;
static struct clk_branch dsi1_esc_clk = …;
static struct clk_rcg dsi2_esc_src = …;
static struct clk_branch dsi2_esc_clk = …;
static struct clk_rcg dsi1_pixel_src = …;
static struct clk_branch dsi1_pixel_clk = …;
static struct clk_rcg dsi2_pixel_src = …;
static struct clk_branch dsi2_pixel_clk = …;
static struct clk_branch gfx2d0_ahb_clk = …;
static struct clk_branch gfx2d1_ahb_clk = …;
static struct clk_branch gfx3d_ahb_clk = …;
static struct clk_branch hdmi_m_ahb_clk = …;
static struct clk_branch hdmi_s_ahb_clk = …;
static struct clk_branch ijpeg_ahb_clk = …;
static struct clk_branch mmss_imem_ahb_clk = …;
static struct clk_branch jpegd_ahb_clk = …;
static struct clk_branch mdp_ahb_clk = …;
static struct clk_branch rot_ahb_clk = …;
static struct clk_branch smmu_ahb_clk = …;
static struct clk_branch tv_enc_ahb_clk = …;
static struct clk_branch vcap_ahb_clk = …;
static struct clk_branch vcodec_ahb_clk = …;
static struct clk_branch vfe_ahb_clk = …;
static struct clk_branch vpe_ahb_clk = …;
static struct clk_regmap *mmcc_msm8960_clks[] = …;
static const struct qcom_reset_map mmcc_msm8960_resets[] = …;
static struct clk_regmap *mmcc_apq8064_clks[] = …;
static const struct qcom_reset_map mmcc_apq8064_resets[] = …;
static const struct regmap_config mmcc_msm8960_regmap_config = …;
static const struct regmap_config mmcc_apq8064_regmap_config = …;
static const struct qcom_cc_desc mmcc_msm8960_desc = …;
static const struct qcom_cc_desc mmcc_apq8064_desc = …;
static const struct of_device_id mmcc_msm8960_match_table[] = …;
MODULE_DEVICE_TABLE(of, mmcc_msm8960_match_table);
static int mmcc_msm8960_probe(struct platform_device *pdev)
{ … }
static struct platform_driver mmcc_msm8960_driver = …;
module_platform_driver(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;
MODULE_ALIAS(…) …;