aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRyan <rmarlow@conic-labs.com>2016-08-22 14:35:03 -0400
committerRyan <rmarlow@conic-labs.com>2016-08-22 14:35:03 -0400
commit8cfc8edbeaa43bf4001ce6d67f317abbe3140dc1 (patch)
tree78359f45b6bed5206aae014427f81798e2108e24
parenteb6ceee43304b0775526889efd0b3ebb9889dcc5 (diff)
downloaduhd-8cfc8edbeaa43bf4001ce6d67f317abbe3140dc1.tar.gz
uhd-8cfc8edbeaa43bf4001ce6d67f317abbe3140dc1.tar.bz2
uhd-8cfc8edbeaa43bf4001ce6d67f317abbe3140dc1.zip
changed clk constant to match new zpu clk changes
-rw-r--r--firmware/usrp3/x300/x300_defs.h2
-rw-r--r--host/lib/usrp/x300/x300_impl.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/firmware/usrp3/x300/x300_defs.h b/firmware/usrp3/x300/x300_defs.h
index efd44b49d..e9e9f34fa 100644
--- a/firmware/usrp3/x300/x300_defs.h
+++ b/firmware/usrp3/x300/x300_defs.h
@@ -4,7 +4,7 @@
#ifndef INCLUDED_X300_DEFS_H
#define INCLUDED_X300_DEFS_H
-#define CPU_CLOCK 166666667
+#define CPU_CLOCK 83333333
#define MAIN_RAM_BASE 0x0000
#define PKT_RAM0_BASE 0x8000
#define SFP0_MAC_BASE 0xC000
diff --git a/host/lib/usrp/x300/x300_impl.cpp b/host/lib/usrp/x300/x300_impl.cpp
index 6ebe30739..5f47c35ed 100644
--- a/host/lib/usrp/x300/x300_impl.cpp
+++ b/host/lib/usrp/x300/x300_impl.cpp
@@ -694,7 +694,7 @@ void x300_impl::setup_mb(const size_t mb_i, const uhd::device_addr_t &dev_addr)
mb.zpu_spi = spi_core_3000::make(mb.zpu_ctrl, SR_ADDR(SET0_BASE, ZPU_SR_SPI),
SR_ADDR(SET0_BASE, ZPU_RB_SPI));
mb.zpu_i2c = i2c_core_100_wb32::make(mb.zpu_ctrl, I2C1_BASE);
- mb.zpu_i2c->set_clock_rate(X300_BUS_CLOCK_RATE);
+ mb.zpu_i2c->set_clock_rate(X300_BUS_CLOCK_RATE/2);
////////////////////////////////////////////////////////////////////
// print network routes mapping