patch-2.3.41 linux/arch/ppc/xmon/start.c

Next file: linux/arch/sh/kernel/sys_sh.c
Previous file: linux/arch/ppc/kernel/misc.S
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.40/linux/arch/ppc/xmon/start.c linux/arch/ppc/xmon/start.c
@@ -70,7 +70,7 @@
 		sccd = sccc + (0xf3013030 - 0xf3013020);
 #endif
 	}
-	else
+	else if ( _machine & _MACH_chrp )
 	{
 		/* should already be mapped by the kernel boot */
 		sccc = (volatile unsigned char *) (isa_io_base + 0x3fd);
@@ -78,6 +78,15 @@
 		TXRDY = 0x20;
 		RXRDY = 1;
 	}
+	else if ( _machine & _MACH_gemini )
+	{
+		/* should already be mapped by the kernel boot */
+		sccc = (volatile unsigned char *) 0xffeffb0d;
+		sccd = (volatile unsigned char *) 0xffeffb08;
+		TXRDY = 0x20;
+		RXRDY = 1;
+		console = 1;
+	}
 }
 
 static int scc_initialized = 0;
@@ -226,7 +235,7 @@
 void
 xmon_init_scc()
 {
-	if ( _machine == _MACH_chrp )
+	if ( _machine & (_MACH_chrp|_MACH_gemini) )
 	{
 		sccd[3] = 0x83; eieio();	/* LCR = 8N1 + DLAB */
 		sccd[0] = 3; eieio();		/* DLL = 38400 baud */
@@ -235,7 +244,7 @@
 		sccd[3] = 3; eieio();		/* LCR = 8N1 */
 		sccd[1] = 0; eieio();		/* IER = 0 */
 	}
-	else
+	else if ( _machine == _MACH_Pmac )
 	{
 		int i, x;
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)