linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Better timer and RTC handling for 8641HPCN.
@ 2007-03-07 18:49 Jon Loeliger
  2007-03-07 19:19 ` Kumar Gala
  0 siblings, 1 reply; 25+ messages in thread
From: Jon Loeliger @ 2007-03-07 18:49 UTC (permalink / raw)
  To: linuxppc-dev@ozlabs.org

From: Zhang Wei <wei.zhang@freescale.com>

Give more IRQ numbers for MPIC IPIs and TIMERs use.
Added generic RTC support for MPC8641HPCN.

Signed-off-by: Zhang Wei <wei.zhang@freescale.com>
Signed-off-by: Jon Loeliger <jdl@freescale.com>
---
 arch/powerpc/platforms/86xx/mpc86xx_hpcn.c |   10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/arch/powerpc/platforms/86xx/mpc86xx_hpcn.c b/arch/powerpc/platforms/86xx/mpc86xx_hpcn.c
index f42f801..5ef6d61 100644
--- a/arch/powerpc/platforms/86xx/mpc86xx_hpcn.c
+++ b/arch/powerpc/platforms/86xx/mpc86xx_hpcn.c
@@ -28,7 +28,7 @@
 #include <mm/mmu_decl.h>
 #include <asm/udbg.h>
 #include <asm/i8259.h>
-
+#include <asm-generic/rtc.h>
 #include <asm/mpic.h>
 
 #include <sysdev/fsl_soc.h>
@@ -81,7 +81,7 @@ mpc86xx_hpcn_init_irq(void)
 	/* Alloc mpic structure and per isu has 16 INT entries. */
 	mpic1 = mpic_alloc(np, res.start,
 			MPIC_PRIMARY | MPIC_WANTS_RESET | MPIC_BIG_ENDIAN,
-			16, NR_IRQS - 4,
+			16, NR_IRQS - 10,
 			" MPIC     ");
 	BUG_ON(mpic1 == NULL);
 
@@ -452,4 +452,10 @@ define_machine(mpc86xx_hpcn) {
 	.time_init		= mpc86xx_time_init,
 	.calibrate_decr		= generic_calibrate_decr,
 	.progress		= udbg_progress,
+
+#ifdef CONFIG_GEN_RTC
+	/* RTC interface, using functions in include/asm-generic/rtc.h */
+	.get_rtc_time		= get_rtc_time,
+	.set_rtc_time		= set_rtc_time,
+#endif
 };
-- 
1.5.0.1.213.g509b

^ permalink raw reply related	[flat|nested] 25+ messages in thread

end of thread, other threads:[~2007-03-12  3:37 UTC | newest]

Thread overview: 25+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-03-07 18:49 [PATCH] Better timer and RTC handling for 8641HPCN Jon Loeliger
2007-03-07 19:19 ` Kumar Gala
2007-03-07 19:34   ` Scott Wood
2007-03-07 19:48     ` Kumar Gala
2007-03-08  1:56       ` Zhang Wei-r63237
2007-03-08  2:47         ` Kumar Gala
2007-03-08  5:38           ` Zhang Wei-r63237
2007-03-08  5:57             ` Kumar Gala
2007-03-08 19:10               ` Jon Loeliger
2007-03-08 19:19                 ` Haiying Wang
2007-03-08 19:24                   ` Kumar Gala
2007-03-09  1:51                     ` Zhang Wei-r63237
2007-03-09  3:48                       ` Kumar Gala
2007-03-09  4:23                         ` Zhang Wei-r63237
2007-03-09  4:52                           ` Kumar Gala
2007-03-09  5:24                             ` Zhang Wei-r63237
2007-03-09 16:12                               ` IRQ numbering (was: Better timer and RTC handling for 8641HPCN.) Kumar Gala
2007-03-12  2:37                                 ` Zhang Wei-r63237
2007-03-12  3:13                                   ` Kumar Gala
2007-03-12  3:37                                   ` Paul Mackerras
2007-03-08 20:34               ` [PATCH] Better timer and RTC handling for 8641HPCN Kim Phillips
2007-03-08  2:09   ` Zhang Wei-r63237
2007-03-08  3:04     ` Kumar Gala
2007-03-08  8:17       ` Zhang Wei-r63237
2007-03-08  8:28         ` Kumar Gala

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).