drivers/cpufreq/sun50i-cpufreq-nvmem.c
Source file repositories/reference/linux-study-clean/drivers/cpufreq/sun50i-cpufreq-nvmem.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/cpufreq/sun50i-cpufreq-nvmem.c- Extension
.c- Size
- 8506 bytes
- Lines
- 371
- Domain
- Driver Families
- Bucket
- drivers/cpufreq
- Inferred role
- Driver Families: exported/initcall integration point
- Status
- integration 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.
- Exports symbols or registers init work; inspect boot/module ordering and who consumes the exported contract.
- Allocates kernel memory; connect allocation flags and lifetime to context constraints.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/arm-smccc.hlinux/cpu.hlinux/module.hlinux/nvmem-consumer.hlinux/of.hlinux/platform_device.hlinux/pm_opp.hlinux/slab.h
Detected Declarations
struct sunxi_cpufreq_datafunction sun50i_h6_efuse_xlatefunction sun50i_a100_efuse_xlatefunction get_soc_id_revisionfunction sun50i_h616_efuse_xlatefunction dt_has_supported_hwfunction for_each_child_of_node_scopedfunction sun50i_cpufreq_get_efusefunction sun50i_cpufreq_nvmem_probefunction for_each_present_cpufunction sun50i_cpufreq_nvmem_removefunction sun50i_cpufreq_initfunction sun50i_cpufreq_exitmodule init sun50i_cpufreq_init
Annotated Snippet
module_init(sun50i_cpufreq_init);
static void __exit sun50i_cpufreq_exit(void)
{
platform_device_unregister(sun50i_cpufreq_pdev);
platform_driver_unregister(&sun50i_cpufreq_driver);
}
module_exit(sun50i_cpufreq_exit);
MODULE_DESCRIPTION("Sun50i-h6 cpufreq driver");
MODULE_LICENSE("GPL v2");
Annotation
- Immediate include surface: `linux/arm-smccc.h`, `linux/cpu.h`, `linux/module.h`, `linux/nvmem-consumer.h`, `linux/of.h`, `linux/platform_device.h`, `linux/pm_opp.h`, `linux/slab.h`.
- Detected declarations: `struct sunxi_cpufreq_data`, `function sun50i_h6_efuse_xlate`, `function sun50i_a100_efuse_xlate`, `function get_soc_id_revision`, `function sun50i_h616_efuse_xlate`, `function dt_has_supported_hw`, `function for_each_child_of_node_scoped`, `function sun50i_cpufreq_get_efuse`, `function sun50i_cpufreq_nvmem_probe`, `function for_each_present_cpu`.
- Atlas domain: Driver Families / drivers/cpufreq.
- Implementation status: integration 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.