]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - processor-sdk/pdk.git/blob - packages/ti/drv/i2c/example/temperature_sensor/am572x/m4/bios/i2c_m4_evmAM572x.cfg
i2c-lld: add to PDK
[processor-sdk/pdk.git] / packages / ti / drv / i2c / example / temperature_sensor / am572x / m4 / bios / i2c_m4_evmAM572x.cfg
1 /**
2  *  \file   i2c_m4_evmAM572x.cfg
3  *
4  *  \brief  Sysbios config file for i2c M4 example project on AM572X GP EVM.
5  *
6  */
8 /*
9  * Copyright (C) 2015 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');
47 var Task = xdc.useModule('ti.sysbios.knl.Task');
50 /* ================ BIOS configuration ================ */
51 var BIOS                = xdc.useModule('ti.sysbios.BIOS');
53 /* 
54  * Create and install logger for the whole system
55  */
56 BIOS.libType = BIOS.LibType_Custom;
58 /*
59  * The BIOS module will create the default heap for the system.
60  * Specify the size of this default heap.
61  */
62 BIOS.heapSize = 0xA0000;
64 /* ================ Task configuration ================ */
66 /* No runtime stack checking is performed */
67 Task.checkStackFlag = false;
69 /* Reduce the number of task priorities */
70 Task.numPriorities = 4;
72 var task0Params = new Task.Params();
73 task0Params.instance.name = "echo";
74 task0Params.stackSize = 0x1000;
75 Program.global.echo = Task.create("&i2c_test", task0Params);
77 /* ================ Driver configuration ================ */
79 /* Load the OSAL package */ 
80 var osType = "tirtos"
81 var Osal = xdc.useModule('ti.osal.Settings');
82 Osal.osType = osType;
84 /*use CSL package*/
85 var socType           = "am572x";
86 var Csl = xdc.loadPackage('ti.csl');
87 Csl.Settings.deviceType = socType;
89 /* Load the i2c package */
90 var I2c                          = xdc.loadPackage('ti.drv.i2c');
91 I2c.Settings.socType = socType;
93 var Uart                        = xdc.loadPackage('ti.drv.uart');
95 /* Load the board package */
96 var Board = xdc.loadPackage('ti.board');
97 Board.Settings.boardName = "evmAM572x";
99 /* ================ Cache and MMU configuration ================ */
101 /* Enable cache */
102 var Cache       = xdc.useModule('ti.sysbios.hal.unicache.Cache');
103 Cache.enableCache = true;
105 /* Use AMMU module */
106 var AMMU            = xdc.useModule('ti.sysbios.hal.ammu.AMMU');
108 /* Large PAGE */
109 AMMU.largePages[0].pageEnabled = AMMU.Enable_YES;
110 AMMU.largePages[0].logicalAddress = 0x40000000;
111 AMMU.largePages[0].translatedAddress = 0x40000000;
112 AMMU.largePages[0].translationEnabled = AMMU.Enable_YES;
113 AMMU.largePages[0].size = AMMU.Large_512M;
114 AMMU.largePages[0].L1_cacheable = AMMU.CachePolicy_NON_CACHEABLE;
115 AMMU.largePages[0].L1_posted = AMMU.PostedPolicy_NON_POSTED;
116 AMMU.largePages[0].L2_cacheable = AMMU.CachePolicy_NON_CACHEABLE;
117 AMMU.largePages[0].L2_posted = AMMU.PostedPolicy_NON_POSTED;
119 AMMU.largePages[1].pageEnabled = AMMU.Enable_YES;
120 AMMU.largePages[1].logicalAddress = 0x80000000;
121 AMMU.largePages[1].translatedAddress = 0x80000000;
122 AMMU.largePages[1].translationEnabled = AMMU.Enable_YES;
123 AMMU.largePages[1].size = AMMU.Large_512M;
124 AMMU.largePages[1].L1_writePolicy = AMMU.WritePolicy_WRITE_BACK;
125 AMMU.largePages[1].L1_allocate = AMMU.AllocatePolicy_ALLOCATE;
126 AMMU.largePages[1].L1_cacheable = AMMU.CachePolicy_CACHEABLE;
127 AMMU.largePages[1].L1_posted = AMMU.PostedPolicy_POSTED;
128 AMMU.largePages[1].L2_cacheable = AMMU.CachePolicy_NON_CACHEABLE;
129 AMMU.largePages[1].L2_posted = AMMU.PostedPolicy_NON_POSTED;
131 AMMU.largePages[2].pageEnabled = AMMU.Enable_YES;
132 AMMU.largePages[2].logicalAddress = 0xA0000000;
133 AMMU.largePages[2].translatedAddress = 0xA0000000;
134 AMMU.largePages[2].translationEnabled = AMMU.Enable_YES;
135 AMMU.largePages[2].size = AMMU.Large_512M;
136 AMMU.largePages[2].L1_cacheable = AMMU.CachePolicy_NON_CACHEABLE;
137 AMMU.largePages[2].L1_posted = AMMU.PostedPolicy_NON_POSTED;
138 AMMU.largePages[2].L2_cacheable = AMMU.CachePolicy_NON_CACHEABLE;
139 AMMU.largePages[2].L2_posted = AMMU.PostedPolicy_NON_POSTED;
141 AMMU.largePages[3].pageEnabled = AMMU.Enable_YES;
142 AMMU.largePages[3].logicalAddress = 0x60000000;
143 AMMU.largePages[3].translatedAddress = 0x40000000;
144 AMMU.largePages[3].translationEnabled = AMMU.Enable_YES;
145 AMMU.largePages[3].size = AMMU.Large_512M;
146 AMMU.largePages[3].L1_cacheable = AMMU.CachePolicy_NON_CACHEABLE;
147 AMMU.largePages[3].L1_posted = AMMU.PostedPolicy_NON_POSTED;
148 AMMU.largePages[3].L2_cacheable = AMMU.CachePolicy_NON_CACHEABLE;
149 AMMU.largePages[3].L2_posted = AMMU.PostedPolicy_NON_POSTED;
151 /* Medium Page */
152 AMMU.mediumPages[0].pageEnabled = AMMU.Enable_YES;
153 AMMU.mediumPages[0].logicalAddress = 0x00300000;
154 AMMU.mediumPages[0].translatedAddress = 0x40300000;
155 AMMU.mediumPages[0].translationEnabled = AMMU.Enable_YES;
156 AMMU.mediumPages[0].size = AMMU.Medium_256K;
158 AMMU.mediumPages[1].pageEnabled = AMMU.Enable_YES;
159 AMMU.mediumPages[1].logicalAddress = 0x00400000;
160 AMMU.mediumPages[1].translatedAddress = 0x40400000;
161 AMMU.mediumPages[1].translationEnabled = AMMU.Enable_YES;
162 AMMU.mediumPages[1].size = AMMU.Medium_256K;
163 AMMU.mediumPages[1].L1_cacheable = AMMU.CachePolicy_NON_CACHEABLE;
164 AMMU.mediumPages[1].L1_posted = AMMU.PostedPolicy_POSTED;
165 AMMU.mediumPages[1].L2_cacheable = AMMU.CachePolicy_NON_CACHEABLE;
166 AMMU.mediumPages[1].L2_posted = AMMU.PostedPolicy_NON_POSTED;
168 /* Small Page */
169 AMMU.smallPages[0].pageEnabled = AMMU.Enable_YES;
170 AMMU.smallPages[0].logicalAddress = 0x00000000;
171 AMMU.smallPages[0].translatedAddress = 0x55020000;
172 AMMU.smallPages[0].translationEnabled = AMMU.Enable_YES;
173 AMMU.smallPages[0].size = AMMU.Small_16K;
174 AMMU.smallPages[0].volatileQualifier = AMMU.Volatile_FOLLOW;
175 AMMU.smallPages[0].L1_cacheable = AMMU.CachePolicy_CACHEABLE;
176 AMMU.smallPages[0].L1_posted = AMMU.PostedPolicy_NON_POSTED;
177 AMMU.smallPages[0].L2_cacheable = AMMU.CachePolicy_NON_CACHEABLE;
178 AMMU.smallPages[0].L2_posted = AMMU.PostedPolicy_NON_POSTED;
180 AMMU.smallPages[1].pageEnabled = AMMU.Enable_YES;
181 AMMU.smallPages[1].logicalAddress = 0x40000000;
182 AMMU.smallPages[1].translatedAddress = 0x55080000;
183 AMMU.smallPages[1].translationEnabled = AMMU.Enable_YES;
184 AMMU.smallPages[1].size = AMMU.Small_16K;
185 AMMU.smallPages[1].volatileQualifier = AMMU.Volatile_FOLLOW;
186 AMMU.smallPages[1].L1_cacheable = AMMU.CachePolicy_NON_CACHEABLE;
187 AMMU.smallPages[1].L1_posted = AMMU.PostedPolicy_NON_POSTED;
188 AMMU.smallPages[1].L2_cacheable = AMMU.CachePolicy_NON_CACHEABLE;
189 AMMU.smallPages[1].L2_posted = AMMU.PostedPolicy_NON_POSTED;
191 AMMU.smallPages[2].pageEnabled = AMMU.Enable_YES;
192 AMMU.smallPages[2].logicalAddress = 0x00004000;
193 AMMU.smallPages[2].translatedAddress = 0x55024000;
194 AMMU.smallPages[2].translationEnabled = AMMU.Enable_YES;
195 AMMU.smallPages[2].size = AMMU.Small_16K;
196 AMMU.smallPages[2].L1_cacheable = AMMU.CachePolicy_CACHEABLE;
197 AMMU.smallPages[2].L1_posted = AMMU.PostedPolicy_NON_POSTED;
198 AMMU.smallPages[2].L2_cacheable = AMMU.CachePolicy_NON_CACHEABLE;
199 AMMU.smallPages[2].L2_posted = AMMU.PostedPolicy_NON_POSTED;
201 AMMU.smallPages[3].pageEnabled = AMMU.Enable_YES;
202 AMMU.smallPages[3].logicalAddress = 0x00008000;
203 AMMU.smallPages[3].translatedAddress = 0x55028000;
204 AMMU.smallPages[3].translationEnabled = AMMU.Enable_YES;
205 AMMU.smallPages[3].size = AMMU.Small_16K;
206 AMMU.smallPages[3].L1_cacheable = AMMU.CachePolicy_NON_CACHEABLE;
207 AMMU.smallPages[3].L1_posted = AMMU.PostedPolicy_NON_POSTED;
208 AMMU.smallPages[3].L2_cacheable = AMMU.CachePolicy_NON_CACHEABLE;
209 AMMU.smallPages[3].L2_posted = AMMU.PostedPolicy_NON_POSTED;
211 AMMU.smallPages[4].pageEnabled = AMMU.Enable_YES;
212 AMMU.smallPages[4].logicalAddress = 0x20000000;
213 AMMU.smallPages[4].translatedAddress = 0x55020000;
214 AMMU.smallPages[4].translationEnabled = AMMU.Enable_YES;
215 AMMU.smallPages[4].size = AMMU.Small_16K;
216 AMMU.smallPages[4].L1_cacheable = AMMU.CachePolicy_NON_CACHEABLE;
217 AMMU.smallPages[4].L1_posted = AMMU.PostedPolicy_NON_POSTED;
218 AMMU.smallPages[4].L2_cacheable = AMMU.CachePolicy_NON_CACHEABLE;
219 AMMU.smallPages[4].L2_posted = AMMU.PostedPolicy_NON_POSTED;