Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 260561
b: refs/heads/master
c: 1c72f9e
h: refs/heads/master
i:
  260559: e817778
v: v3
  • Loading branch information
Wolfram Sang committed Jul 12, 2011
1 parent 36436ae commit bcb7cd6
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 7db2b37751caa2f17b026223a382eca07c90c575
refs/heads/master: 1c72f9eaa53e920f142f4c1d20b4fc82b1a10ed5
21 changes: 21 additions & 0 deletions trunk/arch/arm/mach-lpc32xx/common.c
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,27 @@ struct platform_device lpc32xx_tsc_device = {
.resource = lpc32xx_tsc_resources,
};

/* RTC */

static struct resource lpc32xx_rtc_resources[] = {
{
.start = LPC32XX_RTC_BASE,
.end = LPC32XX_RTC_BASE + SZ_4K - 1,
.flags = IORESOURCE_MEM,
},{
.start = IRQ_LPC32XX_RTC,
.end = IRQ_LPC32XX_RTC,
.flags = IORESOURCE_IRQ,
},
};

struct platform_device lpc32xx_rtc_device = {
.name = "rtc-lpc32xx",
.id = -1,
.num_resources = ARRAY_SIZE(lpc32xx_rtc_resources),
.resource = lpc32xx_rtc_resources,
};

/*
* Returns the unique ID for the device
*/
Expand Down
1 change: 1 addition & 0 deletions trunk/arch/arm/mach-lpc32xx/common.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ extern struct platform_device lpc32xx_i2c0_device;
extern struct platform_device lpc32xx_i2c1_device;
extern struct platform_device lpc32xx_i2c2_device;
extern struct platform_device lpc32xx_tsc_device;
extern struct platform_device lpc32xx_rtc_device;

/*
* Other arch specific structures and functions
Expand Down

0 comments on commit bcb7cd6

Please sign in to comment.