arch/arm/mach-ux500/cpu-db8500.c
Source file repositories/reference/linux-study-clean/arch/arm/mach-ux500/cpu-db8500.c
File Facts
- System
- Linux kernel
- Corpus path
arch/arm/mach-ux500/cpu-db8500.c- Extension
.c- Size
- 3604 bytes
- Lines
- 134
- Domain
- Architecture Layer
- Bucket
- arch/arm
- Inferred role
- Architecture Layer: exported/initcall integration point
- Status
- integration 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.
- Exports symbols or registers init work; inspect boot/module ordering and who consumes the exported contract.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/types.hlinux/init.hlinux/device.hlinux/amba/bus.hlinux/interrupt.hlinux/irq.hlinux/irqchip.hlinux/irqchip/arm-gic.hlinux/mfd/dbx500-prcmu.hlinux/platform_data/arm-ux500-pm.hlinux/platform_device.hlinux/io.hlinux/of.hlinux/of_address.hlinux/of_platform.hlinux/regulator/machine.hasm/outercache.hasm/hardware/cache-l2x0.hasm/mach/map.hasm/mach/arch.h
Detected Declarations
function Copyrightfunction ux500_l2c310_write_secfunction ux500_restartfunction u8500_init_machine
Annotated Snippet
* core_initcall(nmk_gpio_init) and add the platform devices from
* arch_initcall(customize_machine).
*
* This feels fragile because it depends on the gpio device getting probed
* _before_ any device uses the gpio interrupts.
*/
static void __init ux500_init_irq(void)
{
struct device_node *np;
struct resource r;
irqchip_init();
prcmu_early_init();
np = of_find_compatible_node(NULL, NULL, "stericsson,db8500-prcmu");
of_address_to_resource(np, 0, &r);
of_node_put(np);
if (!r.start) {
pr_err("could not find PRCMU base resource\n");
return;
}
ux500_pm_init(r.start, r.end-r.start);
/* Unlock before init */
ux500_l2x0_unlock();
outer_cache.write_sec = ux500_l2c310_write_sec;
}
static void ux500_restart(enum reboot_mode mode, const char *cmd)
{
local_irq_disable();
local_fiq_disable();
prcmu_system_reset(0);
}
static const struct of_device_id u8500_local_bus_nodes[] = {
/* only create devices below soc node */
{ .compatible = "stericsson,db8500", },
{ .compatible = "simple-bus"},
{ },
};
static void __init u8500_init_machine(void)
{
of_platform_populate(NULL, u8500_local_bus_nodes,
NULL, NULL);
}
static const char * stericsson_dt_platform_compat[] = {
"st-ericsson,u8500",
"st-ericsson,u9500",
NULL,
};
DT_MACHINE_START(U8500_DT, "ST-Ericsson Ux5x0 platform (Device Tree Support)")
.l2c_aux_val = 0,
.l2c_aux_mask = ~0,
.init_irq = ux500_init_irq,
.init_machine = u8500_init_machine,
.dt_compat = stericsson_dt_platform_compat,
.restart = ux500_restart,
MACHINE_END
Annotation
- Immediate include surface: `linux/types.h`, `linux/init.h`, `linux/device.h`, `linux/amba/bus.h`, `linux/interrupt.h`, `linux/irq.h`, `linux/irqchip.h`, `linux/irqchip/arm-gic.h`.
- Detected declarations: `function Copyright`, `function ux500_l2c310_write_sec`, `function ux500_restart`, `function u8500_init_machine`.
- Atlas domain: Architecture Layer / arch/arm.
- 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.