Date:2011-03-05 01:24:11 (11 years 7 months ago)
Author:Peter Zotov
Commit:df1752a3ca1c25a4627735a04cf79da0fe44e6cd
Message:Add RTC platform device support for JZ4750.

Files: arch/mips/include/asm/mach-jz47xx/jz4750/platform.h (1 diff)
arch/mips/jz47xx/jz4750/board-xz0032.c (1 diff)
arch/mips/jz47xx/jz4750/platform.c (1 diff)
drivers/rtc/Kconfig (1 diff)

Change Details

arch/mips/include/asm/mach-jz47xx/jz4750/platform.h
1818
1919#include <linux/platform_device.h>
2020
21extern struct platform_device jz4750_rtc_device;
22
2123void jz4750_serial_device_register(void);
2224
2325#endif
arch/mips/jz47xx/jz4750/board-xz0032.c
2222#include "../clock.h"
2323
2424static struct platform_device *jz_platform_devices[] __initdata = {
25    &jz4750_rtc_device,
2526};
2627
2728static int __init xz0032_init_platform_devices(void)
arch/mips/jz47xx/jz4750/platform.c
3232#include "../serial.h"
3333#include "../clock.h"
3434
35/* RTC controller */
36static struct resource jz4750_rtc_resources[] = {
37    {
38        .start = JZ47XX_RTC_BASE_ADDR,
39        .end = JZ47XX_RTC_BASE_ADDR + 0x38 - 1,
40        .flags = IORESOURCE_MEM,
41    },
42    {
43        .start = JZ4750_IRQ_RTC,
44        .end = JZ4750_IRQ_RTC,
45        .flags = IORESOURCE_IRQ,
46    },
47};
48
49struct platform_device jz4750_rtc_device = {
50    .name = "jz4740-rtc",
51    .id = -1,
52    .num_resources = ARRAY_SIZE(jz4750_rtc_resources),
53    .resource = jz4750_rtc_resources,
54};
55
3556/* Serial */
3657#define JZ4750_UART_DATA(_id) \
3758    { \
drivers/rtc/Kconfig
956956config RTC_DRV_JZ4740
957957    tristate "Ingenic JZ4740 SoC"
958958    depends on RTC_CLASS
959    depends on MACH_JZ4740
959    depends on MACH_JZ4740 || MACH_JZ4750
960960    help
961961      If you say yes here you get support for the Ingenic JZ4740 SoC RTC
962962      controller.

Archive Download the corresponding diff file



interactive