arch/arm/mach-omap1/gpio16xx.c

Source file repositories/reference/linux-study-clean/arch/arm/mach-omap1/gpio16xx.c

File Facts

System
Linux kernel
Corpus path
arch/arm/mach-omap1/gpio16xx.c
Extension
.c
Size
6574 bytes
Lines
252
Domain
Architecture Layer
Bucket
arch/arm
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

if (unlikely(!res)) {
			pr_err("%s.%d: Invalid mem resource.\n", pdevinfo->name, pdevinfo->id);
			return -ENODEV;
		}

		base = ioremap(res->start, resource_size(res));
		if (unlikely(!base)) {
			pr_err("%s.%d: ioremap failed.\n", pdevinfo->name, pdevinfo->id);
			return -ENOMEM;
		}

		__raw_writel(SYSCONFIG_WORD, base + OMAP1610_GPIO_SYSCONFIG);
		iounmap(base);

		platform_device_register_full(omap16xx_gpio_dev[i]);
	}

	return 0;
}
postcore_initcall(omap16xx_gpio_init);

Annotation

Implementation Notes