Commit 1c72f9ea authored by Wolfram Sang's avatar Wolfram Sang

arm: lpc32xx: add rtc-device

Signed-off-by: default avatarWolfram Sang <w.sang@pengutronix.de>
Tested-by: default avatarKevin Wells <Kevin.wells@nxp.com>
parent 7db2b377
...@@ -116,6 +116,27 @@ struct platform_device lpc32xx_tsc_device = { ...@@ -116,6 +116,27 @@ struct platform_device lpc32xx_tsc_device = {
.resource = lpc32xx_tsc_resources, .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 * Returns the unique ID for the device
*/ */
......
...@@ -29,6 +29,7 @@ extern struct platform_device lpc32xx_i2c0_device; ...@@ -29,6 +29,7 @@ extern struct platform_device lpc32xx_i2c0_device;
extern struct platform_device lpc32xx_i2c1_device; extern struct platform_device lpc32xx_i2c1_device;
extern struct platform_device lpc32xx_i2c2_device; extern struct platform_device lpc32xx_i2c2_device;
extern struct platform_device lpc32xx_tsc_device; extern struct platform_device lpc32xx_tsc_device;
extern struct platform_device lpc32xx_rtc_device;
/* /*
* Other arch specific structures and functions * Other arch specific structures and functions
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment