Add Deh & Watchdog config for Vayu DSP1 and IPU1 in tests config
authorRobert Tivy <rtivy@ti.com>
Tue, 28 Apr 2015 18:05:25 +0000 (11:05 -0700)
committerRobert Tivy <rtivy@ti.com>
Thu, 30 Apr 2015 00:01:31 +0000 (17:01 -0700)
packages/ti/ipc/tests/Dsp_vayu.cfg
packages/ti/ipc/tests/Ipu1Smp.cfg

index 4f83557e6f452f03e871524b4467460024897cd6..9398ff5595db911b95696042c58a504e191ff061 100644 (file)
@@ -81,11 +81,6 @@ Power.loadSegment = "PM_DATA";
 var Idle = xdc.useModule('ti.sysbios.knl.Idle');
 Idle.addFunc('&VirtQueue_cacheWb');
 
-//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 */
-
 var HeapBuf   = xdc.useModule('ti.sysbios.heaps.HeapBuf');
 var List      = xdc.useModule('ti.sdo.utils.List');
 
@@ -130,6 +125,11 @@ if (Program.platformName.match(/^ti\.platforms\.evmDRA7XX\:dsp1/)) {
     myName = "DSP1";
     /* Configure BIOS clock source as GPTimer5 */
     timerId = 4;
+
+    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 */
 }
 else {
     myName = "DSP2";
index 2e78edaf7399a745271cc82929386201cab47fe9..919bdb502b798cea9b4e214f305c5b48bf2ea81f 100644 (file)
@@ -72,12 +72,26 @@ Idle.addCoreFunc('&VirtQueue_cacheWb', 1);
 var Hwi = xdc.useModule('ti.sysbios.family.arm.m3.Hwi');
 Hwi.enableException = true;
 
-//var Deh = xdc.useModule('ti.deh.Deh');
+var Deh = xdc.useModule('ti.deh.Deh');
+
+var WD = xdc.useModule('ti.deh.Watchdog');
+WD.timerIds.length = 2;
+WD.timerSettings.length = 2;
+WD.timerIds[0] = "GPTimer7";
+WD.timerSettings[0].intNum = 60;
+WD.timerSettings[0].eventId = -1;
+WD.timerIds[1] = "GPTimer8";
+WD.timerSettings[1].intNum = 61;
+WD.timerSettings[1].eventId = -1;
+
+var Xbar = xdc.useModule('ti.sysbios.family.shared.vayu.IntXbar');
+Xbar.connectIRQMeta(60, 38);
+Xbar.connectIRQMeta(61, 39);
 
 /* Watchdog detection functions in each core */
 /* Must be placed before pwr mgmt */
-//Idle.addCoreFunc('&ti_deh_Deh_idleBegin', 0);
-//Idle.addCoreFunc('&ti_deh_Deh_idleBegin', 1);
+Idle.addCoreFunc('&ti_deh_Deh_idleBegin', 0);
+Idle.addCoreFunc('&ti_deh_Deh_idleBegin', 1);
 
 /* Idle Power Management functions for each core */
 Idle.addCoreFunc('&IpcPower_idle', 0); /* IpcPower_idle must be at the end */