arch/sh/boards/mach-ap325rxa/setup.c
Source file repositories/reference/linux-study-clean/arch/sh/boards/mach-ap325rxa/setup.c
File Facts
- System
- Linux kernel
- Corpus path
arch/sh/boards/mach-ap325rxa/setup.c- Extension
.c- Size
- 14630 bytes
- Lines
- 575
- Domain
- Architecture Layer
- Bucket
- arch/sh
- 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
asm/clock.hasm/io.hasm/suspend.hcpu/sh7723.hlinux/dma-map-ops.hlinux/clkdev.hlinux/delay.hlinux/device.hlinux/gpio.hlinux/gpio/consumer.hlinux/gpio/machine.hlinux/i2c.hlinux/init.hlinux/interrupt.hlinux/memblock.hlinux/mmc/host.hlinux/mtd/physmap.hlinux/mtd/sh_flctl.hlinux/platform_data/tmio.hlinux/platform_device.hlinux/regulator/fixed.hlinux/regulator/machine.hlinux/sh_intc.hlinux/smsc911x.hlinux/videodev2.hmedia/drv-intf/renesas-ceu.hmedia/i2c/ov772x.hvideo/sh_mobile_lcdc.h
Detected Declarations
function ap320_wvga_set_brightnessfunction ap320_wvga_power_onfunction ap320_wvga_power_offfunction ap325rxa_devices_setupfunction ap325rxa_mode_pinsfunction ap325rxa_mv_mem_reserve
Annotated Snippet
// SPDX-License-Identifier: GPL-2.0
/*
* Renesas - AP-325RXA
* (Compatible with Algo System ., LTD. - AP-320A)
*
* Copyright (C) 2008 Renesas Solutions Corp.
* Author : Yusuke Goda <goda.yuske@renesas.com>
*/
#include <asm/clock.h>
#include <asm/io.h>
#include <asm/suspend.h>
#include <cpu/sh7723.h>
#include <linux/dma-map-ops.h>
#include <linux/clkdev.h>
#include <linux/delay.h>
#include <linux/device.h>
#include <linux/gpio.h>
#include <linux/gpio/consumer.h>
#include <linux/gpio/machine.h>
#include <linux/i2c.h>
#include <linux/init.h>
#include <linux/interrupt.h>
#include <linux/memblock.h>
#include <linux/mmc/host.h>
#include <linux/mtd/physmap.h>
#include <linux/mtd/sh_flctl.h>
#include <linux/platform_data/tmio.h>
#include <linux/platform_device.h>
#include <linux/regulator/fixed.h>
#include <linux/regulator/machine.h>
#include <linux/sh_intc.h>
#include <linux/smsc911x.h>
#include <linux/videodev2.h>
#include <media/drv-intf/renesas-ceu.h>
#include <media/i2c/ov772x.h>
#include <video/sh_mobile_lcdc.h>
#define CEU_BUFFER_MEMORY_SIZE (4 << 20)
static phys_addr_t ceu_dma_membase;
/* Dummy supplies, where voltage doesn't matter */
static struct regulator_consumer_supply dummy_supplies[] = {
REGULATOR_SUPPLY("vddvario", "smsc911x"),
REGULATOR_SUPPLY("vdd33a", "smsc911x"),
};
static struct smsc911x_platform_config smsc911x_config = {
.phy_interface = PHY_INTERFACE_MODE_MII,
.irq_polarity = SMSC911X_IRQ_POLARITY_ACTIVE_LOW,
.irq_type = SMSC911X_IRQ_TYPE_OPEN_DRAIN,
.flags = SMSC911X_USE_32BIT,
};
static struct resource smsc9118_resources[] = {
[0] = {
.start = 0xb6080000,
.end = 0xb60fffff,
.flags = IORESOURCE_MEM,
},
[1] = {
.start = evt2irq(0x660),
.end = evt2irq(0x660),
.flags = IORESOURCE_IRQ,
}
};
static struct platform_device smsc9118_device = {
.name = "smsc911x",
.id = -1,
.num_resources = ARRAY_SIZE(smsc9118_resources),
.resource = smsc9118_resources,
.dev = {
.platform_data = &smsc911x_config,
},
};
/*
* AP320 and AP325RXA has CPLD data in NOR Flash(0xA80000-0xABFFFF).
* If this area erased, this board can not boot.
*/
static struct mtd_partition ap325rxa_nor_flash_partitions[] = {
{
.name = "uboot",
.offset = 0,
.size = (1 * 1024 * 1024),
Annotation
- Immediate include surface: `asm/clock.h`, `asm/io.h`, `asm/suspend.h`, `cpu/sh7723.h`, `linux/dma-map-ops.h`, `linux/clkdev.h`, `linux/delay.h`, `linux/device.h`.
- Detected declarations: `function ap320_wvga_set_brightness`, `function ap320_wvga_power_on`, `function ap320_wvga_power_off`, `function ap325rxa_devices_setup`, `function ap325rxa_mode_pins`, `function ap325rxa_mv_mem_reserve`.
- Atlas domain: Architecture Layer / arch/sh.
- 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.