]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - processor-sdk/big-data-ipc-examples.git/blob - host_bios/simple_buffer_example/host/idkAM571x/board.cfg.xs
idkAM571x: Add board config file for idkAM571x
[processor-sdk/big-data-ipc-examples.git] / host_bios / simple_buffer_example / host / idkAM571x / board.cfg.xs
2 var socType = "am571x";
4 /*use CSL package*/
5 var Csl = xdc.loadPackage('ti.csl');
6 Csl.Settings.deviceType = socType;
8 /* Load the osal package -- required by board & interrupt example */
9 var osType = "tirtos"
10 var Osal = xdc.loadPackage('ti.osal');
11 Osal.Settings.osType = osType;
13 /* Load the I2C package  - required by board */
14 var I2c = xdc.loadPackage('ti.drv.i2c');
15 I2c.Settings.socType = socType;
17 /* Load the uart package -- required by board */
18 var Uart = xdc.loadPackage('ti.drv.uart');
19 Uart.Settings.socType = socType;
21 /* Load the Board package and set the board name */
22 var Board = xdc.loadPackage('ti.board');
23 Board.Settings.boardName = "idkAM571x";
25 /* ================ Cache configuration ================ */
26 var Cache  = xdc.useModule('ti.sysbios.family.arm.a15.Cache');
28 /* Enable the cache */
29 Cache.enableCache = true;
31 /* ================ MMU configuration ================ */
32 var Mmu = xdc.useModule('ti.sysbios.family.arm.a15.Mmu');
34 /* Enable the MMU (Required for L1 data caching) */
35 Mmu.enableMMU = true;
37 var attrs = new Mmu.DescriptorAttrs();
38 Mmu.initDescAttrsMeta(attrs);
39 attrs.type = Mmu.DescriptorType_BLOCK;
40 attrs.noExecute = true;
41 attrs.accPerm = 0;       // R/W at PL1
42 attrs.attrIndx = 3;       // Use MAIR0 Byte2
43 Mmu.setMAIRMeta(3, 0x04);
44 Mmu.setSecondLevelDescMeta(0x43200000, 0x43200000, attrs);
46 /* Set IO Delay configuration areas as non-cache */
47 attrs.attrIndx = 1;
48 Mmu.setSecondLevelDescMeta(0x4844a000, 0x4844a000, attrs);
49 Mmu.setSecondLevelDescMeta(0x4ae07d00, 0x4ae07d00, attrs);
51 /* ================ Memory sections configuration ================ */
52 Program.sectMap["BOARD_IO_DELAY_DATA"] = "OCMC_RAM1";
53 Program.sectMap["BOARD_IO_DELAY_CODE"] = "OCMC_RAM1";