[svn-commits] mspiceland: branch linux/mspiceland/dahdi-qfalc31 r7053 - /linux/team/mspicel...

SVN commits to the Digium repositories svn-commits at lists.digium.com
Fri Aug 21 09:50:17 CDT 2009


Author: mspiceland
Date: Fri Aug 21 09:50:14 2009
New Revision: 7053

URL: http://svn.asterisk.org/svn-view/dahdi?view=rev&rev=7053
Log:
qfalc v3.1 now has integrated xmit resistors.  The external resistors connected
to XL1 and XL2 pins are now replaced with 0ohm resistors.  Now we program
PC6.TSRE to switch between 2ohms for T1 and 7.5ohms for E1 mode.

Modified:
    linux/team/mspiceland/dahdi-qfalc31/drivers/dahdi/wct4xxp/base.c

Modified: linux/team/mspiceland/dahdi-qfalc31/drivers/dahdi/wct4xxp/base.c
URL: http://svn.asterisk.org/svn-view/dahdi/linux/team/mspiceland/dahdi-qfalc31/drivers/dahdi/wct4xxp/base.c?view=diff&rev=7053&r1=7052&r2=7053
==============================================================================
--- linux/team/mspiceland/dahdi-qfalc31/drivers/dahdi/wct4xxp/base.c (original)
+++ linux/team/mspiceland/dahdi-qfalc31/drivers/dahdi/wct4xxp/base.c Fri Aug 21 09:50:14 2009
@@ -1950,6 +1950,12 @@
 	__t4_framer_out(wc, unit, 0x02, 0x50);	/* CMDR: Reset the receiver and transmitter line interface */
 	__t4_framer_out(wc, unit, 0x02, 0x00);	/* CMDR: Reset the receiver and transmitter line interface */
 
+	if (wc->falc31) {
+		if (debug)
+			printk(KERN_INFO "card %d span %d: setting Rtx to 0ohm for T1\n", wc->num, unit);
+		__t4_framer_out(wc, unit, 0x86, 0x00);	/* PC6: set Rtx to 0ohm for T1 */
+	}
+
 	__t4_framer_out(wc, unit, 0x3a, lim2);	/* LIM2: 50% peak amplitude is a "1" */
 	__t4_framer_out(wc, unit, 0x38, 0x0a);	/* PCD: LOS after 176 consecutive "zeros" */
 	__t4_framer_out(wc, unit, 0x39, 0x15);	/* PCR: 22 "ones" clear LOS */
@@ -2030,6 +2036,12 @@
 
 	__t4_framer_out(wc, unit, 0x02, 0x50);	/* CMDR: Reset the receiver and transmitter line interface */
 	__t4_framer_out(wc, unit, 0x02, 0x00);	/* CMDR: Reset the receiver and transmitter line interface */
+
+	if (wc->falc31) {
+		if (debug)
+			printk(KERN_INFO "setting Rtx to 7.5ohm for E1\n");
+		__t4_framer_out(wc, unit, 0x86, 0x40);	/* PC6: turn on 7.5ohm Rtx for E1 */
+	}
 
 	/* Condition receive line interface for E1 after reset */
 	__t4_framer_out(wc, unit, 0xbb, 0x17);




More information about the svn-commits mailing list