arch/arm/mach-imx/anatop.c
Source file repositories/reference/linux-study-clean/arch/arm/mach-imx/anatop.c
File Facts
- System
- Linux kernel
- Corpus path
arch/arm/mach-imx/anatop.c- Extension
.c- Size
- 4348 bytes
- Lines
- 164
- Domain
- Architecture Layer
- Bucket
- arch/arm
- Inferred role
- Architecture Layer: implementation source
- Status
- source implementation candidate
Why This File Exists
CPU and platform-specific kernel glue: boot entry, traps, syscall entry, interrupts, page tables, context switch, and low-level barriers.
- CPU and platform-specific kernel glue: boot entry, traps, syscall entry, interrupts, page tables, context switch, and low-level barriers.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/err.hlinux/io.hlinux/of.hlinux/of_address.hlinux/mfd/syscon.hlinux/regmap.hcommon.hhardware.h
Detected Declarations
function imx_anatop_enable_weak2p5function imx_anatop_enable_fet_odrivefunction imx_anatop_enable_2p5_pulldownfunction imx_anatop_disconnect_high_snvsfunction imx_anatop_pre_suspendfunction imx_anatop_post_resumefunction imx_init_revision_from_anatopfunction imx_anatop_init
Annotated Snippet
if ((digprog >> 16) == MXC_CPU_IMX6ULL) {
void __iomem *src_base;
u32 sbmr2;
src_np = of_find_compatible_node(NULL, NULL,
"fsl,imx6ul-src");
src_base = of_iomap(src_np, 0);
of_node_put(src_np);
WARN_ON(!src_base);
sbmr2 = readl_relaxed(src_base + SRC_SBMR2);
iounmap(src_base);
/* src_sbmr2 bit 6 is to identify if it is i.MX6ULZ */
if (sbmr2 & (1 << 6)) {
digprog &= ~(0xff << 16);
digprog |= (MXC_CPU_IMX6ULZ << 16);
}
}
}
of_node_put(np);
mxc_set_cpu_type(digprog >> 16 & 0xff);
imx_set_soc_revision(revision);
}
void __init imx_anatop_init(void)
{
anatop = syscon_regmap_lookup_by_compatible("fsl,imx6q-anatop");
if (IS_ERR(anatop))
pr_err("%s: failed to find imx6q-anatop regmap!\n", __func__);
}
Annotation
- Immediate include surface: `linux/err.h`, `linux/io.h`, `linux/of.h`, `linux/of_address.h`, `linux/mfd/syscon.h`, `linux/regmap.h`, `common.h`, `hardware.h`.
- Detected declarations: `function imx_anatop_enable_weak2p5`, `function imx_anatop_enable_fet_odrive`, `function imx_anatop_enable_2p5_pulldown`, `function imx_anatop_disconnect_high_snvs`, `function imx_anatop_pre_suspend`, `function imx_anatop_post_resume`, `function imx_init_revision_from_anatop`, `function imx_anatop_init`.
- Atlas domain: Architecture Layer / arch/arm.
- 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.