Make OpenPIC serial clock configurable
PATCH 1/1 Make OpenPIC serial clock configurable
Make OpenPIC serial clock configurable
Signed-off-by Thomas Gleixner <[email protected]>
--- arch/ppc/syslib/open_pic.c | 6 +++++- include/asm-ppc/open_pic.h | 3 +++ 2 files changed, 8 insertions(+), 1 deletion(-)
---
include/asm-ppc/open_pic.h +3 -0
@@ -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;
arch/ppc/syslib/open_pic.c +5 -1
@@ -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
Quoted 3 lines · On Thu, Dec 16, 2004 at 11:25:13AM +0100, [email protected] wrote:
Make OpenPIC serial clock configurable
Signed-off-by Thomas Gleixner <[email protected]>
I'd like to wait on this at least until the code for a board that uses this comes out.
Signature · 2 lines
Tom Rini http://gate.crashing.org/~trini/