diff options
author | markster <markster@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2004-05-24 23:29:42 +0000 |
---|---|---|
committer | markster <markster@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2004-05-24 23:29:42 +0000 |
commit | 39f79c287ff9770cfec61a0d5186e3089b61a744 (patch) | |
tree | 053295eb9f782cdf2700a3fd31710e0ac7777772 /wcfxs.c | |
parent | 44164783d8ee020f381ee14316a8c435a6c71a7d (diff) |
Perform DC->DC calibration after DC is up
git-svn-id: http://svn.digium.com/svn/zaptel/trunk@397 5390a7c7-147a-4af0-8ec9-7488f05a26cb
Diffstat (limited to 'wcfxs.c')
-rwxr-xr-x | wcfxs.c | 9 |
1 files changed, 3 insertions, 6 deletions
@@ -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) { |