drivers/clk/qcom/mmcc-msm8994.c
Source file repositories/reference/linux-study-clean/drivers/clk/qcom/mmcc-msm8994.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/clk/qcom/mmcc-msm8994.c- Extension
.c- Size
- 67618 bytes
- Lines
- 2619
- Domain
- Driver Families
- Bucket
- drivers/clk
- Inferred role
- Driver Families: implementation source
- Status
- source implementation candidate
Why This File Exists
Repeatable hardware-adapter layer. Deep compatibility for every driver is out of scope; this atlas records patterns, probe lifecycles, bus glue, IRQ/DMA usage, and links back to core abstractions.
- Repeatable hardware-adapter layer. Deep compatibility for every driver is out of scope; this atlas records patterns, probe lifecycles, bus glue, IRQ/DMA usage, and links back to core abstractions.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/kernel.hlinux/bitops.hlinux/err.hlinux/platform_device.hlinux/mod_devicetable.hlinux/module.hlinux/of.hlinux/clk-provider.hlinux/regmap.hdt-bindings/clock/qcom,mmcc-msm8994.hcommon.hclk-regmap.hclk-regmap-divider.hclk-alpha-pll.hclk-rcg.hclk-branch.hreset.hgdsc.h
Detected Declarations
function mmcc_msm8994_probe
Annotated Snippet
// SPDX-License-Identifier: GPL-2.0-only
/*
* Copyright (c) 2021, Konrad Dybcio <konrad.dybcio@somainline.org>
*/
#include <linux/kernel.h>
#include <linux/bitops.h>
#include <linux/err.h>
#include <linux/platform_device.h>
#include <linux/mod_devicetable.h>
#include <linux/module.h>
#include <linux/of.h>
#include <linux/clk-provider.h>
#include <linux/regmap.h>
#include <dt-bindings/clock/qcom,mmcc-msm8994.h>
#include "common.h"
#include "clk-regmap.h"
#include "clk-regmap-divider.h"
#include "clk-alpha-pll.h"
#include "clk-rcg.h"
#include "clk-branch.h"
#include "reset.h"
#include "gdsc.h"
enum {
P_XO,
P_GPLL0,
P_MMPLL0,
P_MMPLL1,
P_MMPLL3,
P_MMPLL4,
P_MMPLL5, /* Is this one even used by anything? Downstream doesn't tell. */
P_DSI0PLL,
P_DSI1PLL,
P_DSI0PLL_BYTE,
P_DSI1PLL_BYTE,
P_HDMIPLL,
};
static const struct parent_map mmcc_xo_gpll0_map[] = {
{ P_XO, 0 },
{ P_GPLL0, 5 }
};
static const struct clk_parent_data mmcc_xo_gpll0[] = {
{ .fw_name = "xo" },
{ .fw_name = "gpll0" },
};
static const struct parent_map mmss_xo_hdmi_map[] = {
{ P_XO, 0 },
{ P_HDMIPLL, 3 }
};
static const struct clk_parent_data mmss_xo_hdmi[] = {
{ .fw_name = "xo" },
{ .fw_name = "hdmipll" },
};
static const struct parent_map mmcc_xo_dsi0pll_dsi1pll_map[] = {
{ P_XO, 0 },
{ P_DSI0PLL, 1 },
{ P_DSI1PLL, 2 }
};
static const struct clk_parent_data mmcc_xo_dsi0pll_dsi1pll[] = {
{ .fw_name = "xo" },
{ .fw_name = "dsi0pll" },
{ .fw_name = "dsi1pll" },
};
static const struct parent_map mmcc_xo_dsibyte_map[] = {
{ P_XO, 0 },
{ P_DSI0PLL_BYTE, 1 },
{ P_DSI1PLL_BYTE, 2 }
};
static const struct clk_parent_data mmcc_xo_dsibyte[] = {
{ .fw_name = "xo" },
{ .fw_name = "dsi0pllbyte" },
{ .fw_name = "dsi1pllbyte" },
};
static const struct pll_vco mmpll_p_vco[] = {
{ 250000000, 500000000, 3 },
{ 500000000, 1000000000, 2 },
{ 1000000000, 1500000000, 1 },
{ 1500000000, 2000000000, 0 },
Annotation
- Immediate include surface: `linux/kernel.h`, `linux/bitops.h`, `linux/err.h`, `linux/platform_device.h`, `linux/mod_devicetable.h`, `linux/module.h`, `linux/of.h`, `linux/clk-provider.h`.
- Detected declarations: `function mmcc_msm8994_probe`.
- Atlas domain: Driver Families / drivers/clk.
- Implementation status: source implementation candidate.
Implementation Notes
- This generated page is the file-by-file coverage layer; curated subsystem chapters should link here when they synthesize a multi-file control flow.
- Core OS pages should be promoted from atlas-only to deep-reviewed when they explain data structures, invariants, locking, lifecycle, and C implementation snippets.
- Driver-family pages are intentionally pattern-oriented unless they are part of the selected PCIe/NVMe representative device path.