From: Kumar Gala <galak@kernel.crashing.org>
To: Jon Loeliger <jdl@freescale.com>,
Zhang Wei-r63237 <wei.zhang@freescale.com>
Cc: "linuxppc-dev@ozlabs.org" <linuxppc-dev@ozlabs.org>
Subject: Re: [PATCH] Better timer and RTC handling for 8641HPCN.
Date: Wed, 7 Mar 2007 13:19:29 -0600 [thread overview]
Message-ID: <150E096E-0304-4E48-985C-2F4D599196FE@kernel.crashing.org> (raw)
In-Reply-To: <1173293364.23776.128.camel@ld0161-tx32>
On Mar 7, 2007, at 12:49 PM, Jon Loeliger wrote:
> 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>
Nack.
You can't call the generic set_rtc_time from the
ppc_md.set_rtc_time. Take a look at:
http://ozlabs.org/pipermail/linuxppc-dev/2007-January/030440.html
- k
> ---
> 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 ");
Why is the number of interrupts reduced by 10?
> 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
>
>
>
> _______________________________________________
> Linuxppc-dev mailing list
> Linuxppc-dev@ozlabs.org
> https://ozlabs.org/mailman/listinfo/linuxppc-dev
next prev parent reply other threads:[~2007-03-07 19:20 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-03-07 18:49 [PATCH] Better timer and RTC handling for 8641HPCN Jon Loeliger
2007-03-07 19:19 ` Kumar Gala [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=150E096E-0304-4E48-985C-2F4D599196FE@kernel.crashing.org \
--to=galak@kernel.crashing.org \
--cc=jdl@freescale.com \
--cc=linuxppc-dev@ozlabs.org \
--cc=wei.zhang@freescale.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).