aboutsummaryrefslogtreecommitdiffstats
path: root/firmware/microblaze/lib/u2_init.c
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2010-04-13 16:08:14 -0700
committerJosh Blum <josh@joshknows.com>2010-04-13 16:08:14 -0700
commit841400bb4e72375b439f04f0bd855e64b9f83f00 (patch)
treeb92e420c42539df522153f8d8f2b6a41b6ebd7af /firmware/microblaze/lib/u2_init.c
parent75dd8f674004d015425f194f8f4714b08f9ec018 (diff)
downloaduhd-841400bb4e72375b439f04f0bd855e64b9f83f00.tar.gz
uhd-841400bb4e72375b439f04f0bd855e64b9f83f00.tar.bz2
uhd-841400bb4e72375b439f04f0bd855e64b9f83f00.zip
Moved ad9777 control 100% on to the host
Diffstat (limited to 'firmware/microblaze/lib/u2_init.c')
-rw-r--r--firmware/microblaze/lib/u2_init.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/firmware/microblaze/lib/u2_init.c b/firmware/microblaze/lib/u2_init.c
index 2e2e6a0fb..c56468c08 100644
--- a/firmware/microblaze/lib/u2_init.c
+++ b/firmware/microblaze/lib/u2_init.c
@@ -26,7 +26,6 @@
#include "hal_uart.h"
#include "i2c.h"
#include "mdelay.h"
-#include "ad9777.h"
#include "clocks.h"
#include "db.h"
#include "usrp2_i2c_addr.h"
@@ -75,21 +74,6 @@ u2_init(void)
// Enable ADCs
output_regs->adc_ctrl = ADC_CTRL_ON;
-
- // Set up AD9777 DAC
- ad9777_write_reg(0, R0_1R);
- ad9777_write_reg(1, R1_INTERP_4X | R1_REAL_MIX);
- ad9777_write_reg(2, 0);
- ad9777_write_reg(3, R3_PLL_DIV_1);
- ad9777_write_reg(4, R4_PLL_ON | R4_CP_AUTO);
- ad9777_write_reg(5, R5_I_FINE_GAIN(0));
- ad9777_write_reg(6, R6_I_COARSE_GAIN(0xf));
- ad9777_write_reg(7, 0); // I dac offset
- ad9777_write_reg(8, 0);
- ad9777_write_reg(9, R9_Q_FINE_GAIN(0));
- ad9777_write_reg(10, R10_Q_COARSE_GAIN(0xf));
- ad9777_write_reg(11, 0); // Q dac offset
- ad9777_write_reg(12, 0);
// Initial values for tx and rx mux registers
dsp_tx_regs->tx_mux = 0x10;