[processor-sdk/pdk.git] / packages / ti / drv / uart / test / am574x / m4 / bios / uart_m4_dma_idkAM574x.cfg
1 /**
2 * \file uart_m4_dma_evmAM574x.cfg
3 *
4 * \brief Sysbios config file for uart dma M4 test project on AM574X GP 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 Defaults = xdc.useModule('xdc.runtime.Defaults');
42 var Diags = xdc.useModule('xdc.runtime.Diags');
43 var Error = xdc.useModule('xdc.runtime.Error');
44 var Log = xdc.useModule('xdc.runtime.Log');
45 var LoggerBuf = xdc.useModule('xdc.runtime.LoggerBuf');
46 var Main = xdc.useModule('xdc.runtime.Main');
47 var Memory = xdc.useModule('xdc.runtime.Memory')
48 var SysMin = xdc.useModule('xdc.runtime.SysMin');
49 var System = xdc.useModule('xdc.runtime.System');
50 var Text = xdc.useModule('xdc.runtime.Text');
51 var Clock = xdc.useModule('ti.sysbios.knl.Clock');
52 var Swi = xdc.useModule('ti.sysbios.knl.Swi');
53 var Task = xdc.useModule('ti.sysbios.knl.Task');
54 var Semaphore = xdc.useModule('ti.sysbios.knl.Semaphore');
55 var Hwi = xdc.useModule('ti.sysbios.hal.Hwi');
56 var Cache = xdc.useModule('ti.sysbios.hal.Cache');
57 var InitXbar = xdc.useModule("ti.sysbios.family.shared.vayu.IntXbar");
59 /* ================ BIOS configuration ================ */
60 var BIOS = xdc.useModule('ti.sysbios.BIOS');
61 /*
62 * Create and install logger for the whole system
63 */
64 BIOS.libType = BIOS.LibType_Custom;
65 /*
66 * The BIOS module will create the default heap for the system.
67 * Specify the size of this default heap.
68 */
69 BIOS.heapSize = 0xA0000;
71 /* ================ Task configuration ================ */
73 /* Define and add one Task Hook Set */
74 Task.addHookSet({
75 registerFxn: '&TaskRegisterId',
76 switchFxn: '&mySwitch',
77 });
79 /* ================ Driver configuration ================ */
81 var Edma = xdc.loadPackage ("ti.sdo.edma3.drv.sample");
82 var drv = xdc.loadPackage ("ti.sdo.edma3.drv");
83 var rm = xdc.loadPackage ("ti.sdo.edma3.rm");
85 /* Load the OSAL package */
86 var osType = "tirtos"
87 var Osal = xdc.useModule('ti.osal.Settings');
88 Osal.osType = osType;
90 /*use CSL package*/
91 var socType = "am574x";
92 var Csl = xdc.loadPackage('ti.csl');
93 Csl.Settings.deviceType = socType;
95 /* Load Profiling package */
96 var Utils = xdc.loadPackage('ti.utils.profiling');
98 /* Load the uart package */
99 var Uart = xdc.loadPackage('ti.drv.uart');
100 Uart.Settings.enableProfiling = true;
101 Uart.Settings.socType = socType;
102 Uart.Settings.useDma = "true";
104 var I2c = xdc.loadPackage('ti.drv.i2c');
105 I2c.Settings.socType = socType;
106 var Spi = xdc.loadPackage('ti.drv.spi');
108 /* Load the board package */
109 var Board = xdc.loadPackage('ti.board');
110 Board.Settings.boardName = "idkAM574x";
112 /* ================ Cache and MMU configuration ================ */
114 /* Enable cache */
115 var Cache = xdc.useModule('ti.sysbios.hal.unicache.Cache');
116 Cache.enableCache = true;
118 /* Use AMMU module */
119 var AMMU = xdc.useModule('ti.sysbios.hal.ammu.AMMU');
121 /* Large PAGE */
122 AMMU.largePages[0].pageEnabled = AMMU.Enable_YES;
123 AMMU.largePages[0].logicalAddress = 0x40000000;
124 AMMU.largePages[0].translatedAddress = 0x40000000;
125 AMMU.largePages[0].translationEnabled = AMMU.Enable_YES;
126 AMMU.largePages[0].size = AMMU.Large_512M;
127 AMMU.largePages[0].L1_cacheable = AMMU.CachePolicy_NON_CACHEABLE;
128 AMMU.largePages[0].L1_posted = AMMU.PostedPolicy_NON_POSTED;
129 AMMU.largePages[0].L2_cacheable = AMMU.CachePolicy_NON_CACHEABLE;
130 AMMU.largePages[0].L2_posted = AMMU.PostedPolicy_NON_POSTED;
132 AMMU.largePages[1].pageEnabled = AMMU.Enable_YES;
133 AMMU.largePages[1].logicalAddress = 0x80000000;
134 AMMU.largePages[1].translatedAddress = 0x80000000;
135 AMMU.largePages[1].translationEnabled = AMMU.Enable_YES;
136 AMMU.largePages[1].size = AMMU.Large_512M;
137 AMMU.largePages[1].L1_writePolicy = AMMU.WritePolicy_WRITE_BACK;
138 AMMU.largePages[1].L1_allocate = AMMU.AllocatePolicy_ALLOCATE;
139 AMMU.largePages[1].L1_cacheable = AMMU.CachePolicy_CACHEABLE;
140 AMMU.largePages[1].L1_posted = AMMU.PostedPolicy_POSTED;
141 AMMU.largePages[1].L2_cacheable = AMMU.CachePolicy_NON_CACHEABLE;
142 AMMU.largePages[1].L2_posted = AMMU.PostedPolicy_NON_POSTED;
144 AMMU.largePages[2].pageEnabled = AMMU.Enable_YES;
145 AMMU.largePages[2].logicalAddress = 0xA0000000;
146 AMMU.largePages[2].translatedAddress = 0xA0000000;
147 AMMU.largePages[2].translationEnabled = AMMU.Enable_YES;
148 AMMU.largePages[2].size = AMMU.Large_512M;
149 AMMU.largePages[2].L1_cacheable = AMMU.CachePolicy_NON_CACHEABLE;
150 AMMU.largePages[2].L1_posted = AMMU.PostedPolicy_NON_POSTED;
151 AMMU.largePages[2].L2_cacheable = AMMU.CachePolicy_NON_CACHEABLE;
152 AMMU.largePages[2].L2_posted = AMMU.PostedPolicy_NON_POSTED;
154 AMMU.largePages[3].pageEnabled = AMMU.Enable_YES;
155 AMMU.largePages[3].logicalAddress = 0x60000000;
156 AMMU.largePages[3].translatedAddress = 0x40000000;
157 AMMU.largePages[3].translationEnabled = AMMU.Enable_YES;
158 AMMU.largePages[3].size = AMMU.Large_512M;
159 AMMU.largePages[3].L1_cacheable = AMMU.CachePolicy_NON_CACHEABLE;
160 AMMU.largePages[3].L1_posted = AMMU.PostedPolicy_NON_POSTED;
161 AMMU.largePages[3].L2_cacheable = AMMU.CachePolicy_NON_CACHEABLE;
162 AMMU.largePages[3].L2_posted = AMMU.PostedPolicy_NON_POSTED;
164 /* Medium Page */
165 AMMU.mediumPages[0].pageEnabled = AMMU.Enable_YES;
166 AMMU.mediumPages[0].logicalAddress = 0x00300000;
167 AMMU.mediumPages[0].translatedAddress = 0x40300000;
168 AMMU.mediumPages[0].translationEnabled = AMMU.Enable_YES;
169 AMMU.mediumPages[0].size = AMMU.Medium_256K;
171 AMMU.mediumPages[1].pageEnabled = AMMU.Enable_YES;
172 AMMU.mediumPages[1].logicalAddress = 0x00400000;
173 AMMU.mediumPages[1].translatedAddress = 0x40400000;
174 AMMU.mediumPages[1].translationEnabled = AMMU.Enable_YES;
175 AMMU.mediumPages[1].size = AMMU.Medium_256K;
176 AMMU.mediumPages[1].L1_cacheable = AMMU.CachePolicy_NON_CACHEABLE;
177 AMMU.mediumPages[1].L1_posted = AMMU.PostedPolicy_POSTED;
178 AMMU.mediumPages[1].L2_cacheable = AMMU.CachePolicy_NON_CACHEABLE;
179 AMMU.mediumPages[1].L2_posted = AMMU.PostedPolicy_NON_POSTED;
181 /* Small Page */
182 AMMU.smallPages[0].pageEnabled = AMMU.Enable_YES;
183 AMMU.smallPages[0].logicalAddress = 0x00000000;
184 AMMU.smallPages[0].translatedAddress = 0x55020000;
185 AMMU.smallPages[0].translationEnabled = AMMU.Enable_YES;
186 AMMU.smallPages[0].size = AMMU.Small_16K;
187 AMMU.smallPages[0].volatileQualifier = AMMU.Volatile_FOLLOW;
188 AMMU.smallPages[0].L1_cacheable = AMMU.CachePolicy_CACHEABLE;
189 AMMU.smallPages[0].L1_posted = AMMU.PostedPolicy_NON_POSTED;
190 AMMU.smallPages[0].L2_cacheable = AMMU.CachePolicy_NON_CACHEABLE;
191 AMMU.smallPages[0].L2_posted = AMMU.PostedPolicy_NON_POSTED;
193 AMMU.smallPages[1].pageEnabled = AMMU.Enable_YES;
194 AMMU.smallPages[1].logicalAddress = 0x40000000;
195 AMMU.smallPages[1].translatedAddress = 0x55080000;
196 AMMU.smallPages[1].translationEnabled = AMMU.Enable_YES;
197 AMMU.smallPages[1].size = AMMU.Small_16K;
198 AMMU.smallPages[1].volatileQualifier = AMMU.Volatile_FOLLOW;
199 AMMU.smallPages[1].L1_cacheable = AMMU.CachePolicy_NON_CACHEABLE;
200 AMMU.smallPages[1].L1_posted = AMMU.PostedPolicy_NON_POSTED;
201 AMMU.smallPages[1].L2_cacheable = AMMU.CachePolicy_NON_CACHEABLE;
202 AMMU.smallPages[1].L2_posted = AMMU.PostedPolicy_NON_POSTED;
204 AMMU.smallPages[2].pageEnabled = AMMU.Enable_YES;
205 AMMU.smallPages[2].logicalAddress = 0x00004000;
206 AMMU.smallPages[2].translatedAddress = 0x55024000;
207 AMMU.smallPages[2].translationEnabled = AMMU.Enable_YES;
208 AMMU.smallPages[2].size = AMMU.Small_16K;
209 AMMU.smallPages[2].L1_cacheable = AMMU.CachePolicy_CACHEABLE;
210 AMMU.smallPages[2].L1_posted = AMMU.PostedPolicy_NON_POSTED;
211 AMMU.smallPages[2].L2_cacheable = AMMU.CachePolicy_NON_CACHEABLE;
212 AMMU.smallPages[2].L2_posted = AMMU.PostedPolicy_NON_POSTED;
214 AMMU.smallPages[3].pageEnabled = AMMU.Enable_YES;
215 AMMU.smallPages[3].logicalAddress = 0x00008000;
216 AMMU.smallPages[3].translatedAddress = 0x55028000;
217 AMMU.smallPages[3].translationEnabled = AMMU.Enable_YES;
218 AMMU.smallPages[3].size = AMMU.Small_16K;
219 AMMU.smallPages[3].L1_cacheable = AMMU.CachePolicy_NON_CACHEABLE;
220 AMMU.smallPages[3].L1_posted = AMMU.PostedPolicy_NON_POSTED;
221 AMMU.smallPages[3].L2_cacheable = AMMU.CachePolicy_NON_CACHEABLE;
222 AMMU.smallPages[3].L2_posted = AMMU.PostedPolicy_NON_POSTED;
224 AMMU.smallPages[4].pageEnabled = AMMU.Enable_YES;
225 AMMU.smallPages[4].logicalAddress = 0x20000000;
226 AMMU.smallPages[4].translatedAddress = 0x55020000;
227 AMMU.smallPages[4].translationEnabled = AMMU.Enable_YES;
228 AMMU.smallPages[4].size = AMMU.Small_16K;
229 AMMU.smallPages[4].L1_cacheable = AMMU.CachePolicy_NON_CACHEABLE;
230 AMMU.smallPages[4].L1_posted = AMMU.PostedPolicy_NON_POSTED;
231 AMMU.smallPages[4].L2_cacheable = AMMU.CachePolicy_NON_CACHEABLE;
232 AMMU.smallPages[4].L2_posted = AMMU.PostedPolicy_NON_POSTED;