Browse Source

Support firmware version >= 10110

Matthias Vogelgesang 8 năm trước cách đây
mục cha
commit
7fcfc24ff5
2 tập tin đã thay đổi với 12 bổ sung0 xóa
  1. 6 0
      ddrio.c
  2. 6 0
      hf-interface.h

+ 6 - 0
ddrio.c

@@ -356,6 +356,12 @@ main (int argc, char const* argv[])
     WR32_sleep (HF_REG_DEBUG_COMPLETER_RESET, 1);
     WR32_sleep (HF_REG_DEBUG_COMPLETER_RESET, 0);
 
+    /* configure interconnect */
+    WR32_sleep (HF_REG_INTERCONNECT,
+                HF_INTERCONNECT_MASTER_DMA |
+                HF_INTERCONNECT_DDR_TO_DMA |
+                HF_INTERCONNECT_DDR_FROM_64);
+
     if (opts.input != NULL) {
         if (!opts.keep) {
             if (opts.verbose)

+ 6 - 0
hf-interface.h

@@ -31,6 +31,7 @@
 #define HF_REG_VERSION                  0x9020
 #define HF_REG_CONTROL                  0x9040
 #define HF_REG_LATENCY                  0x9044
+#define HF_REG_INTERCONNECT             0x9048
 #define HF_REG_DFG_NUM_ROWS             0x9168
 #define HF_REG_DFG_NUM_FRAMES           0x9170
 #define HF_REG_DEBUG_REQUESTER_RESET    0x9344
@@ -52,4 +53,9 @@
 #define HF_CONTROL_SOURCE_DFG           0x00020000
 #define HF_CONTROL_SOURCE_DCG_NO_DDR    0x00030000
 
+#define HF_INTERCONNECT_MASTER_DMA      0x2
+#define HF_INTERCONNECT_SLAVE_DMA       0x1
+#define HF_INTERCONNECT_DDR_TO_DMA      0x60
+#define HF_INTERCONNECT_DDR_FROM_64     0x200
+
 #endif