diff mbox

[3,of,3] ARM: imx: add rtc support to mx35_3ds

Message ID 656646260.702972.1341412588384.JavaMail.root@advansee.com (mailing list archive)
State New, archived
Headers show

Commit Message

Benoît Thébaudeau July 4, 2012, 2:36 p.m. UTC
Now that RTC support has been enabled for i.MX35, add RTC to the mx35_3ds board.

Cc: Sascha Hauer <kernel@pengutronix.de>
Cc: <linux-arm-kernel@lists.infradead.org>
Signed-off-by: Benoît Thébaudeau <benoit.thebaudeau@advansee.com>
---
 .../arch/arm/mach-imx/Kconfig                      |    1 +
 .../arch/arm/mach-imx/mach-mx35_3ds.c              |    1 +
 2 files changed, 2 insertions(+)

Comments

Benoît Thébaudeau July 5, 2012, 11:12 a.m. UTC | #1
Hi Sascha,

On Wed, Jul 4, 2012 at 04:36:28PM +0200, Benoît Thébaudeau wrote:
> Now that RTC support has been enabled for i.MX35, add RTC to the
> mx35_3ds board.

I know that there is already the MC13XXXX providing the RTC feature on this
board, but:
 - it's possible to have several RTCs,
 - the purpose of the 3ds boards is to demonstrate the features of the i.MX
   platform, so it should do so with the mxc_rtc,
 - it can serve as a reminder to add mxc_rtc for i.MX35 when it will switch to
   device tree.

Regards,
Benoît
diff mbox

Patch

diff --git linux-next-HEAD-f9637ba.orig/arch/arm/mach-imx/Kconfig linux-next-HEAD-f9637ba/arch/arm/mach-imx/Kconfig
index eff4db5..4baf5ab 100644
--- linux-next-HEAD-f9637ba.orig/arch/arm/mach-imx/Kconfig
+++ linux-next-HEAD-f9637ba/arch/arm/mach-imx/Kconfig
@@ -589,6 +589,7 @@  config MACH_MX35_3DS
 	select IMX_HAVE_PLATFORM_IPU_CORE
 	select IMX_HAVE_PLATFORM_MXC_EHCI
 	select IMX_HAVE_PLATFORM_MXC_NAND
+	select IMX_HAVE_PLATFORM_MXC_RTC
 	select IMX_HAVE_PLATFORM_SDHCI_ESDHC_IMX
 	help
 	  Include support for MX35PDK platform. This includes specific
diff --git linux-next-HEAD-f9637ba.orig/arch/arm/mach-imx/mach-mx35_3ds.c linux-next-HEAD-f9637ba/arch/arm/mach-imx/mach-mx35_3ds.c
index 11afe00..25db220 100644
--- linux-next-HEAD-f9637ba.orig/arch/arm/mach-imx/mach-mx35_3ds.c
+++ linux-next-HEAD-f9637ba/arch/arm/mach-imx/mach-mx35_3ds.c
@@ -562,6 +562,7 @@  static void __init mx35_3ds_init(void)
 
 	imx35_add_fec(NULL);
 	imx35_add_imx2_wdt();
+	imx35_add_mxc_rtc();
 	platform_add_devices(devices, ARRAY_SIZE(devices));
 
 	imx35_add_imx_uart0(&uart_pdata);