From 541073a382a36fe4bcc3acc8c8761c796f9a6142 Mon Sep 17 00:00:00 2001 From: Steve Sakoman Date: Mon, 28 Apr 2008 16:30:33 -0700 Subject: [PATCH] OMAP3 EVM: add rtc support Add twl4030 RTC support for OMAP3 EVM Signed-off-by: Steve Sakoman Acked-by: Syed Mohammed Khasim Signed-off-by: Tony Lindgren --- arch/arm/mach-omap2/board-omap3evm.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/arch/arm/mach-omap2/board-omap3evm.c b/arch/arm/mach-omap2/board-omap3evm.c index 1c20505f060..96a3f9761c5 100644 --- a/arch/arm/mach-omap2/board-omap3evm.c +++ b/arch/arm/mach-omap2/board-omap3evm.c @@ -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) -- 2.41.1