Date: Thu, 29 Mar 2007 18:27:06 GMT From: Marcel Moolenaar <marcel@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 116855 for review Message-ID: <200703291827.l2TIR6FD000849@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=116855 Change 116855 by marcel@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) {
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200703291827.l2TIR6FD000849>