Mercury Source Modifications

From Wiki
Jump to navigationJump to search

In addition to the changes in the kernel sources to support Mercury, the following changes must be made:

  • dvsdk_2_00_00_22/dmai_1_20_00_06/packages/ti/sdo/dmai/linux/Cpu.c
--- ./dmai_1_20_00_06/packages/ti/sdo/dmai/linux/Cpu.c.org  2009-09-17 21:37:36.000000000 -0400
+++ ./dmai_1_20_00_06/packages/ti/sdo/dmai/linux/Cpu.c  2009-09-17 21:35:48.000000000 -0400
@@ -91,7 +91,10 @@
         return Dmai_EFAIL;
     }
 
-    if (strcmp(valBuf, "DaVinci EVM") == 0) {
+    if (strcmp(valBuf, "DaVinci Mercury") == 0) {
+        *device = Cpu_Device_DM6446;
+    }
+    else if (strcmp(valBuf, "DaVinci EVM") == 0) {
         *device = Cpu_Device_DM6446;
     }
     else if (strcmp(valBuf, "DaVinci DM355 EVM") == 0) {