PRSDK-3279 Add big data IPC support for AM574x
authorSinthu Raja M <x0257345@ti.com>
Mon, 27 Nov 2017 19:33:35 +0000 (01:03 +0530)
committerPratap Reddy <x0257344@ti.com>
Wed, 29 Nov 2017 19:54:05 +0000 (01:24 +0530)
 Add support of Big Data IPC example for Am574X

Signed-off-by: Pratap Reddy <x0257344@ti.com>
host_bios/simple_buffer_example/host/idkAM574x/board.cfg.xs [new file with mode: 0644]
host_bios/simple_buffer_example/makefile
host_linux/simple_buffer_example/makefile

diff --git a/host_bios/simple_buffer_example/host/idkAM574x/board.cfg.xs b/host_bios/simple_buffer_example/host/idkAM574x/board.cfg.xs
new file mode 100644 (file)
index 0000000..2090178
--- /dev/null
@@ -0,0 +1,53 @@
+
+var socType = "am574x";
+
+/*use CSL package*/
+var Csl = xdc.loadPackage('ti.csl');
+Csl.Settings.deviceType = socType;
+
+/* Load the osal package -- required by board & interrupt example */
+var osType = "tirtos"
+var Osal = xdc.loadPackage('ti.osal');
+Osal.Settings.osType = osType;
+
+/* Load the I2C package  - required by board */
+var I2c = xdc.loadPackage('ti.drv.i2c');
+I2c.Settings.socType = socType;
+
+/* Load the uart package -- required by board */
+var Uart = xdc.loadPackage('ti.drv.uart');
+Uart.Settings.socType = socType;
+
+/* Load the Board package and set the board name */
+var Board = xdc.loadPackage('ti.board');
+Board.Settings.boardName = "idkAM574x";
+
+/* ================ Cache configuration ================ */
+var Cache  = xdc.useModule('ti.sysbios.family.arm.a15.Cache');
+
+/* Enable the cache */
+Cache.enableCache = true;
+
+/* ================ MMU configuration ================ */
+var Mmu = xdc.useModule('ti.sysbios.family.arm.a15.Mmu');
+
+/* Enable the MMU (Required for L1 data caching) */
+Mmu.enableMMU = true;
+
+var attrs = new Mmu.DescriptorAttrs();
+Mmu.initDescAttrsMeta(attrs);
+attrs.type = Mmu.DescriptorType_BLOCK;
+attrs.noExecute = true;
+attrs.accPerm = 0;       // R/W at PL1
+attrs.attrIndx = 3;       // Use MAIR0 Byte2
+Mmu.setMAIRMeta(3, 0x04);
+Mmu.setSecondLevelDescMeta(0x43200000, 0x43200000, attrs);
+
+/* Set IO Delay configuration areas as non-cache */
+attrs.attrIndx = 1;
+Mmu.setSecondLevelDescMeta(0x4844a000, 0x4844a000, attrs);
+Mmu.setSecondLevelDescMeta(0x4ae07d00, 0x4ae07d00, attrs);
+
+/* ================ Memory sections configuration ================ */
+Program.sectMap["BOARD_IO_DELAY_DATA"] = "OCMC_RAM1";
+Program.sectMap["BOARD_IO_DELAY_CODE"] = "OCMC_RAM1";
index 80bf6800162d73c6453a99d6309814ffe11c6d67..4414853cb3e8b95e7f7c001cc64f85fb4b42c1fd 100644 (file)
@@ -49,6 +49,19 @@ HOST_PLATFORM = ti.platforms.evmDRA7XX:host
 IPU_PLATFORM = ti.platforms.evmDRA7XX:ipu
 SERVER = "$(PROC_DSP_NAME)"
 BOARD_NAME = "idkAM572x"
+else ifeq ($(PLATFORM),AM574x)
+PROCLIST = host dsp
+#PROCLIST = host ipu
+PROC_HOST_NAME = "HOST"
+PROC_DSP_NAME = "DSP1"
+#PROC_IPU_NAME = "IPU1"
+PROC_NAME_LIST = "\\\"$(PROC_HOST_NAME)\\\", \\\"$(PROC_DSP_NAME)\\\""
+#PROC_NAME_LIST = "\\\"$(PROC_HOST_NAME)\\\", \\\"$(PROC_IPU_NAME)\\\""
+DSP_PLATFORM = ti.platforms.evmDRA7XX:dsp
+HOST_PLATFORM = ti.platforms.evmDRA7XX:host
+IPU_PLATFORM = ti.platforms.evmDRA7XX:ipu
+SERVER = "$(PROC_DSP_NAME)"
+BOARD_NAME = "idkAM574x"
 else ifeq ($(PLATFORM),TCI6638)
 PROCLIST = host dsp
 PROC_HOST_NAME = "HOST"
index f61992491481aa7e90fb66f020dc13caceae7c1e..b9405766d7cd3ea10643ae9943458b93e94c10b6 100644 (file)
@@ -1,5 +1,5 @@
 #
-#  Copyright (c) 2012-2015 Texas Instruments Incorporated - http://www.ti.com
+#  Copyright (c) 2012-2017 Texas Instruments Incorporated - http://www.ti.com
 #  All rights reserved.
 #
 #  Redistribution and use in source and binary forms, with or without
@@ -46,6 +46,16 @@ PROC_NAME_LIST = "\\\"$(PROC_HOST_NAME)\\\", \\\"IPU1\\\", \\\"IPU2\\\", \\\"DSP
 DSP_PLATFORM = ti.platforms.evmDRA7XX:dsp
 IPU_PLATFORM = ti.platforms.evmDRA7XX:ipu
 SERVER = "$(PROC_DSP_NAME)"
+else ifeq ($(PLATFORM),AM574x)
+PROCLIST = host dsp
+#PROCLIST = host ipu
+PROC_HOST_NAME = "HOST"
+PROC_DSP_NAME = "DSP1"
+#PROC_IPU_NAME = "IPU1"
+PROC_NAME_LIST = "\\\"$(PROC_HOST_NAME)\\\", \\\"IPU1\\\", \\\"IPU2\\\", \\\"DSP2\\\", \\\"DSP1\\\""
+DSP_PLATFORM = ti.platforms.evmDRA7XX:dsp
+IPU_PLATFORM = ti.platforms.evmDRA7XX:ipu
+SERVER = "$(PROC_DSP_NAME)"
 else ifeq ($(PLATFORM),TCI6638)
 PROCLIST = host dsp
 PROC_HOST_NAME = "HOST"