arch/sh/boards/board-magicpanelr2.c
Source file repositories/reference/linux-study-clean/arch/sh/boards/board-magicpanelr2.c
File Facts
- System
- Linux kernel
- Corpus path
arch/sh/boards/board-magicpanelr2.c- Extension
.c- Size
- 11119 bytes
- Lines
- 392
- Domain
- Architecture Layer
- Bucket
- arch/sh
- 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/init.hlinux/irq.hlinux/platform_device.hlinux/delay.hlinux/gpio.hlinux/regulator/fixed.hlinux/regulator/machine.hlinux/smsc911x.hlinux/mtd/mtd.hlinux/mtd/partitions.hlinux/mtd/physmap.hlinux/mtd/map.hlinux/sh_intc.hmach/magicpanelr2.hasm/heartbeat.hcpu/gpio.hcpu/sh7720.h
Detected Declarations
function ethernet_reset_finishedfunction reset_ethernetfunction setup_chip_selectfunction setup_port_multiplexingfunction mpr2_setupfunction mpr2_devices_setupfunction init_mpr2_IRQmodule init mpr2_devices_setup
Annotated Snippet
device_initcall(mpr2_devices_setup);
/*
* Initialize IRQ setting
*/
static void __init init_mpr2_IRQ(void)
{
plat_irq_setup_pins(IRQ_MODE_IRQ); /* install handlers for IRQ0-5 */
irq_set_irq_type(evt2irq(0x600), IRQ_TYPE_LEVEL_LOW); /* IRQ0 CAN1 */
irq_set_irq_type(evt2irq(0x620), IRQ_TYPE_LEVEL_LOW); /* IRQ1 CAN2 */
irq_set_irq_type(evt2irq(0x640), IRQ_TYPE_LEVEL_LOW); /* IRQ2 CAN3 */
irq_set_irq_type(evt2irq(0x660), IRQ_TYPE_LEVEL_LOW); /* IRQ3 SMSC9115 */
irq_set_irq_type(evt2irq(0x680), IRQ_TYPE_EDGE_RISING); /* IRQ4 touchscreen */
irq_set_irq_type(evt2irq(0x6a0), IRQ_TYPE_EDGE_FALLING); /* IRQ5 touchscreen */
intc_set_priority(evt2irq(0x600), 13); /* IRQ0 CAN1 */
intc_set_priority(evt2irq(0x620), 13); /* IRQ0 CAN2 */
intc_set_priority(evt2irq(0x640), 13); /* IRQ0 CAN3 */
intc_set_priority(evt2irq(0x660), 6); /* IRQ3 SMSC9115 */
}
/*
* The Machine Vector
*/
static struct sh_machine_vector mv_mpr2 __initmv = {
.mv_name = "mpr2",
.mv_setup = mpr2_setup,
.mv_init_irq = init_mpr2_IRQ,
};
Annotation
- Immediate include surface: `linux/init.h`, `linux/irq.h`, `linux/platform_device.h`, `linux/delay.h`, `linux/gpio.h`, `linux/regulator/fixed.h`, `linux/regulator/machine.h`, `linux/smsc911x.h`.
- Detected declarations: `function ethernet_reset_finished`, `function reset_ethernet`, `function setup_chip_select`, `function setup_port_multiplexing`, `function mpr2_setup`, `function mpr2_devices_setup`, `function init_mpr2_IRQ`, `module init mpr2_devices_setup`.
- Atlas domain: Architecture Layer / arch/sh.
- 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.