arch/sh/boards/board-urquell.c
Source file repositories/reference/linux-study-clean/arch/sh/boards/board-urquell.c
File Facts
- System
- Linux kernel
- Corpus path
arch/sh/boards/board-urquell.c- Extension
.c- Size
- 5097 bytes
- Lines
- 219
- 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/platform_device.hlinux/fb.hlinux/smc91x.hlinux/mtd/physmap.hlinux/delay.hlinux/gpio.hlinux/irq.hlinux/clk.hlinux/sh_intc.hmach/urquell.hcpu/sh7786.hasm/heartbeat.hlinux/sizes.hasm/smp-ops.h
Detected Declarations
function urquell_devices_setupfunction urquell_power_offfunction urquell_init_irqfunction urquell_mode_pinsfunction urquell_clk_initfunction urquell_setupmodule init urquell_devices_setup
Annotated Snippet
device_initcall(urquell_devices_setup);
static void urquell_power_off(void)
{
__raw_writew(0xa5a5, UBOARDREG(SRSTR));
}
static void __init urquell_init_irq(void)
{
plat_irq_setup_pins(IRQ_MODE_IRL3210_MASK);
}
static int urquell_mode_pins(void)
{
return __raw_readw(UBOARDREG(MDSWMR));
}
static int urquell_clk_init(void)
{
struct clk *clk;
int ret;
/*
* Only handle the EXTAL case, anyone interfacing a crystal
* resonator will need to provide their own input clock.
*/
if (test_mode_pin(MODE_PIN9))
return -EINVAL;
clk = clk_get(NULL, "extal");
if (IS_ERR(clk))
return PTR_ERR(clk);
ret = clk_set_rate(clk, 33333333);
clk_put(clk);
return ret;
}
/* Initialize the board */
static void __init urquell_setup(char **cmdline_p)
{
printk(KERN_INFO "Renesas Technology Corp. Urquell support.\n");
pm_power_off = urquell_power_off;
register_smp_ops(&shx3_smp_ops);
}
/*
* The Machine Vector
*/
static struct sh_machine_vector mv_urquell __initmv = {
.mv_name = "Urquell",
.mv_setup = urquell_setup,
.mv_init_irq = urquell_init_irq,
.mv_mode_pins = urquell_mode_pins,
.mv_clk_init = urquell_clk_init,
};
Annotation
- Immediate include surface: `linux/init.h`, `linux/platform_device.h`, `linux/fb.h`, `linux/smc91x.h`, `linux/mtd/physmap.h`, `linux/delay.h`, `linux/gpio.h`, `linux/irq.h`.
- Detected declarations: `function urquell_devices_setup`, `function urquell_power_off`, `function urquell_init_irq`, `function urquell_mode_pins`, `function urquell_clk_init`, `function urquell_setup`, `module init urquell_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.