arch/arm/mach-artpec/board-artpec6.c
Source file repositories/reference/linux-study-clean/arch/arm/mach-artpec/board-artpec6.c
File Facts
- System
- Linux kernel
- Corpus path
arch/arm/mach-artpec/board-artpec6.c- Extension
.c- Size
- 1517 bytes
- Lines
- 67
- 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/amba/bus.hlinux/clocksource.hlinux/dma-mapping.hlinux/io.hlinux/irqchip.hlinux/irqchip/arm-gic.hlinux/mfd/syscon.hlinux/of.hlinux/of_address.hlinux/clk-provider.hlinux/regmap.hlinux/smp.hasm/smp_scu.hasm/mach/arch.hasm/mach/map.hasm/psci.hlinux/arm-smccc.h
Detected Declarations
function artpec6_init_machinefunction artpec6_l2c310_write_sec
Annotated Snippet
// SPDX-License-Identifier: GPL-2.0-only
/*
* ARTPEC-6 device support.
*/
#include <linux/amba/bus.h>
#include <linux/clocksource.h>
#include <linux/dma-mapping.h>
#include <linux/io.h>
#include <linux/irqchip.h>
#include <linux/irqchip/arm-gic.h>
#include <linux/mfd/syscon.h>
#include <linux/of.h>
#include <linux/of_address.h>
#include <linux/clk-provider.h>
#include <linux/regmap.h>
#include <linux/smp.h>
#include <asm/smp_scu.h>
#include <asm/mach/arch.h>
#include <asm/mach/map.h>
#include <asm/psci.h>
#include <linux/arm-smccc.h>
#define ARTPEC6_DMACFG_REGNUM 0x10
#define ARTPEC6_DMACFG_UARTS_BURST 0xff
#define SECURE_OP_L2C_WRITEREG 0xb4000001
static void __init artpec6_init_machine(void)
{
struct regmap *regmap;
regmap = syscon_regmap_lookup_by_compatible("axis,artpec6-syscon");
if (!IS_ERR(regmap)) {
/* Use PL011 DMA Burst Request signal instead of DMA
* Single Request
*/
regmap_write(regmap, ARTPEC6_DMACFG_REGNUM,
ARTPEC6_DMACFG_UARTS_BURST);
};
}
static void artpec6_l2c310_write_sec(unsigned long val, unsigned reg)
{
struct arm_smccc_res res;
arm_smccc_smc(SECURE_OP_L2C_WRITEREG, reg, val, 0,
0, 0, 0, 0, &res);
WARN_ON(res.a0);
}
static const char * const artpec6_dt_match[] = {
"axis,artpec6",
NULL
};
DT_MACHINE_START(ARTPEC6, "Axis ARTPEC-6 Platform")
.l2c_aux_val = 0x0C000000,
.l2c_aux_mask = 0xF3FFFFFF,
.l2c_write_sec = artpec6_l2c310_write_sec,
.init_machine = artpec6_init_machine,
.dt_compat = artpec6_dt_match,
MACHINE_END
Annotation
- Immediate include surface: `linux/amba/bus.h`, `linux/clocksource.h`, `linux/dma-mapping.h`, `linux/io.h`, `linux/irqchip.h`, `linux/irqchip/arm-gic.h`, `linux/mfd/syscon.h`, `linux/of.h`.
- Detected declarations: `function artpec6_init_machine`, `function artpec6_l2c310_write_sec`.
- 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.