]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - processor-sdk/pdk.git/blob - packages/ti/osal/test/am572x/m4/bios/osal_m4_evmAM572x.cfg
Removed stale IPC examples
[processor-sdk/pdk.git] / packages / ti / osal / test / am572x / m4 / bios / osal_m4_evmAM572x.cfg
1 /**
2  *  \file   osal_m4_evmAM572x.cfg
3  *
4  *  \brief  Sysbios config file for OSAL M4 test project on AM572X GP EVM.
5  *
6  */
8 /*
9  * Copyright (C) 2016-2017 Texas Instruments Incorporated - http://www.ti.com/
10  *
11  * Redistribution and use in source and binary forms, with or without
12  * modification, are permitted provided that the following conditions
13  * are met:
14  *
15  * Redistributions of source code must retain the above copyright
16  * notice, this list of conditions and the following disclaimer.
17  *
18  * Redistributions in binary form must reproduce the above copyright
19  * notice, this list of conditions and the following disclaimer in the
20  * documentation and/or other materials provided with the
21  * distribution.
22  *
23  * Neither the name of Texas Instruments Incorporated nor the names of
24  * its contributors may be used to endorse or promote products derived
25  * from this software without specific prior written permission.
26  *
27  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
28  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
29  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
30  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
31  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
32  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
33  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
34  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
35  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
36  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
37  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
38  *
39  */
40 /* ================ General configuration ================ */
41 var Main            = xdc.useModule('xdc.runtime.Main');
42 var System          = xdc.useModule('xdc.runtime.System');
43 var Task            = xdc.useModule('ti.sysbios.knl.Task');
44 var Mailbox         = xdc.useModule('ti.sysbios.knl.Mailbox');
45 var Semaphore       = xdc.useModule('ti.sysbios.knl.Semaphore');
46 var Timer           = xdc.useModule('ti.sysbios.timers.dmtimer.Timer');
49 /* ================ BIOS configuration ================ */
50 var BIOS            = xdc.useModule('ti.sysbios.BIOS');
52 /* 
53  * Create and install logger for the whole system
54  */
55 BIOS.libType = BIOS.LibType_Custom;
57 BIOS.customCCOpts = BIOS.customCCOpts.replace("-o3", "-o0");
59 /*
60  * The BIOS module will create the default heap for the system.
61  * Specify the size of this default heap.
62  */
63 BIOS.heapSize = 0xA0000;
65 /* ================ Task configuration ================ */
67 /* No runtime stack checking is performed */
68 Task.checkStackFlag = false;
70 /* Reduce the number of task priorities */
71 Task.numPriorities = 4;
73 var task0Params = new Task.Params();
74 task0Params.instance.name = "echo";
75 task0Params.stackSize = 0x1000;
76 Program.global.echo = Task.create("&osal_test", task0Params);
78 /* Define and add one Task Hook Set */
79 Task.addHookSet({
80         registerFxn: '&TaskRegisterId',
81         switchFxn: '&mySwitch',
82 });
84 /* ================ Driver configuration ================ */
86 var devType                     = "am572x"
88 /* Load the OSAL package */ 
89 var osType = "tirtos"
90 var Osal = xdc.useModule('ti.osal.Settings');
91 Osal.osType = osType;
92 Osal.socType = devType;
94 /*use CSL package*/
95 var Csl = xdc.loadPackage('ti.csl');
96 Csl.Settings.deviceType = devType;
98 /* Load Profiling package */
99 var Utils = xdc.loadPackage('ti.utils.profiling');
101 /* Load the uart package */
102 var Uart = xdc.useModule('ti.drv.uart.Settings');
103 Uart.socType = devType;
105 /* Load the i2c package */
106 var I2c = xdc.useModule('ti.drv.i2c.Settings');
107 Uart.socType = devType;
109 /* Load the board package */
110 var Board = xdc.loadPackage('ti.board');
111 Board.Settings.boardName = "evmAM572x";
113 /* ================ Cache and MMU configuration ================ */
115 /* Enable cache */
116 var Cache       = xdc.useModule('ti.sysbios.hal.unicache.Cache');
117 Cache.enableCache = true;
119 /* Use AMMU module */
120 var AMMU            = xdc.useModule('ti.sysbios.hal.ammu.AMMU');
122 /* Large PAGE */
123 AMMU.largePages[0].pageEnabled = AMMU.Enable_YES;
124 AMMU.largePages[0].logicalAddress = 0x40000000;
125 AMMU.largePages[0].translatedAddress = 0x40000000;
126 AMMU.largePages[0].translationEnabled = AMMU.Enable_YES;
127 AMMU.largePages[0].size = AMMU.Large_512M;
128 AMMU.largePages[0].L1_cacheable = AMMU.CachePolicy_NON_CACHEABLE;
129 AMMU.largePages[0].L1_posted = AMMU.PostedPolicy_NON_POSTED;
130 AMMU.largePages[0].L2_cacheable = AMMU.CachePolicy_NON_CACHEABLE;
131 AMMU.largePages[0].L2_posted = AMMU.PostedPolicy_NON_POSTED;
133 AMMU.largePages[1].pageEnabled = AMMU.Enable_YES;
134 AMMU.largePages[1].logicalAddress = 0x80000000;
135 AMMU.largePages[1].translatedAddress = 0x80000000;
136 AMMU.largePages[1].translationEnabled = AMMU.Enable_YES;
137 AMMU.largePages[1].size = AMMU.Large_512M;
138 AMMU.largePages[1].L1_writePolicy = AMMU.WritePolicy_WRITE_BACK;
139 AMMU.largePages[1].L1_allocate = AMMU.AllocatePolicy_ALLOCATE;
140 AMMU.largePages[1].L1_cacheable = AMMU.CachePolicy_CACHEABLE;
141 AMMU.largePages[1].L1_posted = AMMU.PostedPolicy_POSTED;
142 AMMU.largePages[1].L2_cacheable = AMMU.CachePolicy_NON_CACHEABLE;
143 AMMU.largePages[1].L2_posted = AMMU.PostedPolicy_NON_POSTED;
145 AMMU.largePages[2].pageEnabled = AMMU.Enable_YES;
146 AMMU.largePages[2].logicalAddress = 0xA0000000;
147 AMMU.largePages[2].translatedAddress = 0xA0000000;
148 AMMU.largePages[2].translationEnabled = AMMU.Enable_YES;
149 AMMU.largePages[2].size = AMMU.Large_512M;
150 AMMU.largePages[2].L1_cacheable = AMMU.CachePolicy_NON_CACHEABLE;
151 AMMU.largePages[2].L1_posted = AMMU.PostedPolicy_NON_POSTED;
152 AMMU.largePages[2].L2_cacheable = AMMU.CachePolicy_NON_CACHEABLE;
153 AMMU.largePages[2].L2_posted = AMMU.PostedPolicy_NON_POSTED;
155 AMMU.largePages[3].pageEnabled = AMMU.Enable_YES;
156 AMMU.largePages[3].logicalAddress = 0x60000000;
157 AMMU.largePages[3].translatedAddress = 0x40000000;
158 AMMU.largePages[3].translationEnabled = AMMU.Enable_YES;
159 AMMU.largePages[3].size = AMMU.Large_512M;
160 AMMU.largePages[3].L1_cacheable = AMMU.CachePolicy_NON_CACHEABLE;
161 AMMU.largePages[3].L1_posted = AMMU.PostedPolicy_NON_POSTED;
162 AMMU.largePages[3].L2_cacheable = AMMU.CachePolicy_NON_CACHEABLE;
163 AMMU.largePages[3].L2_posted = AMMU.PostedPolicy_NON_POSTED;
165 /* Medium Page */
166 AMMU.mediumPages[0].pageEnabled = AMMU.Enable_YES;
167 AMMU.mediumPages[0].logicalAddress = 0x00300000;
168 AMMU.mediumPages[0].translatedAddress = 0x40300000;
169 AMMU.mediumPages[0].translationEnabled = AMMU.Enable_YES;
170 AMMU.mediumPages[0].size = AMMU.Medium_256K;
172 AMMU.mediumPages[1].pageEnabled = AMMU.Enable_YES;
173 AMMU.mediumPages[1].logicalAddress = 0x00400000;
174 AMMU.mediumPages[1].translatedAddress = 0x40400000;
175 AMMU.mediumPages[1].translationEnabled = AMMU.Enable_YES;
176 AMMU.mediumPages[1].size = AMMU.Medium_256K;
177 AMMU.mediumPages[1].L1_cacheable = AMMU.CachePolicy_NON_CACHEABLE;
178 AMMU.mediumPages[1].L1_posted = AMMU.PostedPolicy_POSTED;
179 AMMU.mediumPages[1].L2_cacheable = AMMU.CachePolicy_NON_CACHEABLE;
180 AMMU.mediumPages[1].L2_posted = AMMU.PostedPolicy_NON_POSTED;
182 /* Small Page */
183 AMMU.smallPages[0].pageEnabled = AMMU.Enable_YES;
184 AMMU.smallPages[0].logicalAddress = 0x00000000;
185 AMMU.smallPages[0].translatedAddress = 0x55020000;
186 AMMU.smallPages[0].translationEnabled = AMMU.Enable_YES;
187 AMMU.smallPages[0].size = AMMU.Small_16K;
188 AMMU.smallPages[0].volatileQualifier = AMMU.Volatile_FOLLOW;
189 AMMU.smallPages[0].L1_cacheable = AMMU.CachePolicy_CACHEABLE;
190 AMMU.smallPages[0].L1_posted = AMMU.PostedPolicy_NON_POSTED;
191 AMMU.smallPages[0].L2_cacheable = AMMU.CachePolicy_NON_CACHEABLE;
192 AMMU.smallPages[0].L2_posted = AMMU.PostedPolicy_NON_POSTED;
194 AMMU.smallPages[1].pageEnabled = AMMU.Enable_YES;
195 AMMU.smallPages[1].logicalAddress = 0x40000000;
196 AMMU.smallPages[1].translatedAddress = 0x55080000;
197 AMMU.smallPages[1].translationEnabled = AMMU.Enable_YES;
198 AMMU.smallPages[1].size = AMMU.Small_16K;
199 AMMU.smallPages[1].volatileQualifier = AMMU.Volatile_FOLLOW;
200 AMMU.smallPages[1].L1_cacheable = AMMU.CachePolicy_NON_CACHEABLE;
201 AMMU.smallPages[1].L1_posted = AMMU.PostedPolicy_NON_POSTED;
202 AMMU.smallPages[1].L2_cacheable = AMMU.CachePolicy_NON_CACHEABLE;
203 AMMU.smallPages[1].L2_posted = AMMU.PostedPolicy_NON_POSTED;
205 AMMU.smallPages[2].pageEnabled = AMMU.Enable_YES;
206 AMMU.smallPages[2].logicalAddress = 0x00004000;
207 AMMU.smallPages[2].translatedAddress = 0x55024000;
208 AMMU.smallPages[2].translationEnabled = AMMU.Enable_YES;
209 AMMU.smallPages[2].size = AMMU.Small_16K;
210 AMMU.smallPages[2].L1_cacheable = AMMU.CachePolicy_CACHEABLE;
211 AMMU.smallPages[2].L1_posted = AMMU.PostedPolicy_NON_POSTED;
212 AMMU.smallPages[2].L2_cacheable = AMMU.CachePolicy_NON_CACHEABLE;
213 AMMU.smallPages[2].L2_posted = AMMU.PostedPolicy_NON_POSTED;
215 AMMU.smallPages[3].pageEnabled = AMMU.Enable_YES;
216 AMMU.smallPages[3].logicalAddress = 0x00008000;
217 AMMU.smallPages[3].translatedAddress = 0x55028000;
218 AMMU.smallPages[3].translationEnabled = AMMU.Enable_YES;
219 AMMU.smallPages[3].size = AMMU.Small_16K;
220 AMMU.smallPages[3].L1_cacheable = AMMU.CachePolicy_NON_CACHEABLE;
221 AMMU.smallPages[3].L1_posted = AMMU.PostedPolicy_NON_POSTED;
222 AMMU.smallPages[3].L2_cacheable = AMMU.CachePolicy_NON_CACHEABLE;
223 AMMU.smallPages[3].L2_posted = AMMU.PostedPolicy_NON_POSTED;
225 AMMU.smallPages[4].pageEnabled = AMMU.Enable_YES;
226 AMMU.smallPages[4].logicalAddress = 0x20000000;
227 AMMU.smallPages[4].translatedAddress = 0x55020000;
228 AMMU.smallPages[4].translationEnabled = AMMU.Enable_YES;
229 AMMU.smallPages[4].size = AMMU.Small_16K;
230 AMMU.smallPages[4].L1_cacheable = AMMU.CachePolicy_NON_CACHEABLE;
231 AMMU.smallPages[4].L1_posted = AMMU.PostedPolicy_NON_POSTED;
232 AMMU.smallPages[4].L2_cacheable = AMMU.CachePolicy_NON_CACHEABLE;
233 AMMU.smallPages[4].L2_posted = AMMU.PostedPolicy_NON_POSTED;