]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - ipc/ipcdev.git/blob - packages/ti/configs/omap54xx/IpuCore1.cfg
SDOCM00104194 Missing vayu package dependencies
[ipc/ipcdev.git] / packages / ti / configs / omap54xx / IpuCore1.cfg
1 /*
2  * Copyright (c) 2012-2013, Texas Instruments Incorporated
3  * All rights reserved.
4  *
5  * Redistribution and use in source and binary forms, with or without
6  * modification, are permitted provided that the following conditions
7  * are met:
8  *
9  * *  Redistributions of source code must retain the above copyright
10  *    notice, this list of conditions and the following disclaimer.
11  *
12  * *  Redistributions in binary form must reproduce the above copyright
13  *    notice, this list of conditions and the following disclaimer in the
14  *    documentation and/or other materials provided with the distribution.
15  *
16  * *  Neither the name of Texas Instruments Incorporated nor the names of
17  *    its contributors may be used to endorse or promote products derived
18  *    from this software without specific prior written permission.
19  *
20  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
21  * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
22  * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
23  * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
24  * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
25  * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
26  * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
27  * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
28  * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
29  * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
30  * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31  */
33 /* -------------------------------- CORE1 ----------------------------------*/
34 var MultiProc = xdc.useModule('ti.sdo.utils.MultiProc');
35 MultiProc.setConfig("CORE1", ["HOST", "CORE0", "CORE1", "DSP"]);
37 /* Required to run BIOS on AppM3 (core 1) */
38 var Core = xdc.useModule('ti.sysbios.family.arm.ducati.Core');
39 Core.id = 1;
41 /* ----------------------------- TICK ---------------------------------------*/
42 var Clock = xdc.useModule('ti.sysbios.knl.Clock');
43 Clock.tickSource = Clock.TickSource_USER;
44 /* Configure GPTimer4 as BIOS clock source */
45 Clock.timerId = 1;
47 var Timer = xdc.useModule('ti.sysbios.timers.dmtimer.Timer');
48 var timerParams = new Timer.Params();
49 timerParams.period = Clock.tickPeriod;
50 timerParams.periodType = Timer.PeriodType_MICROSECS;
51 /* Smart-idle wake-up-capable mode */
52 timerParams.tiocpCfg.idlemode = 0x3;
53 /* Wake-up generation for Overflow */
54 timerParams.twer.ovf_wup_ena = 0x1;
55 Timer.create(Clock.timerId, Clock.doTick, timerParams);
57 /* Modules used in Power Management */
58 xdc.loadPackage('ti.pm');
59 var Power = xdc.useModule('ti.sysbios.family.arm.ducati.omap4430.Power');
60 Power.loadSegment = "PM_DATA";
62 /* Idle functions - PM functions should be last */
63 var Idle = xdc.useModule('ti.sysbios.knl.Idle');
64 Idle.addFunc('&VirtQueue_cacheWb');    /* Function to flush unicache in idle */
65 Idle.addFunc('&ti_deh_Deh_idleBegin'); /* Watchdog detect idle function */
66 Idle.addFunc('&IpcPower_idle');        /* IpcPower_idle must be at the end */
68 /*
69  * These lines coerce BIOS into creating a unique interrupt vector table for
70  * each core. Core 0's interrupt vector table is placed at 0x400, Core 1's
71  * is placed at 0x800.
72  *
73  * Additionally, because both sections (.vecs AND .resetVecs) are placed at
74  * the same address, BIOS will NOT generate a vector table that gets placed
75  * at location 0.
76  *
77  * A common vector table that gets placed at address 0 is being inserted into
78  * the load image by the script that combines the two M3 programs into a
79  * single load image.
80  */
81 Program.sectMap[".resetVecs"].loadAddress = (Core.id + 1) * 0x400;
82 Program.sectMap[".vecs"].loadAddress      = (Core.id + 1) * 0x400;
84 Program.sectMap[".tracebuf"] = "TRACE_BUF";
85 Program.sectMap[".errorbuf"] = "EXC_DATA";
87 /*
88  * Add support for offloading algorithms.
89  * The section is placed at an unused address in the common segment.
90  */
91 Program.sectMap[".interm3offload"] = new Program.SectionSpec();
92 Program.sectMap[".interm3offload"].loadAddress = 0x2000;