]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - ipc/ipcdev.git/blobdiff - packages/ti/ipc/tests/Dsp_vayu.cfg
Add power management support to DRA7xx DSP (part 2)
[ipc/ipcdev.git] / packages / ti / ipc / tests / Dsp_vayu.cfg
index a6fe8d42ca26bfae7de2814f4d02b42faebe3233..f2ca0034bb22f3afc1abf4338c7900307bd269d4 100644 (file)
@@ -71,11 +71,11 @@ var Resource = xdc.useModule('ti.ipc.remoteproc.Resource');
 Resource.loadSegment = "EXT_CODE";
 
 /* Modules used in Power Management */
-xdc.loadPackage('ti.pm');
+/*xdc.loadPackage('ti.pm');
 
 var Power = xdc.useModule('ti.sysbios.family.c66.vayu.Power');
 Power.loadSegment = "PM_DATA";
-
+*/
 
 /* Idle function that periodically flushes the unicache */
 var Idle = xdc.useModule('ti.sysbios.knl.Idle');
@@ -129,12 +129,17 @@ if (Program.platformName.match(/^ti\.platforms\.evmDRA7XX\:dsp1/)) {
     var Deh = xdc.useModule('ti.deh.Deh');
 
     Idle.addFunc('&ti_deh_Deh_idleBegin'); /* Must be placed before pwr mgmt */
-    //TBD Idle.addFunc('&IpcPower_idle'); /* IpcPower_idle must be at the end */
+
+    /* Enable if power management is desired */
+    /* Idle.addFunc('&IpcPower_idle'); */ /* IpcPower_idle must be at the end */
 }
 else {
     myName = "DSP2";
     /* Configure BIOS clock source as GPTimer6 */
     timerId = 5;
+
+    /* Enable if power management is desired */
+    /* Idle.addFunc('&IpcPower_idle'); */ /* IpcPower_idle must be at the end */
 }
 MultiProc.setConfig(myName, ["HOST", "IPU2", "IPU1", "DSP2", "DSP1"]);
 
@@ -153,6 +158,7 @@ Timer.checkFrequency = false;
 Timer.intFreq.hi = 0;
 Timer.intFreq.lo = 19200000;
 
+
 var timerParams = new Timer.Params();
 timerParams.period = Clock.tickPeriod;
 timerParams.periodType = Timer.PeriodType_MICROSECS;
@@ -167,6 +173,16 @@ Timer.create(Clock.timerId, Clock.doTick, timerParams);
 Program.sectMap[".tracebuf"] = "TRACE_BUF";
 Program.sectMap[".errorbuf"] = "EXC_DATA";
 
+/*
+ * Workaround for silicon bug - enable if power management is desired
+ *
+ * IpcPower_callIdle must be placed in L2SRAM and not external memory
+ * to avoid CPU hang when going into idle
+ */
+/* Resource.customTable = true;
+Program.sectMap[".text:IpcPower_callIdle"] = "L2SRAM";
+*/
+
 /* Version module */
 /* ???
 xdc.useModule('ti.utils.Version');