[processor-sdk/pdk.git] / packages / ti / drv / i2c / test / eeprom_read / am574x / m4 / bios / i2c_m4_idkAM574x.cfg
1 /**
2 * \file i2c_m4_idkAM574x.cfg
3 *
4 * \brief Sysbios config file for i2c M4 test project on AM574X IDK EVM.
5 *
6 */
8 /*
9 * Copyright (C) 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.hal.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 /*
58 * The BIOS module will create the default heap for the system.
59 * Specify the size of this default heap.
60 */
61 BIOS.heapSize = 0xA0000;
63 /* ================ Task configuration ================ */
65 /* No runtime stack checking is performed */
66 Task.checkStackFlag = false;
68 /* Reduce the number of task priorities */
69 Task.numPriorities = 4;
71 var task0Params = new Task.Params();
72 task0Params.instance.name = "echo";
73 task0Params.stackSize = 0x1000;
74 Program.global.echo = Task.create("&i2c_test", task0Params);
76 /* Define and add one Task Hook Set */
77 Task.addHookSet({
78 registerFxn: '&TaskRegisterId',
79 switchFxn: '&mySwitch',
80 });
82 /* ================ Driver configuration ================ */
84 /* Load the OSAL package */
85 var osType = "tirtos"
86 var Osal = xdc.useModule('ti.osal.Settings');
87 Osal.osType = osType;
89 /*use CSL package*/
90 var socType = "am574x";
91 var Csl = xdc.loadPackage('ti.csl');
92 Csl.Settings.deviceType = socType;
94 var Uart = xdc.loadPackage('ti.drv.uart');
95 /* Load Profiling package */
96 var Utils = xdc.loadPackage('ti.utils.profiling');
98 /* Load the i2c package */
99 var I2c = xdc.loadPackage('ti.drv.i2c');
100 I2c.Settings.enableProfiling = true;
103 /* Load the board package */
104 var Board = xdc.loadPackage('ti.board');
105 Board.Settings.boardName = "idkAM574x";
107 /* ================ Cache and MMU configuration ================ */
109 /* Enable cache */
110 var Cache = xdc.useModule('ti.sysbios.hal.unicache.Cache');
111 Cache.enableCache = true;
113 /* Use AMMU module */
114 var AMMU = xdc.useModule('ti.sysbios.hal.ammu.AMMU');
116 /* Large PAGE */
117 AMMU.largePages[0].pageEnabled = AMMU.Enable_YES;
118 AMMU.largePages[0].logicalAddress = 0x40000000;
119 AMMU.largePages[0].translatedAddress = 0x40000000;
120 AMMU.largePages[0].translationEnabled = AMMU.Enable_YES;
121 AMMU.largePages[0].size = AMMU.Large_512M;
122 AMMU.largePages[0].L1_cacheable = AMMU.CachePolicy_NON_CACHEABLE;
123 AMMU.largePages[0].L1_posted = AMMU.PostedPolicy_NON_POSTED;
124 AMMU.largePages[0].L2_cacheable = AMMU.CachePolicy_NON_CACHEABLE;
125 AMMU.largePages[0].L2_posted = AMMU.PostedPolicy_NON_POSTED;
127 AMMU.largePages[1].pageEnabled = AMMU.Enable_YES;
128 AMMU.largePages[1].logicalAddress = 0x80000000;
129 AMMU.largePages[1].translatedAddress = 0x80000000;
130 AMMU.largePages[1].translationEnabled = AMMU.Enable_YES;
131 AMMU.largePages[1].size = AMMU.Large_512M;
132 AMMU.largePages[1].L1_writePolicy = AMMU.WritePolicy_WRITE_BACK;
133 AMMU.largePages[1].L1_allocate = AMMU.AllocatePolicy_ALLOCATE;
134 AMMU.largePages[1].L1_cacheable = AMMU.CachePolicy_CACHEABLE;
135 AMMU.largePages[1].L1_posted = AMMU.PostedPolicy_POSTED;
136 AMMU.largePages[1].L2_cacheable = AMMU.CachePolicy_NON_CACHEABLE;
137 AMMU.largePages[1].L2_posted = AMMU.PostedPolicy_NON_POSTED;
139 AMMU.largePages[2].pageEnabled = AMMU.Enable_YES;
140 AMMU.largePages[2].logicalAddress = 0xA0000000;
141 AMMU.largePages[2].translatedAddress = 0xA0000000;
142 AMMU.largePages[2].translationEnabled = AMMU.Enable_YES;
143 AMMU.largePages[2].size = AMMU.Large_512M;
144 AMMU.largePages[2].L1_cacheable = AMMU.CachePolicy_NON_CACHEABLE;
145 AMMU.largePages[2].L1_posted = AMMU.PostedPolicy_NON_POSTED;
146 AMMU.largePages[2].L2_cacheable = AMMU.CachePolicy_NON_CACHEABLE;
147 AMMU.largePages[2].L2_posted = AMMU.PostedPolicy_NON_POSTED;
149 AMMU.largePages[3].pageEnabled = AMMU.Enable_YES;
150 AMMU.largePages[3].logicalAddress = 0x60000000;
151 AMMU.largePages[3].translatedAddress = 0x40000000;
152 AMMU.largePages[3].translationEnabled = AMMU.Enable_YES;
153 AMMU.largePages[3].size = AMMU.Large_512M;
154 AMMU.largePages[3].L1_cacheable = AMMU.CachePolicy_NON_CACHEABLE;
155 AMMU.largePages[3].L1_posted = AMMU.PostedPolicy_NON_POSTED;
156 AMMU.largePages[3].L2_cacheable = AMMU.CachePolicy_NON_CACHEABLE;
157 AMMU.largePages[3].L2_posted = AMMU.PostedPolicy_NON_POSTED;
159 /* Medium Page */
160 AMMU.mediumPages[0].pageEnabled = AMMU.Enable_YES;
161 AMMU.mediumPages[0].logicalAddress = 0x00300000;
162 AMMU.mediumPages[0].translatedAddress = 0x40300000;
163 AMMU.mediumPages[0].translationEnabled = AMMU.Enable_YES;
164 AMMU.mediumPages[0].size = AMMU.Medium_256K;
166 AMMU.mediumPages[1].pageEnabled = AMMU.Enable_YES;
167 AMMU.mediumPages[1].logicalAddress = 0x00400000;
168 AMMU.mediumPages[1].translatedAddress = 0x40400000;
169 AMMU.mediumPages[1].translationEnabled = AMMU.Enable_YES;
170 AMMU.mediumPages[1].size = AMMU.Medium_256K;
171 AMMU.mediumPages[1].L1_cacheable = AMMU.CachePolicy_NON_CACHEABLE;
172 AMMU.mediumPages[1].L1_posted = AMMU.PostedPolicy_POSTED;
173 AMMU.mediumPages[1].L2_cacheable = AMMU.CachePolicy_NON_CACHEABLE;
174 AMMU.mediumPages[1].L2_posted = AMMU.PostedPolicy_NON_POSTED;
176 /* Small Page */
177 AMMU.smallPages[0].pageEnabled = AMMU.Enable_YES;
178 AMMU.smallPages[0].logicalAddress = 0x00000000;
179 AMMU.smallPages[0].translatedAddress = 0x55020000;
180 AMMU.smallPages[0].translationEnabled = AMMU.Enable_YES;
181 AMMU.smallPages[0].size = AMMU.Small_16K;
182 AMMU.smallPages[0].volatileQualifier = AMMU.Volatile_FOLLOW;
183 AMMU.smallPages[0].L1_cacheable = AMMU.CachePolicy_CACHEABLE;
184 AMMU.smallPages[0].L1_posted = AMMU.PostedPolicy_NON_POSTED;
185 AMMU.smallPages[0].L2_cacheable = AMMU.CachePolicy_NON_CACHEABLE;
186 AMMU.smallPages[0].L2_posted = AMMU.PostedPolicy_NON_POSTED;
188 AMMU.smallPages[1].pageEnabled = AMMU.Enable_YES;
189 AMMU.smallPages[1].logicalAddress = 0x40000000;
190 AMMU.smallPages[1].translatedAddress = 0x55080000;
191 AMMU.smallPages[1].translationEnabled = AMMU.Enable_YES;
192 AMMU.smallPages[1].size = AMMU.Small_16K;
193 AMMU.smallPages[1].volatileQualifier = AMMU.Volatile_FOLLOW;
194 AMMU.smallPages[1].L1_cacheable = AMMU.CachePolicy_NON_CACHEABLE;
195 AMMU.smallPages[1].L1_posted = AMMU.PostedPolicy_NON_POSTED;
196 AMMU.smallPages[1].L2_cacheable = AMMU.CachePolicy_NON_CACHEABLE;
197 AMMU.smallPages[1].L2_posted = AMMU.PostedPolicy_NON_POSTED;
199 AMMU.smallPages[2].pageEnabled = AMMU.Enable_YES;
200 AMMU.smallPages[2].logicalAddress = 0x00004000;
201 AMMU.smallPages[2].translatedAddress = 0x55024000;
202 AMMU.smallPages[2].translationEnabled = AMMU.Enable_YES;
203 AMMU.smallPages[2].size = AMMU.Small_16K;
204 AMMU.smallPages[2].L1_cacheable = AMMU.CachePolicy_CACHEABLE;
205 AMMU.smallPages[2].L1_posted = AMMU.PostedPolicy_NON_POSTED;
206 AMMU.smallPages[2].L2_cacheable = AMMU.CachePolicy_NON_CACHEABLE;
207 AMMU.smallPages[2].L2_posted = AMMU.PostedPolicy_NON_POSTED;
209 AMMU.smallPages[3].pageEnabled = AMMU.Enable_YES;
210 AMMU.smallPages[3].logicalAddress = 0x00008000;
211 AMMU.smallPages[3].translatedAddress = 0x55028000;
212 AMMU.smallPages[3].translationEnabled = AMMU.Enable_YES;
213 AMMU.smallPages[3].size = AMMU.Small_16K;
214 AMMU.smallPages[3].L1_cacheable = AMMU.CachePolicy_NON_CACHEABLE;
215 AMMU.smallPages[3].L1_posted = AMMU.PostedPolicy_NON_POSTED;
216 AMMU.smallPages[3].L2_cacheable = AMMU.CachePolicy_NON_CACHEABLE;
217 AMMU.smallPages[3].L2_posted = AMMU.PostedPolicy_NON_POSTED;
219 AMMU.smallPages[4].pageEnabled = AMMU.Enable_YES;
220 AMMU.smallPages[4].logicalAddress = 0x20000000;
221 AMMU.smallPages[4].translatedAddress = 0x55020000;
222 AMMU.smallPages[4].translationEnabled = AMMU.Enable_YES;
223 AMMU.smallPages[4].size = AMMU.Small_16K;
224 AMMU.smallPages[4].L1_cacheable = AMMU.CachePolicy_NON_CACHEABLE;
225 AMMU.smallPages[4].L1_posted = AMMU.PostedPolicy_NON_POSTED;
226 AMMU.smallPages[4].L2_cacheable = AMMU.CachePolicy_NON_CACHEABLE;
227 AMMU.smallPages[4].L2_posted = AMMU.PostedPolicy_NON_POSTED;