PRSDK-2128: Added MMU configurations to enable edma instance 1 access on OMAPL138
authorPratap Reddy <x0257344@ti.com>
Wed, 5 Apr 2017 16:13:05 +0000 (21:43 +0530)
committerPratap Reddy <x0257344@ti.com>
Wed, 5 Apr 2017 16:13:05 +0000 (21:43 +0530)
examples/edma3_driver/evmOMAPL138_ARM/rtsc_config/ccs_edma3_drv_bios6_arm_omapl138_st_sample.cfg

index ce3c069cd17f8fb9577fa508426bf539f3c0e42b..3e9bb7539ddbe2b9fadb4439c1d47fe3e08c4e66 100644 (file)
@@ -7,7 +7,23 @@ var Log       = xdc.useModule ("xdc.runtime.Log");
 var Hwi = xdc.useModule('ti.sysbios.hal.Hwi');\r
 var Semaphore = xdc.useModule('ti.sysbios.knl.Semaphore');\r
 var Cache = xdc.useModule('ti.sysbios.hal.Cache');\r
-\r
+var Mmu    = xdc.useModule('ti.sysbios.family.arm.arm9.Mmu');\r
 \r
 /* USE EDMA3 Sample App */\r
 xdc.loadPackage('ti.sdo.edma3.drv.sample');\r
+\r
+// Enable the MMU\r
+Mmu.enableMMU = true;\r
+\r
+var attrs = {\r
+        type: Mmu.FirstLevelDesc_SECTION,  // SECTION descriptor\r
+        bufferable: true,                  // bufferable\r
+        cacheable: false,                  // cacheable\r
+        imp: 1,                            // implementation defined\r
+        domain: 0,                         // domain between 0-15\r
+        accPerm: 3,                        // read/write permission\r
+    };\r
+\r
+for (var i=0x01E30000; i < 0x01E37FFF; i = i + 0x00000400) {\r
+         Mmu.setFirstLevelDescMeta(i, i, attrs);\r
+    }\r