]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - ipc/ipcdev.git/blobdiff - packages/ti/ipc/family/tci6638/Interrupt.xs
SDOCM00115347 Keystone 2 Interrupt module doesn't validate HOST
[ipc/ipcdev.git] / packages / ti / ipc / family / tci6638 / Interrupt.xs
index c8da505cd1c7b16ea3ea92ce942b21b099177248..d2ddc169a2959d4f15a73ea345990d7cd0ff7622 100644 (file)
@@ -75,6 +75,16 @@ var deviceSettings = {
         INTERDSPINT:    105,
         DSPINT:         5
     },
+    'TMS320C66AK2H12' : {
+        IPCGR0:         0x02620240,
+        IPCAR0:         0x02620280,
+        IPCGRH:         0x02620260,
+        IPCARH:         0x026202A0,
+        KICK0:          0x02620038,
+        KICK1:          0x0262003C,
+        INTERDSPINT:    105,
+        DSPINT:         5,
+    },
     'TMS320C66AK2E05' : {
         IPCGR0:         0x02620240,
         IPCAR0:         0x02620280,
@@ -113,15 +123,29 @@ function module$meta$init()
     this.INTERDSPINT    = settings.INTERDSPINT;
     this.DSPINT         = settings.DSPINT;
 }
+
 /*
  *  ======== module$use ========
  */
 function module$use()
 {
-    Interrupt     = this;
+    Interrupt = this;
+
+    Hwi = xdc.useModule("ti.sysbios.family.c64p.Hwi");
+    MultiProc = xdc.useModule("ti.sdo.utils.MultiProc");
+
+}
 
-    Hwi         = xdc.useModule("ti.sysbios.family.c64p.Hwi");
-    MultiProc   = xdc.useModule("ti.sdo.utils.MultiProc");
+/*
+ *  ======== module$validate ========
+ */
+function module$validate()
+{
+    /* verify the host is first in the multiproc name list */
+    if (MultiProc.getIdMeta("HOST") != 0) {
+        this.$logError("Processor HOST is missing from MultiProc name list",
+                MultiProc, null);
+    }
 }
 
 /*