diff options
author | Josh Blum <josh@joshknows.com> | 2011-07-28 10:52:26 -0700 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2011-07-28 10:52:26 -0700 |
commit | 8b4a7bc8aecfe804de779f3e27fff41082f0446a (patch) | |
tree | 1f90798755dbdc8e2ffb9224cc2685958d64ca94 /firmware | |
parent | 10ab62e55ddaf2fc622d9d4ce7b1b9738e34e22c (diff) | |
download | uhd-8b4a7bc8aecfe804de779f3e27fff41082f0446a.tar.gz uhd-8b4a7bc8aecfe804de779f3e27fff41082f0446a.tar.bz2 uhd-8b4a7bc8aecfe804de779f3e27fff41082f0446a.zip |
usrp2: remove hw config readback, not needed
Diffstat (limited to 'firmware')
-rw-r--r-- | firmware/zpu/lib/memory_map.h | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/firmware/zpu/lib/memory_map.h b/firmware/zpu/lib/memory_map.h index 8d5de794e..75727bb23 100644 --- a/firmware/zpu/lib/memory_map.h +++ b/firmware/zpu/lib/memory_map.h @@ -126,7 +126,7 @@ typedef struct { typedef struct { volatile uint32_t _padding[8]; volatile uint32_t status; - volatile uint32_t hw_config; // see below + volatile uint32_t _unused; volatile uint32_t time64_secs_rb; volatile uint32_t time64_ticks_rb; volatile uint32_t compat_num; @@ -135,18 +135,13 @@ typedef struct { #define router_status ((router_status_t *) READBACK_BASE) -// The hw_config register - -#define HWC_SIMULATION 0x80000000 -#define HWC_WB_CLK_DIV_MASK 0x0000000f - /*! * \brief return non-zero if we're running under the simulator */ inline static int hwconfig_simulation_p(void) { - return router_status->hw_config & HWC_SIMULATION; + return 0; } /*! @@ -156,7 +151,7 @@ hwconfig_simulation_p(void) inline static int hwconfig_wishbone_divisor(void) { - return router_status->hw_config & HWC_WB_CLK_DIV_MASK; + return 2; } /////////////////////////////////////////////////// |