summaryrefslogtreecommitdiff
path: root/wcfxs.c
diff options
context:
space:
mode:
authormarkster <markster@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2004-05-24 23:29:42 +0000
committermarkster <markster@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2004-05-24 23:29:42 +0000
commit39f79c287ff9770cfec61a0d5186e3089b61a744 (patch)
tree053295eb9f782cdf2700a3fd31710e0ac7777772 /wcfxs.c
parent44164783d8ee020f381ee14316a8c435a6c71a7d (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-xwcfxs.c9
1 files changed, 3 insertions, 6 deletions
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) {