diff options
Diffstat (limited to 'firmware/zpu')
-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; } /////////////////////////////////////////////////// |