3f861ebf9dec9a15462e14ba5b0a68d9e4e4a518
[openembedded.git] /
1 From 3f8441b4e1fc297caf5cf712c1bc3f506ec28065 Mon Sep 17 00:00:00 2001
2 From: Koen Kooi <koen@openembedded.org>
3 Date: Thu, 8 May 2008 18:30:41 +0200
4 Subject: [PATCH] This patch adds RTC support to the omap3 based beagleboard
5
6 Signed-off-by: Koen Kooi <koen@openembedded.org>
7 ---
8  arch/arm/mach-omap2/board-omap3beagle.c |   12 ++++++++++++
9  1 files changed, 12 insertions(+), 0 deletions(-)
10
11 diff --git a/arch/arm/mach-omap2/board-omap3beagle.c b/arch/arm/mach-omap2/board-omap3beagle.c
12 index 626f004..0c0cbfc 100644
13 --- a/arch/arm/mach-omap2/board-omap3beagle.c
14 +++ b/arch/arm/mach-omap2/board-omap3beagle.c
15 @@ -58,13 +58,25 @@ static struct omap_mmc_config omap3beagle_mmc_config __initdata = {
16         },
17  };
18  
19 +static struct platform_device omap3_beagle_twl4030rtc_device = {
20 +       .name           = "twl4030_rtc",
21 +       .id             = -1,
22 +};
23 +
24  static struct omap_board_config_kernel omap3_beagle_config[] __initdata = {
25         { OMAP_TAG_UART,        &omap3_beagle_uart_config },
26         { OMAP_TAG_MMC,         &omap3beagle_mmc_config },
27  };
28  
29 +static struct platform_device *omap3_beagle_devices[] __initdata = {
30 +#ifdef CONFIG_RTC_DRV_TWL4030
31 +       &omap3_beagle_twl4030rtc_device,
32 +#endif
33 +};
34 +
35  static void __init omap3_beagle_init(void)
36  {
37 +       platform_add_devices(omap3_beagle_devices, ARRAY_SIZE(omap3_beagle_devices));
38         omap_board_config = omap3_beagle_config;
39         omap_board_config_size = ARRAY_SIZE(omap3_beagle_config);
40         omap_serial_init();
41 -- 
42 1.5.4.3
43