]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - keystone-rtos/edma3_lld.git/blob - examples/edma3_driver/evmTI814x_A8/rtsc_config/edma3_drv_bios6_ti814x_arm_st_sample.cfg
ff7cf60b55faa97f654e8070cee104c6f100cf96
[keystone-rtos/edma3_lld.git] / examples / edma3_driver / evmTI814x_A8 / rtsc_config / edma3_drv_bios6_ti814x_arm_st_sample.cfg
1 /*use modules*/
2 var Task = xdc.useModule ("ti.sysbios.knl.Task");
3 var BIOS      = xdc.useModule ("ti.sysbios.BIOS");
4 var Startup   = xdc.useModule ("xdc.runtime.Startup");
5 var System    = xdc.useModule ("xdc.runtime.System");
6 var Log       = xdc.useModule ("xdc.runtime.Log");
7 var Hwi = xdc.useModule('ti.sysbios.hal.Hwi');
8 var Semaphore = xdc.useModule('ti.sysbios.knl.Semaphore');
9 var Cache = xdc.useModule('ti.sysbios.hal.Cache');
10 var Error = xdc.useModule('xdc.runtime.Error');
11 var CompilerName = java.lang.System.getenv("COMPILER");
12 xdc.print("# !!! Compiler is [" + CompilerName + "] !!!" );
13 if(CompilerName == "LINARO_GCC")
14 {
15 var GnuSemihost = xdc.useModule('ti.sysbios.rts.gnu.SemiHostSupport');
16 }
17 /* USE EDMA3 Sample App */
18 //xdc.loadPackage('ti.sdo.edma3.drv.sample');
20 /* MMU/Cache related configurations                                           */
22 var Cache  = xdc.useModule('ti.sysbios.family.arm.a8.Cache');
23 var Mmu    = xdc.useModule('ti.sysbios.family.arm.a8.Mmu');
26 /* Enable the cache                                                           */
27 Cache.enableCache = true;
29 /* Enable the MMU (Required for L1 data caching)                              */
30 Mmu.enableMMU = true;
32 /* descriptor attribute structure                                             */
33 var attrs =
34 {
35     type       : Mmu.FirstLevelDesc_SECTION,  // SECTION descriptor
36     bufferable : true,                        // bufferable
37     cacheable  : true,                        // cacheable
38     imp        : 1,                           // implementation defined
39     domain     : 0,                           // domain between 0-15
40     accPerm    : 3,                           // read/write permission
41 };
43 /* configure the L3 - peripheral memory range                                 */
44 for (var i= 0x48000000; i < 0x48FFFFFF; i = i + 0x100000)
45 {
46     attrs.bufferable = false;
47     attrs.cacheable = false;
48     Mmu.setFirstLevelDescMeta(i, i, attrs);
49 }
51 /* configure the L4 - peripheral memory range                                 */
52 for (var i= 0x4A000000; i < 0x4AFFFFFF; i = i + 0x100000)
53 {
54     attrs.bufferable = false;
55     attrs.cacheable = false;
56     Mmu.setFirstLevelDescMeta(i, i, attrs);
57 }
59 /* configure the EDMA - TPTC memory range                                     */
60 for (var i= 0x49800000; i < 0x49BFFFFF; i = i + 0x100000)
61 {
62     attrs.bufferable = false;
63     attrs.cacheable = false;
64     Mmu.setFirstLevelDescMeta(i, i, attrs);
65 }
67 /* configure the EDMA - TPCC memory range                                     */
68 for (var i= 0x49000000; i < 0x490FFFFF; i = i + 0x100000)
69 {
70     attrs.bufferable = false;
71     attrs.cacheable = false;
72     Mmu.setFirstLevelDescMeta(i, i, attrs);
73 }
75 Program.sectMap[".plt"] = "DDR3_HOST";