]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
OMAP3 EVM: add rtc support
authorSteve Sakoman <steve@sakoman.com>
Mon, 28 Apr 2008 23:30:33 +0000 (16:30 -0700)
committerTony Lindgren <tony@atomide.com>
Fri, 2 May 2008 23:08:29 +0000 (16:08 -0700)
Add twl4030 RTC support for OMAP3 EVM

Signed-off-by: Steve Sakoman <steve@sakoman.com>
Acked-by: Syed Mohammed Khasim <khasim@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap2/board-omap3evm.c

index 1c20505f0605fada52cf7be2db717883cb1b7658..96a3f9761c5c179886e36265bc13c82b9372ef33 100644 (file)
@@ -60,6 +60,11 @@ static struct omap_lcd_config omap3_evm_lcd_config __initdata = {
        .ctrl_name      = "internal",
 };
 
+static struct platform_device omap3_evm_twl4030rtc_device = {
+       .name           = "twl4030_rtc",
+       .id             = -1,
+};
+
 static void __init omap3_evm_init_irq(void)
 {
        omap2_init_common_hw();
@@ -75,6 +80,9 @@ static struct omap_board_config_kernel omap3_evm_config[] __initdata = {
 
 static struct platform_device *omap3_evm_devices[] __initdata = {
        &omap3_evm_lcd_device,
+#ifdef CONFIG_RTC_DRV_TWL4030
+       &omap3_evm_twl4030rtc_device,
+#endif
 };
 
 static void __init omap3_evm_init(void)