]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - keystone-rtos/mcsdk-tools.git/blobdiff - post/include/target.h
MCSDK 3.0: add DDR test and emac loopback test support for evmk2h
[keystone-rtos/mcsdk-tools.git] / post / include / target.h
old mode 100644 (file)
new mode 100755 (executable)
index 7ec9543..5723a46
@@ -232,11 +232,24 @@ int32_t chipPllExternalMult (uint16_t pllNum, uint16_t mult);
 #define targetGetSwitchMaxPktSize() 9000
 
 #define DEVICE_QM
+#if (defined(DEVICE_K2K) || defined(DEVICE_K2H))
+#define DEVICE_QM_MANAGER_BASE          0x02A02000
+#define DEVICE_QM_DESC_SETUP_BASE       0x02A03000
+#define DEVICE_QM_MANAGER_QUEUES_BASE   0x02A80000
+#define DEVICE_QM_MANAGER_Q_PROXY_BASE  0x02AC0000
+#define DEVICE_QM_QUEUE_STATUS_BASE            0x02A40000
+
+/* QM base address register */
+#define DEVICE_QM1_QUEUE_MANAGEMENT_REGS(x)  (0x23A00000 + 0x80000 + 0x10000*(x))
+#define DEVICE_QM2_QUEUE_MANAGEMENT_REGS(x)  (0x23A00000 + 0xA0000 + 0x10000*(x))
+#else
 #define DEVICE_QM_MANAGER_BASE          0x02a68000
 #define DEVICE_QM_DESC_SETUP_BASE       0x02a6a000
 #define DEVICE_QM_MANAGER_QUEUES_BASE   0x02a20000
 #define DEVICE_QM_MANAGER_Q_PROXY_BASE  0x02a40000
 #define DEVICE_QM_QUEUE_STATUS_BASE            0x02a00000
+#endif
+
 #define DEVICE_QM_NUM_LINKRAMS          2
 #define DEVICE_QM_NUM_MEMREGIONS        20
 void    *targetGetQmConfig(void);