linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: tglx@linutronix.de
To: trini@kernel.crashing.org
Cc: linuxppc-embedded@ozlabs.org
Subject: [PATCH] Make OpenPIC serial clock configurable
Date: Thu, 16 Dec 2004 11:25:13 +0100	[thread overview]
Message-ID: <20041216112511.1.patchmail@tglx> (raw)

Make OpenPIC serial clock configurable

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>

---
 arch/ppc/syslib/open_pic.c |    6 +++++-
 include/asm-ppc/open_pic.h |    3 +++
 2 files changed, 8 insertions(+), 1 deletion(-)
---
Index: 2.6.10-rc3/include/asm-ppc/open_pic.h
===================================================================
--- 2.6.10-rc3/include/asm-ppc/open_pic.h	(revision 11)
+++ 2.6.10-rc3/include/asm-ppc/open_pic.h	(working copy)
@@ -35,6 +35,9 @@
 
 extern u_int OpenPIC_NumInitSenses;
 extern u_char *OpenPIC_InitSenses;
+#ifdef CONFIG_EPIC_SERIAL_MODE
+extern u_int OpenPIC_ClockRatioSerial;
+#endif
 extern void* OpenPIC_Addr;
 extern int epic_serial_mode;
 
Index: 2.6.10-rc3/arch/ppc/syslib/open_pic.c
===================================================================
--- 2.6.10-rc3/arch/ppc/syslib/open_pic.c	(revision 11)
+++ 2.6.10-rc3/arch/ppc/syslib/open_pic.c	(working copy)
@@ -42,6 +42,10 @@
  */
 u_int OpenPIC_NumInitSenses __initdata = 0;
 u_char *OpenPIC_InitSenses __initdata = NULL;
+#ifdef CONFIG_EPIC_SERIAL_MODE
+/* Slowest value until we know better */
+u_int OpenPIC_ClockRatioSerial __initdata = 7;
+#endif
 extern int use_of_interrupt_tree;
 
 static u_int NumProcessors;
@@ -418,7 +422,7 @@
 	openpic_disable_8259_pass_through();
 #ifdef CONFIG_EPIC_SERIAL_MODE
 	if (epic_serial_mode) {
-		openpic_eicr_set_clk(7);	/* Slowest value until we know better */
+		openpic_eicr_set_clk(OpenPIC_ClockRatioSerial);
 		openpic_enable_sie();
 	}
 #endif

             reply	other threads:[~2004-12-16 10:25 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-12-16 10:25 tglx [this message]
2004-12-16 14:57 ` [PATCH] Make OpenPIC serial clock configurable Tom Rini

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=20041216112511.1.patchmail@tglx \
    --to=tglx@linutronix.de \
    --cc=linuxppc-embedded@ozlabs.org \
    --cc=trini@kernel.crashing.org \
    /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).