3e39f0925a2a5e92339de4baba19604c7ad3178c
[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');
13 /* USE EDMA3 Sample App */
14 //xdc.loadPackage('ti.sdo.edma3.drv.sample');
16 /* MMU/Cache related configurations */
18 var Cache = xdc.useModule('ti.sysbios.family.arm.a8.Cache');
19 var Mmu = xdc.useModule('ti.sysbios.family.arm.a8.Mmu');
22 /* Enable the cache */
23 Cache.enableCache = true;
25 /* Enable the MMU (Required for L1 data caching) */
26 Mmu.enableMMU = true;
28 /* descriptor attribute structure */
29 var attrs =
30 {
31 type : Mmu.FirstLevelDesc_SECTION, // SECTION descriptor
32 bufferable : true, // bufferable
33 cacheable : true, // cacheable
34 imp : 1, // implementation defined
35 domain : 0, // domain between 0-15
36 accPerm : 3, // read/write permission
37 };
39 /* configure the L3 - peripheral memory range */
40 for (var i= 0x48000000; i < 0x48FFFFFF; i = i + 0x100000)
41 {
42 attrs.bufferable = false;
43 attrs.cacheable = false;
44 Mmu.setFirstLevelDescMeta(i, i, attrs);
45 }
47 /* configure the L4 - peripheral memory range */
48 for (var i= 0x4A000000; i < 0x4AFFFFFF; i = i + 0x100000)
49 {
50 attrs.bufferable = false;
51 attrs.cacheable = false;
52 Mmu.setFirstLevelDescMeta(i, i, attrs);
53 }
55 /* configure the EDMA - TPTC memory range */
56 for (var i= 0x49800000; i < 0x49BFFFFF; i = i + 0x100000)
57 {
58 attrs.bufferable = false;
59 attrs.cacheable = false;
60 Mmu.setFirstLevelDescMeta(i, i, attrs);
61 }
63 /* configure the EDMA - TPCC memory range */
64 for (var i= 0x49000000; i < 0x490FFFFF; i = i + 0x100000)
65 {
66 attrs.bufferable = false;
67 attrs.cacheable = false;
68 Mmu.setFirstLevelDescMeta(i, i, attrs);
69 }