From 8b4a7bc8aecfe804de779f3e27fff41082f0446a Mon Sep 17 00:00:00 2001 From: Josh Blum Date: Thu, 28 Jul 2011 10:52:26 -0700 Subject: usrp2: remove hw config readback, not needed --- firmware/zpu/lib/memory_map.h | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'firmware/zpu') 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; } /////////////////////////////////////////////////// -- cgit v1.2.3