基于s5pv210 rtc驱动实验
代码说明:
#include // include/linux/xxx.h #include #include #include #include #define S5PV210_PA_RTC 0xe2800000 void rtc_release(struct device *dev) { } struct resource s5p_rtc_resource[] = { [0] = { .start = S5PV210_PA_RTC, .end = S5PV210_PA_RTC + SZ_1K - 1, .flags = IORESOURCE_MEM, }, [1] = { .start = IRQ_RTC_ALARM, .end = IRQ_RTC_ALARM, .flags = IORESOURCE_IRQ, }, }; struct platform_device rtc_plat_dev = { .name = "rtc-plat", .num_resources = ARRAY_SIZE(s5p_rtc_resource), .resource = s5p_rtc_resou
下载说明:请别用迅雷下载,失败请重下,重下不扣分!