arch/mips/ralink/rt288x.c

Source file repositories/reference/linux-study-clean/arch/mips/ralink/rt288x.c

File Facts

System
Linux kernel
Corpus path
arch/mips/ralink/rt288x.c
Extension
.c
Size
2536 bytes
Lines
111
Domain
Architecture Layer
Bucket
arch/mips
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.

Dependency Surface

Detected Declarations

Annotated Snippet

device_initcall(rt2880_soc_dev_init);

void __init prom_soc_init(struct ralink_soc_info *soc_info)
{
	if (rt2880_soc_valid())
		soc_info->compatible = "ralink,r2880-soc";
	else
		panic("rt288x: unknown SoC, n0:%08x n1:%08x",
		      rt2880_get_soc_name0(), rt2880_get_soc_name1());

	snprintf(soc_info->sys_type, RAMIPS_SYS_TYPE_LEN,
		"Ralink %s id:%u rev:%u",
		rt2880_get_soc_name(),
		rt2880_get_soc_ver(),
		rt2880_get_soc_rev());

	soc_info->mem_base = RT2880_SDRAM_BASE;
	soc_info->mem_size_min = RT2880_MEM_SIZE_MIN;
	soc_info->mem_size_max = RT2880_MEM_SIZE_MAX;

	ralink_soc = RT2880_SOC;
	soc_info_ptr = soc_info;
}

Annotation

Implementation Notes