Skip to content

Commit

Permalink
Remove duplicate writes during PLL configuration.
Browse files Browse the repository at this point in the history
  • Loading branch information
atsampson committed Jun 9, 2019
1 parent 1796b50 commit bfe432f
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions cxadc.c
Original file line number Diff line number Diff line change
Expand Up @@ -297,12 +297,6 @@ static int cxadc_char_open(struct inode *inode, struct file *file)
/* control gain also bit 16 */
cx_write(MO_AGC_GAIN_ADJ4, (1<<23)|(0<<22)|(0<<21)|(level<<16)|(0xff<<8)|(0x0<<0));

/* set higher clock rate */
if (tenxfsc)
cx_write(MO_SCONV_REG, 131072*4/5); /* set SRC to 1.25x/10fsc */
else
cx_write(MO_SCONV_REG, 131072); /* set SRC to 8xfsc */

if (tenxfsc) {
cx_write(MO_SCONV_REG, 131072*4/5); /* set SRC to 1.25x/10fsc */
cx_write(MO_PLL_REG, 0x01400000); /* set PLL to 1.25x/10fsc */
Expand Down Expand Up @@ -632,8 +626,6 @@ static int cxadc_probe(struct pci_dev *pci_dev,
}
cx_info("char dev register ok\n");

cx_write(MO_PLL_REG, 0x01000000); /* set PLL to 8xfsc */

if (tenxfsc) {
cx_write(MO_SCONV_REG, 131072*4/5); /* set SRC to 1.25x/10fsc */
cx_write(MO_PLL_REG, 0x01400000); /* set PLL to 1.25x/10fsc */
Expand Down

0 comments on commit bfe432f

Please sign in to comment.