index a6fe8d42ca26bfae7de2814f4d02b42faebe3233..f2ca0034bb22f3afc1abf4338c7900307bd269d4 100644 (file)
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');
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"]);
Timer.intFreq.hi = 0;
Timer.intFreq.lo = 19200000;
+
var timerParams = new Timer.Params();
timerParams.period = Clock.tickPeriod;
timerParams.periodType = Timer.PeriodType_MICROSECS;
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');