]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - ipc/ipcdev.git/blob - packages/ti/ipc/tests/IpcCommon_omap5.cfg.xs
DRA7XX: Consolidate DSP1/2 config scripts
[ipc/ipcdev.git] / packages / ti / ipc / tests / IpcCommon_omap5.cfg.xs
1 /*
2  * Copyright (c) 2012-2013, Texas Instruments Incorporated
3  * All rights reserved.
4  *
5  * Redistribution and use in source and binary forms, with or without
6  * modification, are permitted provided that the following conditions
7  * are met:
8  *
9  * *  Redistributions of source code must retain the above copyright
10  *    notice, this list of conditions and the following disclaimer.
11  *
12  * *  Redistributions in binary form must reproduce the above copyright
13  *    notice, this list of conditions and the following disclaimer in the
14  *    documentation and/or other materials provided with the distribution.
15  *
16  * *  Neither the name of Texas Instruments Incorporated nor the names of
17  *    its contributors may be used to endorse or promote products derived
18  *    from this software without specific prior written permission.
19  *
20  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
21  * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
22  * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
23  * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
24  * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
25  * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
26  * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
27  * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
28  * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
29  * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
30  * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31  */
33 /*
34  *  The SysMin used here vs StdMin, as trace buffer address is required for
35  *  Linux trace debug driver, plus provides better performance.
36  */
37 var System      = xdc.useModule('xdc.runtime.System');
38 var SysMin      = xdc.useModule('ti.trace.SysMin');
39 System.SupportProxy = SysMin;
40 SysMin.bufSize  = 0x8000;
42 /* Define default memory heap properties */
43 var Memory      = xdc.useModule('xdc.runtime.Memory');
44 Memory.defaultHeapSize = 0x20000;
46 /* Modules used in the virtqueue/RPMessage/ServiceMgr libraries: */
47 var Semaphore   = xdc.useModule('ti.sysbios.knl.Semaphore');
48 var BIOS        = xdc.useModule('ti.sysbios.BIOS');
50 /* Reduces code size, by only pulling in modules explicitly referenced: */
51 BIOS.libType    = BIOS.LibType_Custom;
53 xdc.loadPackage('ti.ipc.rpmsg');
54 xdc.loadPackage('ti.ipc.family.omap54xx');
56 /* TBD:
57 xdc.loadPackage('ti.srvmgr');
58 xdc.useModule('ti.srvmgr.omx.OmxSrvMgr');
59 xdc.loadPackage('ti.resmgr');
60 */
62 /* Enable Memory Translation module that operates on the BIOS Resource Table */
63 var Resource = xdc.useModule('ti.ipc.remoteproc.Resource');
65 var HeapBuf   = xdc.useModule('ti.sysbios.heaps.HeapBuf');
66 var List      = xdc.useModule('ti.sdo.utils.List');
68 /* ti.grcm Configuration */
69 /* TBD:
70 var rcmSettings = xdc.useModule('ti.grcm.Settings');
71 rcmSettings.ipc = rcmSettings.IpcSupport_ti_sdo_ipc;
72 xdc.useModule('ti.grcm.RcmServer');
73 */
74 xdc.useModule('ti.sysbios.xdcruntime.GateThreadSupport');
75 var GateSwi   = xdc.useModule('ti.sysbios.gates.GateSwi');
77 var Task          = xdc.useModule('ti.sysbios.knl.Task');
78 Task.common$.namedInstance = true;
80 var Assert = xdc.useModule('xdc.runtime.Assert');
81 var Defaults = xdc.useModule('xdc.runtime.Defaults');
82 var Diags = xdc.useModule('xdc.runtime.Diags');
83 var LoggerSys = xdc.useModule('xdc.runtime.LoggerSys');
84 var LoggerSysParams = new LoggerSys.Params();
86 /* Enable Logger: */
87 Defaults.common$.logger = LoggerSys.create(LoggerSysParams);
89 /* Enable runtime Diags_setMask() for non-XDC spec'd modules: */
90 var Text = xdc.useModule('xdc.runtime.Text');
91 Text.isLoaded = true;
92 var Registry = xdc.useModule('xdc.runtime.Registry');
93 Registry.common$.diags_ENTRY = Diags.RUNTIME_OFF;
94 Registry.common$.diags_EXIT  = Diags.RUNTIME_OFF;
95 Registry.common$.diags_USER1 = Diags.ALWAYS_ON;
96 Registry.common$.diags_INFO  = Diags.ALWAYS_ON;
97 Registry.common$.diags_LIFECYCLE = Diags.ALWAYS_ON;
98 Registry.common$.diags_STATUS = Diags.ALWAYS_ON;
99 Diags.setMaskEnabled = true;
101 var Main = xdc.useModule('xdc.runtime.Main');
102 Main.common$.diags_ASSERT = Diags.ALWAYS_ON;
103 Main.common$.diags_INTERNAL = Diags.ALWAYS_ON;
105 var Hwi = xdc.useModule('ti.sysbios.family.arm.m3.Hwi');
106 //TBD: var Deh = xdc.useModule('ti.deh.Deh');
107 Hwi.enableException = true;
108 Hwi.nvicCCR.DIV_0_TRP = 1;
110 /* Include stack debug helper */
111 /* TBD:
112 var StackDbg = xdc.useModule('ti.trace.StackDbg');
113 */
115 var dmTimer = xdc.useModule('ti.sysbios.timers.dmtimer.Timer');
116 /* dmTimer 0 mapped to GPT3 */
117 dmTimer.timerSettings[0].baseAddr = 0xA8034000;
118 /* dmTimer 1 mapped to GPT4 */
119 dmTimer.timerSettings[1].baseAddr = 0xA8036000;
120 /* dmTimer 2 mapped to GPT9 */
121 dmTimer.timerSettings[2].baseAddr = 0xA803E000;
122 /* dmTimer 3 mapped to GPT11 */
123 dmTimer.timerSettings[3].baseAddr = 0xA8088000;
125 /* Skip the Timer frequency verification check. Need to remove this later */
126 dmTimer.checkFrequency = false;
128 /* Match this to the SYS_CLK frequency sourcing the dmTimers.
129  * Not needed once the SYS/BIOS family settings is updated. */
130 dmTimer.intFreq.hi = 0;
131 dmTimer.intFreq.lo = 19200000;
133 /* Override the internal sysTick timer with dmTimer for Bios Timer */
134 var halTimer = xdc.useModule('ti.sysbios.hal.Timer');
135 halTimer.TimerProxy = dmTimer;
137 /* Version module */
138 /* ???
139 xdc.useModule('ti.utils.Version');
140 */