PERFORCE change 116855 for review

Marcel Moolenaar marcel at FreeBSD.org
Thu Mar 29 18:27:07 UTC 2007


http://perforce.freebsd.org/chv.cgi?CH=116855

Change 116855 by marcel at marcel_jnpr on 2007/03/29 18:26:39

	o  White-space fixes.
	o  Make the bug work-around specific to PowerPC, as it
	   applies to the Apple chipset.

Affected files ...

.. //depot/projects/uart/dev/uart/uart_dev_z8530.c#36 edit

Differences ...

==== //depot/projects/uart/dev/uart/uart_dev_z8530.c#36 (text+ko) ====

@@ -162,15 +162,16 @@
 	if (bas->rclk == 0)
 		bas->rclk = DEFAULT_RCLK;
 
+#ifdef __powerpc__
 	switch (bas->chan) {
 	case 1:
 		uart_setmreg(bas, WR_MIC, MIC_NV | MIC_CRA);
-                break;
-        case 2:
-                uart_setmreg(bas, WR_MIC, MIC_NV | MIC_CRB);
-                break;
-        }
-        uart_barrier(bas);
+		break;
+	case 2:
+		uart_setmreg(bas, WR_MIC, MIC_NV | MIC_CRB);
+		break;
+	}
+	uart_barrier(bas);
 	uart_setmreg(bas, WR_MPM, MPM_CM1 | MPM_MONO | MPM_SYNC);
 	uart_setmreg(bas, WR_RPC, RPC_RB8);
 	uart_setmreg(bas, WR_TPC, TPC_TB8 | TPC_RTS);
@@ -188,6 +189,7 @@
 	uart_getreg(bas, REG_DATA);
 	uart_setreg(bas, REG_CTRL, CR_RSTXSI);
 	uart_setreg(bas, REG_CTRL, CR_RSTERR);
+#endif
 
 	/* Assume we don't need to perform a full hardware reset. */
 	switch (bas->chan) {


More information about the p4-projects mailing list