[processor-sdk/pdk.git] / packages / ti / drv / pcie / example / sample / k2e / c66 / bios / pcie_sample_wSoCFile.cfg
1 /*
2 * \file pcie_sample_wSoCFile.cfg
3 *
4 * \brief Sysbios config file for pcie example project on K2E EVM.
5 *
6 */
8 /*
9 * Copyright (C) 2012-2016 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 Edma = xdc.loadPackage ("ti.sdo.edma3.drv.sample");
42 var drv = xdc.loadPackage ("ti.sdo.edma3.drv");
43 var rm = xdc.loadPackage ("ti.sdo.edma3.rm");
44 var Memory = xdc.useModule('xdc.runtime.Memory');
45 var BIOS = xdc.useModule('ti.sysbios.BIOS');
46 var Event = xdc.useModule('ti.sysbios.knl.Event');
47 var HeapMem = xdc.useModule('ti.sysbios.heaps.HeapMem');
48 var HeapBuf = xdc.useModule('ti.sysbios.heaps.HeapBuf');
49 var Task = xdc.useModule('ti.sysbios.knl.Task');
50 var Idle = xdc.useModule('ti.sysbios.knl.Idle');
51 var Log = xdc.useModule('xdc.runtime.Log');
52 var Diags = xdc.useModule('xdc.runtime.Diags');
53 var CpIntc = xdc.useModule('ti.sysbios.family.c66.tci66xx.CpIntc');
54 var ECM = xdc.useModule ("ti.sysbios.family.c64p.EventCombiner");
55 var C64_Hwi = xdc.useModule ("ti.sysbios.family.c64p.Hwi");
56 var Hwi = xdc.useModule('ti.sysbios.hal.Hwi');
57 var halCache = xdc.useModule('ti.sysbios.hal.Cache');
58 var System = xdc.useModule('xdc.runtime.System');
59 var SysStd = xdc.useModule('xdc.runtime.SysStd');
60 System.SupportProxy = SysStd;
62 ECM.eventGroupHwiNum[0] = 7;
64 /* specify heap size */
65 Memory.defaultHeapSize = 0x20000;
67 /* ================ Task configuration ================ */
69 /* Define and add one Task Hook Set */
70 Task.addHookSet({
71 registerFxn: '&TaskRegisterId',
72 switchFxn: '&mySwitch',
73 });
75 /* ================ Driver configuration ================ */
77 /* Load Profiling package */
78 var Utils = xdc.loadPackage('ti.utils.profiling');
80 /* Load and use the PCIE packages */
81 var socType = "k2e";
82 var Pcie = xdc.loadPackage('ti.drv.pcie');
83 Pcie.Settings.enableProfiling = true;
84 /* Enable only if soc-specific library should be used */
85 /* Pcie.Settings.socType = socType; */ /* use soc/k2e/src/pcie_soc.c */
87 /*use CSL package*/
88 var Csl = xdc.useModule('ti.csl.Settings');
89 Csl.deviceType = socType;
91 Program.sectMap[".fardata:benchmarking"] = "DDR3";
92 Program.sectMap[".text"] = "DDR3";
93 Program.sectMap[".dstBufSec"] = "L2SRAM";
94 Program.sectMap[".testData"] = "L2SRAM";