arch/arm/mach-omap2/io.c
Source file repositories/reference/linux-study-clean/arch/arm/mach-omap2/io.c
File Facts
- System
- Linux kernel
- Corpus path
arch/arm/mach-omap2/io.c- Extension
.c- Size
- 15992 bytes
- Lines
- 704
- 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/module.hlinux/kernel.hlinux/init.hlinux/io.hlinux/clk.hasm/tlb.hasm/mach/map.hlinux/omap-dma.homap_hwmod.hsoc.hiomap.hvoltage.hpowerdomain.hclockdomain.hcommon.hclock.hsdrc.hcontrol.hsram.hcm2xxx.hcm3xxx.hcm33xx.hcm44xx.hprm.hcm.hprcm_mpu44xx.hprminst44xx.hprm2xxx.hprm3xxx.hprm33xx.hprm44xx.hopp2xxx.h
Detected Declarations
function omap242x_map_iofunction omap243x_map_iofunction omap3_map_iofunction ti81xx_map_iofunction am33xx_map_iofunction omap4_map_iofunction omap5_map_iofunction dra7xx_map_iofunction clk_set_ratefunction _set_hwmod_postsetup_statefunction omap_hwmod_init_postsetupfunction omap_hwmod_init_postsetupfunction omap2430_init_earlyfunction omap3_init_earlyfunction omap3430_init_earlyfunction omap3630_init_earlyfunction am35xx_init_earlyfunction omap3_init_latefunction ti81xx_init_latefunction ti814x_init_earlyfunction ti816x_init_earlyfunction am33xx_init_earlyfunction am33xx_init_latefunction am43xx_init_earlyfunction am43xx_init_latefunction omap4430_init_earlyfunction omap4430_init_latefunction omap5_init_earlyfunction omap5_init_latefunction dra7xx_init_earlyfunction dra7xx_init_latefunction omap_sdrc_initfunction omap_clk_init
Annotated Snippet
// SPDX-License-Identifier: GPL-2.0-only
/*
* linux/arch/arm/mach-omap2/io.c
*
* OMAP2 I/O mapping code
*
* Copyright (C) 2005 Nokia Corporation
* Copyright (C) 2007-2009 Texas Instruments
*
* Author:
* Juha Yrjola <juha.yrjola@nokia.com>
* Syed Khasim <x0khasim@ti.com>
*
* Added OMAP4 support - Santosh Shilimkar <santosh.shilimkar@ti.com>
*/
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/io.h>
#include <linux/clk.h>
#include <asm/tlb.h>
#include <asm/mach/map.h>
#include <linux/omap-dma.h>
#include "omap_hwmod.h"
#include "soc.h"
#include "iomap.h"
#include "voltage.h"
#include "powerdomain.h"
#include "clockdomain.h"
#include "common.h"
#include "clock.h"
#include "sdrc.h"
#include "control.h"
#include "sram.h"
#include "cm2xxx.h"
#include "cm3xxx.h"
#include "cm33xx.h"
#include "cm44xx.h"
#include "prm.h"
#include "cm.h"
#include "prcm_mpu44xx.h"
#include "prminst44xx.h"
#include "prm2xxx.h"
#include "prm3xxx.h"
#include "prm33xx.h"
#include "prm44xx.h"
#include "opp2xxx.h"
#include "omap-secure.h"
/*
* omap_clk_soc_init: points to a function that does the SoC-specific
* clock initializations
*/
static int (*omap_clk_soc_init)(void);
/*
* The machine specific code may provide the extra mapping besides the
* default mapping provided here.
*/
#if defined(CONFIG_SOC_OMAP2420) || defined(CONFIG_SOC_OMAP2430)
static struct map_desc omap24xx_io_desc[] __initdata = {
{
.virtual = L3_24XX_VIRT,
.pfn = __phys_to_pfn(L3_24XX_PHYS),
.length = L3_24XX_SIZE,
.type = MT_DEVICE
},
{
.virtual = L4_24XX_VIRT,
.pfn = __phys_to_pfn(L4_24XX_PHYS),
.length = L4_24XX_SIZE,
.type = MT_DEVICE
},
};
#ifdef CONFIG_SOC_OMAP2420
static struct map_desc omap242x_io_desc[] __initdata = {
{
.virtual = DSP_MEM_2420_VIRT,
.pfn = __phys_to_pfn(DSP_MEM_2420_PHYS),
.length = DSP_MEM_2420_SIZE,
.type = MT_DEVICE
},
{
.virtual = DSP_IPI_2420_VIRT,
.pfn = __phys_to_pfn(DSP_IPI_2420_PHYS),
Annotation
- Immediate include surface: `linux/module.h`, `linux/kernel.h`, `linux/init.h`, `linux/io.h`, `linux/clk.h`, `asm/tlb.h`, `asm/mach/map.h`, `linux/omap-dma.h`.
- Detected declarations: `function omap242x_map_io`, `function omap243x_map_io`, `function omap3_map_io`, `function ti81xx_map_io`, `function am33xx_map_io`, `function omap4_map_io`, `function omap5_map_io`, `function dra7xx_map_io`, `function clk_set_rate`, `function _set_hwmod_postsetup_state`.
- 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.