twl4030-rtc support on 3430
Subsystems (4)
PATCH 1/1 twl4030-rtc support on 3430
Hi,
This patch supports TWL4030 RTC on 3430 and adds periodic interrupts functionality through framework. Also, some code cleanup.
Regards,
Girish
--- arch/arm/configs/omap_3430sdp_defconfig | 4 +- arch/arm/mach-omap2/board-3430sdp.c | 62 ++++++++++++++++++++++++++++++++ drivers/rtc/rtc-twl4030.c | 46 +++++++++++++++++++++-- 3 files changed, 106 insertions(+), 6 deletions(-)
arch/arm/configs/omap_3430sdp_defconfig +3 -1
@@ -698,7 +698,9 @@ # CONFIG_MMC_OMAP=y CONFIG_RTC_LIB=y -# CONFIG_RTC_CLASS is not set +CONFIG_RTC_CLASS=y +CONFIG_RTC_DRV_TWL4030=y +CONFIG_RTC_INTF_DEV=y # # DMA Engine support
arch/arm/mach-omap2/board-3430sdp.c +62 -0
89 lines not on this page · raw message
drivers/rtc/rtc-twl4030.c +41 -5
81 lines not on this page · raw message
Hi Girish,
Quoted 3 lines · Girish
Hi,
This patch supports TWL4030 RTC on 3430 and adds periodic interrupts functionality through framework. Also, some code cleanup.
could you split your patch into two parts: 1) rtc-twl4030 update and 2) OMAP3430-specific code.
Quoted 10 lines
Regards,
Girish--- arch/arm/configs/omap_3430sdp_defconfig | 4 +- arch/arm/mach-omap2/board-3430sdp.c | 62 ++++++++++++++++++++++++++++++++ drivers/rtc/rtc-twl4030.c | 46 +++++++++++++++++++++-- 3 files changed, 106 insertions(+), 6 deletions(-)
[snip]
Quoted 11 lines
static inline void
__initsdp3430_init_smc91x(void)
Index:linux-omap-dec10/drivers/rtc/rtc-twl4030.c
===================================================================drivers/rtc/rtc-twl4030.c +0
-0@@ -353,6 +353,31 @@return ret; }
drivers/rtc/rtc-twl4030.c line 365
Quoted 10 lines
drivers/rtc/rtc-twl4030.c +10
-0+/* +* We will just handle setting the frequency and make use the framework for +* reading the periodic interupts. +* +* @freq: Current periodic IRQ freq: +* bit 0: every second +* bit 1: every minute +* bit 2: every hour +* bit 3: every day +*/
Note, this breaks an assumption that freq is measured in Hz. For example, RTC Driver Test/Example Program won't pass the "test_PIE" part.
Regards,
Dmitry
Quoted 10 lines
-----Original Message-----
From: Dmitry Krivoschekov [mailto:[email protected]]
Sent: Monday, December 10, 2007 9:54 PMQuoted 1 line
This patch supports TWL4030 RTC on 3430 and adds periodic
interrupts functionality through framework. Also, some code cleanup.
Quoted 1 line
Quoted 7 lines
Quoted 3 lines
+ * bit 2: every hour
+ * bit 3: every day
+ */Note, this breaks an assumption that freq is measured in Hz. For example, RTC Driver Test/Example Program won't pass the "
test_PIE" part.
Indeed the freq is measured in Hz, may be I'll remove the comments to avoid confusion.
Quoted 7 lines
Regards,
Dmitry