From 39f79c287ff9770cfec61a0d5186e3089b61a744 Mon Sep 17 00:00:00 2001 From: markster Date: Mon, 24 May 2004 23:29:42 +0000 Subject: Perform DC->DC calibration after DC is up git-svn-id: http://svn.digium.com/svn/zaptel/trunk@397 5390a7c7-147a-4af0-8ec9-7488f05a26cb --- wcfxs.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'wcfxs.c') diff --git a/wcfxs.c b/wcfxs.c index 431515d..3b5ca7e 100755 --- a/wcfxs.c +++ b/wcfxs.c @@ -807,9 +807,6 @@ static int wcfxs_powerup_proslic(struct wcfxs *wc, int card, int fast) /* Set period of DC-DC converter to 1/64 khz */ wcfxs_setreg(wc, card, 92, 0xff /* was 0xff */); - /* Engage DC-DC converter */ - wcfxs_setreg(wc, card, 93, 0x99 /* was 0x19 */); - /* Wait for VBat to powerup */ origjiffies = jiffies; @@ -837,10 +834,10 @@ static int wcfxs_powerup_proslic(struct wcfxs *wc, int card, int fast) card, vbat * 376 / 1000, vbat, (int)(((jiffies - origjiffies) * 1000 / HZ))); } -#if 0 - /* Perform DC-DC calibration */ - /* wcfxs_setreg(wc, card, 93, 0x80); */ + /* Engage DC-DC converter */ + wcfxs_setreg(wc, card, 93, 0x99 /* was 0x19 */); +#if 0 origjiffies = jiffies; while(0x80 & wcfxs_getreg(wc, card, 93)) { if ((jiffies - origjiffies) > 2 * HZ) { -- cgit v1.2.3