]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - processor-sdk/pdk.git/log
processor-sdk/pdk.git
3 years agoboard: am64x: use main_uart0 instance for SBL or R5 application REL.CORESDK.06.02.05.03
Hao Zhang [Mon, 15 Jun 2020 21:39:01 +0000 (17:39 -0400)]
board: am64x: use main_uart0 instance for SBL or R5 application

Signed-off-by: Hao Zhang <hzhang@ti.com>
3 years agoPDK-6856: osal: am64x: Enable RTOS tests
Aravind Batni [Mon, 15 Jun 2020 18:55:47 +0000 (14:55 -0400)]
PDK-6856: osal: am64x: Enable RTOS tests

Signed-off-by: Aravind Batni <aravindbr@ti.com>
3 years agomailbox: perf_testapp: fix build warning
Angela Stegmaier [Mon, 15 Jun 2020 17:01:53 +0000 (12:01 -0500)]
mailbox: perf_testapp: fix build warning

Fix build warning for SYS/BIOS version of perf_testapp.

Signed-off-by: Angela Stegmaier <angelabaker@ti.com>
3 years agoUART: lib/test cleanup for TPR12
Eric Ruei [Thu, 11 Jun 2020 15:27:06 +0000 (11:27 -0400)]
UART: lib/test cleanup for TPR12

- Introduce 2ms delay when loopback is enabled.
- Use common MACRO UART_test_log for debugging log
- UART_test_profile_tx() was designed for TPR12 only
  Include it for TPR12 only until other UART implementations are
  enhanced to support UART stats

Signed-off-by: Eric Ruei <e-ruei1@ti.com>
3 years ago[PDK-6836] UDMA : Added support Mapped RX Flows in AM64x
Don Dominic [Fri, 12 Jun 2020 12:29:32 +0000 (17:59 +0530)]
[PDK-6836] UDMA : Added support Mapped RX Flows in AM64x

- New API's : <1> Udma_mappedFlowAlloc() and Udma_mappedFlowAttach for mapped flows
  * Allows only allocate / attach a single flow to a flowHandle
- Updates in Udma_freeFlow and Udma_detachFlow

Signed-off-by: Don Dominic <a0486429@ti.com>
3 years agoPDK-6476: Changed SDR ESM callback to pass Instance and Int.
Danny Jochelson [Tue, 9 Jun 2020 22:22:46 +0000 (17:22 -0500)]
PDK-6476: Changed SDR ESM callback to pass Instance and Int.

Changed the SDR_ESM_applicationCallbackFunction() to pass both
SDR_ESM_InstanceType and SDR_ESM_IntType in the callback so that
an application does not need to figure this out itself from the
interrupt number.
This will allow cleaner code in the application for the ESM event
handler that uses SDR API.

3 years agoPDK-6476: Updated SDR for multiple instances of ESM.
Danny Jochelson [Wed, 27 May 2020 16:30:03 +0000 (11:30 -0500)]
PDK-6476: Updated SDR for multiple instances of ESM.

Updated the SDR library and SDTF framework to allow initialization
of MCU, WKUP, and MAIN ESM instances.
Confirmed proper operation of esm_selftest and esm_inject test on
MCU, WKUP, and MAIN with these updates, and esm_apitest and
esm_negativetest also function correctly on J721E EVM.

3 years agoSITSW-225: Make copyvecs as a lib - patch 2 build fix
Sivaraj R [Mon, 15 Jun 2020 02:57:55 +0000 (08:27 +0530)]
SITSW-225: Make copyvecs as a lib - patch 2 build fix

Signed-off-by: Sivaraj R <sivaraj@ti.com>
3 years agoemac: v5: Fix j721e build errors
Misael Lopez Cruz [Mon, 15 Jun 2020 05:59:10 +0000 (00:59 -0500)]
emac: v5: Fix j721e build errors

Fix j721e build errors.

Signed-off-by: Misael Lopez Cruz <misael.lopez@ti.com>
3 years agoUDMA : Instance ID's Update
Don Dominic [Mon, 15 Jun 2020 05:50:47 +0000 (11:20 +0530)]
UDMA : Instance ID's Update

Signed-off-by: Don Dominic <a0486429@ti.com>
3 years agocplusplus build fix am64x mailbox
Prasad Konnur [Mon, 15 Jun 2020 06:23:50 +0000 (11:53 +0530)]
cplusplus build fix am64x mailbox

Signed-off-by: Prasad Konnur <prasadkonnur@ti.com>
3 years agoPRSDK-8371: board: LPDDR4: Update from Emif tool
Sam Nelson [Sat, 13 Jun 2020 14:02:04 +0000 (10:02 -0400)]
PRSDK-8371: board: LPDDR4: Update from Emif tool

Signed-off-by: Sam Nelson <sam.nelson@ti.com>
3 years agoPDK-6811: emac:emac_send API updates for switch use case REL.CORESDK.06.02.05.02
Tinku Mannan [Fri, 12 Jun 2020 20:26:34 +0000 (16:26 -0400)]
PDK-6811: emac:emac_send API updates for switch use case

 add driver support to allow user to specify 1 of 8 TX channels
 in PktChannel field of emac pkt descriptor for icssg switch use case,
 first 4 channels map to slice 0, second 4 channels map to slice 1
 of the icssg switch
 minor cleanup

Signed-off-by: Tinku Mannan <tmannan@ti.com>
3 years agoPDK-6827: board: ddr_thermal_test_app: Update to build baremetal and sysbios app
Sam Nelson [Thu, 11 Jun 2020 14:20:53 +0000 (10:20 -0400)]
PDK-6827: board: ddr_thermal_test_app: Update to build baremetal and sysbios app

Signed-off-by: Sam Nelson <sam.nelson@ti.com>
3 years agoPDK-6842: emac/nimu: Fix linking of test apps after copyvecs lib update
Tinku Mannan [Fri, 12 Jun 2020 17:58:50 +0000 (13:58 -0400)]
PDK-6842: emac/nimu: Fix linking of test apps after copyvecs lib update

3 years agoboard: PDK-5476: am64x: add a53 build support for MCSPI0 master example
Hao Zhang [Fri, 12 Jun 2020 22:46:40 +0000 (18:46 -0400)]
board: PDK-5476: am64x: add a53 build support for MCSPI0 master example

Signed-off-by: Hao Zhang <hzhang@ti.com>
3 years agoboard: PDK-5476: am64x: add MCSPI0 pinmux configuration
Hao Zhang [Fri, 12 Jun 2020 22:17:52 +0000 (18:17 -0400)]
board: PDK-5476: am64x: add MCSPI0 pinmux configuration

Signed-off-by: Hao Zhang <hzhang@ti.com>
3 years agoBUILD:OSAL: Cleaning up AM64x linker command file,fix for OSAL test
Mahesh Radhkrishnan [Fri, 12 Jun 2020 21:44:59 +0000 (17:44 -0400)]
BUILD:OSAL: Cleaning up AM64x linker command file,fix for OSAL test

3 years agoBOARD: Enabling Board_moduleClock() only for mpu & mcu cores (not m4f)
Mahesh Radhkrishnan [Fri, 12 Jun 2020 21:43:56 +0000 (17:43 -0400)]
BOARD: Enabling Board_moduleClock() only for mpu & mcu cores (not m4f)

3 years agoSBL:BUILD:Enable DDR support for AM64x
Mahesh Radhkrishnan [Fri, 12 Jun 2020 17:29:35 +0000 (13:29 -0400)]
SBL:BUILD:Enable DDR support for AM64x

3 years agopdk_tools_path: Revert back BIOS version
Sam Nelson [Fri, 12 Jun 2020 20:48:35 +0000 (16:48 -0400)]
pdk_tools_path: Revert back BIOS version

Unintentionally changed with previous commit. Reverting now

Signed-off-by: Sam Nelson <sam.nelson@ti.com>
3 years agouart: am64x: PDK-5394: enable the uart module clock configuration
Hao Zhang [Fri, 12 Jun 2020 16:04:48 +0000 (12:04 -0400)]
uart: am64x: PDK-5394: enable the uart module clock configuration

Signed-off-by: Hao Zhang <hzhang@ti.com>
3 years agomcspi: PDK-5476: am64x: add loopback and dma support for mcspi driver REL.CORESDK.06.02.05.01
Hao Zhang [Fri, 12 Jun 2020 14:07:06 +0000 (10:07 -0400)]
mcspi: PDK-5476: am64x: add loopback and dma support for mcspi driver

Signed-off-by: Hao Zhang <hzhang@ti.com>
3 years agoprsdk-8603: move TM configuration to F/W
Vitaly Andrianov [Thu, 11 Jun 2020 13:12:04 +0000 (09:12 -0400)]
prsdk-8603: move TM configuration to F/W

We don't need to configure TM in the driver. It is doen in the F/W

Signed-off-by: Vitaly Andrianov <vitalya@ti.com>
3 years agoprsdk-8603: introduce BD initialization and push to queue function
Vitaly Andrianov [Sat, 30 May 2020 01:01:45 +0000 (21:01 -0400)]
prsdk-8603: introduce BD initialization and push to queue function

Signed-off-by: Vitaly Andrianov <vitalya@ti.com>
3 years agoprsdk-8603: emac: introduce static hwqa_reset() function
Vitaly Andrianov [Fri, 29 May 2020 12:00:18 +0000 (08:00 -0400)]
prsdk-8603: emac: introduce static hwqa_reset() function

We do have already such function in the v5/emac_hwq.c but I was told that
f/w config code cannot see/use functions from it.

Signed-off-by: Vitaly Andrianov <vitalya@ti.com>
3 years agodrv/edma/edma_memcpy_test: ensure cache alignment
Eric Ruei [Thu, 11 Jun 2020 22:21:33 +0000 (18:21 -0400)]
drv/edma/edma_memcpy_test: ensure cache alignment

Signed-off-by: Eric Ruei <e-ruei1@ti.com>
3 years agoPDK-6824: emac: fix compilation of cplusplus build
Tinku Mannan [Thu, 11 Jun 2020 15:45:59 +0000 (11:45 -0400)]
PDK-6824: emac: fix compilation of cplusplus build

3 years agoPDK-6826: sdr: Fix c++ build issues
Sam Nelson [Thu, 11 Jun 2020 16:22:25 +0000 (12:22 -0400)]
PDK-6826: sdr: Fix c++ build issues

Signed-off-by: Sam Nelson <sam.nelson@ti.com>
3 years agoPDK-6681: SDR ECC Periodic Test fix
Danny Jochelson [Thu, 11 Jun 2020 20:09:10 +0000 (15:09 -0500)]
PDK-6681: SDR ECC Periodic Test fix

Addressed failure in SDR_ECC_pollErrorEvent() where other bits
in PMOVSR register are incorrectly influencing reading just the
state of Counter 1 overflow flag.
Added back in SDR_ECC_selfTest in periodic tests for J721E, and
confirmed proper functionality.
Also, updated comments in assembly code to correctly say Counter 1
instead of Counter 0.

3 years agoam64x_svb: Update to get clock frequency for each core through Sciclient
Sam Nelson [Thu, 11 Jun 2020 12:47:35 +0000 (08:47 -0400)]
am64x_svb: Update to get clock frequency for each core through Sciclient

Signed-off-by: Sam Nelson <sam.nelson@ti.com>
3 years agoam64x_evm: Update to use Sciclient API to get Clock frequency
Sam Nelson [Thu, 11 Jun 2020 12:46:56 +0000 (08:46 -0400)]
am64x_evm: Update to use Sciclient API to get Clock frequency

Signed-off-by: Sam Nelson <sam.nelson@ti.com>
3 years agoam64x_svb: Add support for am64x_svb in board
Sam Nelson [Wed, 10 Jun 2020 17:45:53 +0000 (13:45 -0400)]
am64x_svb: Add support for am64x_svb in board

Signed-off-by: Sam Nelson <sam.nelson@ti.com>
3 years agoboard: am64x_svb: Sync up with am64x_evm
Sam Nelson [Sun, 7 Jun 2020 12:25:04 +0000 (08:25 -0400)]
board: am64x_svb: Sync up with am64x_evm

Signed-off-by: Sam Nelson <sam.nelson@ti.com>
3 years agoam64x_evm: Minor cleanup
Sam Nelson [Thu, 11 Jun 2020 04:33:02 +0000 (00:33 -0400)]
am64x_evm: Minor cleanup

Handle SOC DDR start address separately

Signed-off-by: Sam Nelson <sam.nelson@ti.com>
3 years agoam64x_evm: Board update to enable power up of modules
Sam Nelson [Thu, 11 Jun 2020 04:30:19 +0000 (00:30 -0400)]
am64x_evm: Board update to enable power up of modules

Signed-off-by: Sam Nelson <sam.nelson@ti.com>
3 years agoboard: am64x: Update memory used for simulation
Sam Nelson [Sun, 7 Jun 2020 12:24:35 +0000 (08:24 -0400)]
board: am64x: Update memory used for simulation

Simulation takes long time with full memory.
Shortening it for quick test of functionality

Signed-off-by: Sam Nelson <sam.nelson@ti.com>
3 years agoUDMA] Build Fix for udma
Tinku Mannan [Thu, 11 Jun 2020 16:05:50 +0000 (12:05 -0400)]
UDMA] Build Fix for udma

 init ringNum to UDMA_RING_INVALID in Udma_chAllocResource to avoid
 it being used uninitialized

Signed-off-by: Tinku Mannan <tmannan@ti.com>
3 years agoboard: am64x: set the default uart instance for mpu core
Hao Zhang [Thu, 11 Jun 2020 15:51:47 +0000 (11:51 -0400)]
board: am64x: set the default uart instance for mpu core

Signed-off-by: Hao Zhang <hzhang@ti.com>
3 years agoMB LLD: Add missing doxygen comments in osal
Angela Stegmaier [Thu, 11 Jun 2020 15:03:41 +0000 (10:03 -0500)]
MB LLD: Add missing doxygen comments in osal

Add the missing doxygen comment details in the mailbox_osal.h
file.

Signed-off-by: Angela Stegmaier <angelabaker@ti.com>
3 years ago[PDK-6814] UDMA: Skip rmFree for default mapped rings
Don Dominic [Thu, 11 Jun 2020 13:16:22 +0000 (18:46 +0530)]
[PDK-6814] UDMA: Skip rmFree for default mapped rings

Signed-off-by: Don Dominic <a0486429@ti.com>
3 years agoMerge pull request #676 in PROCESSOR-SDK/pdk from mb_lld_am64x_review to master
Sivaraj R [Thu, 11 Jun 2020 13:51:20 +0000 (08:51 -0500)]
Merge pull request #676 in PROCESSOR-SDK/pdk from mb_lld_am64x_review to master

Squashed commit of the following:

commit 0f9133f56b7943d0ebae2d0548091ef53d78e4e4
Author: Prasad Konnur <prasadkonnur@ti.com>
Date:   Tue Jun 9 15:53:46 2020 +0530

    fixed driver issues

     - tested on tpr12

Signed-off-by: Prasad Konnur <prasadkonnur@ti.com>
commit 559213017bb829cb0d644c96243f97fc0bb1b8e6
Author: Angela Stegmaier <angelabaker@ti.com>
Date:   Thu May 21 16:48:42 2020 -0500

    mailbox: create rtos and baremetal versions of the perf example

    Create a separate mailbox_baremetal that can be used when
    creating a baremetal application. The mailbox_baremetal lib
    can be passed a separate set of flags that the mailbox
    driver can use.

Signed-off-by: Angela Stegmaier <angelabaker@ti.com>
commit 118383fd5c4dc030657ebc3e648c696ca79d9ece
Author: Angela Stegmaier <angelabaker@ti.com>
Date:   Wed May 20 14:59:02 2020 -0500

    mailbox: add performance test

    The performance test exercises the "fast" path and reports
    the performance data.

Signed-off-by: Angela Stegmaier <angelabaker@ti.com>
commit 8fbdd3efca469446b8fe65e48339046bfe7083ac
Author: Angela Stegmaier <angelabaker@ti.com>
Date:   Wed May 20 17:10:46 2020 -0500

    mailbox: Add AM64x support

    Add the support for AM64x for Mailbox LLD

Signed-off-by: Angela Stegmaier <angelabaker@ti.com>
commit d05c61767d8427c06ecbfc6c4d1484c1f7c75711
Author: Angela Stegmaier <angelabaker@ti.com>
Date:   Tue May 19 16:47:36 2020 -0500

    mailbox: Add Osal Params that can be User-provided

    Add the ability for the user to provide Osal Params, and
    create a default implementation that is used if user
    does not provide their own params.

Signed-off-by: Angela Stegmaier <angelabaker@ti.com>
commit 0ecd5975f010a0098d68ae2275e5c1f9c6a62106
Author: Angela Stegmaier <angelabaker@ti.com>
Date:   Mon May 18 16:14:05 2020 -0500

    mailbox: move allocation of driver handle to be soc-specific

    Driver allocation is currently using MemoryP_ osal module
    to allocate, and this is not supported in baremetal. Other
    soc may support both baremetal and rtos or have restrictions
    on whether the driver can allocate memory. So move
    this driver assignment to be soc-specific.

Signed-off-by: Angela Stegmaier <angelabaker@ti.com>
commit 4839979f879d8c53347cfee76cdf9db3ce46940a
Author: Angela Stegmaier <angelabaker@ti.com>
Date:   Mon May 18 12:09:20 2020 -0500

    mailbox: Move HwCfg definition to soc-specific files

    HwCfg is soc-specific and is only used in the soc-specific
    implementation. Therefore, it can be moved to the soc-specific
    files. This is needed in order to be able to scale for
    other soc.

Signed-off-by: Angela Stegmaier <angelabaker@ti.com>
commit 1068e019a03cf8bc1704fcc607d83f4f4dcc90d9
Author: Angela Stegmaier <angelabaker@ti.com>
Date:   Mon May 18 11:48:12 2020 -0500

    mailbox: minor cleanup of typos

Signed-off-by: Angela Stegmaier <angelabaker@ti.com>
commit cd4b4f2b3735349ec1cf07ee3986d02aa9f72063
Author: Angela Stegmaier <angelabaker@ti.com>
Date:   Mon May 18 11:37:34 2020 -0500

    mailbox: Add soc-specific APIs to validate modes and data transfer types

    Support for these can vary by soc. Let the validation happen
    in the soc-specific implementation.

Signed-off-by: Angela Stegmaier <angelabaker@ti.com>
commit f07d7a96b9e9fac26bf23bd1831f88d602ad7539
Author: Angela Stegmaier <angelabaker@ti.com>
Date:   Mon May 18 11:11:05 2020 -0500

    mailbox: Move ISR registration to soc-specific file

    ISR registration can be different for different soc which
    has different mailbox IP.
    Move the registration to the soc-specific file in order
    to scale for support of other soc.

Signed-off-by: Angela Stegmaier <angelabaker@ti.com>
commit 16b3de2581a4d4e7ff8c0a789cd7d8940dd80d7e
Author: Angela Stegmaier <angelabaker@ti.com>
Date:   Mon May 18 10:31:49 2020 -0500

    mailbox: Move read/write to soc-specific files

    Implementations for read/write are soc-specific, specific
    to the mailbox hardware. Move these implementations to
    the soc-specific files.

Signed-off-by: Angela Stegmaier <angelabaker@ti.com>
3 years ago[PDK-6814] UDMA: Support default ring allocation for mapped channels in AM64x
Don Dominic [Thu, 11 Jun 2020 09:42:38 +0000 (15:12 +0530)]
[PDK-6814] UDMA: Support default ring allocation for mapped channels in AM64x

- During chOpen if ringMem is provided,  the default ring for the channel will be allocated.
- Explicit call of ringAlloc, with UDMA_RING_ANY will allocate from the free rings in the mapped pool for that channel.

Signed-off-by: Don Dominic <a0486429@ti.com>
3 years ago[PDK-6812] Update the default flow start for mapped channel in AM64x
Don Dominic [Thu, 11 Jun 2020 08:37:48 +0000 (14:07 +0530)]
[PDK-6812] Update the default flow start for mapped channel in AM64x

- Assign the allocated default ringNum(without offset) as defaultFlow->flowStart in case of Mapped Channels in AM64x.
- This fixes PDK-6812

Signed-off-by: Don Dominic <a0486429@ti.com>
3 years ago[PDK-6813] UDMA: Support for errorHandling, sopOffset in default flow config
Don Dominic [Thu, 11 Jun 2020 07:53:43 +0000 (13:23 +0530)]
[PDK-6813] UDMA: Support for errorHandling, sopOffset in default flow config

-Added params to set errorHandling, sopOffset in Udma_ChRxPrms for default flow config
-Fixed Review Comments in previos commit

Signed-off-by: Don Dominic <a0486429@ti.com>
3 years agoPDK-6813: support for epib, psinfo flow config
Aravind Batni [Thu, 11 Jun 2020 02:42:15 +0000 (22:42 -0400)]
PDK-6813: support for epib, psinfo flow config

Signed-off-by: Aravind Batni <aravindbr@ti.com>
3 years ago[hostemu] Add -fPIC option to fix linking error in TIDL
Anshu Jain [Thu, 11 Jun 2020 07:47:45 +0000 (13:17 +0530)]
[hostemu] Add -fPIC option to fix linking error in TIDL

Machine used for building host emulation libraries is an
Ubuntu 16.04 machine, because of this there are linking
errors when we linking with TIDL built on ubuntu 18.04.
To avoid this add -fPIC option

Signed-off-by: Anshu Jain <anshu.jain@ti.com>
3 years agoSITSW-225: Make copyvecs as a library that the application can link to
Sivaraj R [Wed, 10 Jun 2020 08:26:45 +0000 (13:56 +0530)]
SITSW-225: Make copyvecs as a library that the application can link to

Signed-off-by: Sivaraj R <sivaraj@ti.com>
3 years agopdk build: update sysbios to 6_82_02_20_eng
Hao Zhang [Wed, 10 Jun 2020 18:16:39 +0000 (14:16 -0400)]
pdk build: update sysbios to 6_82_02_20_eng

This will fix the sysbios application interrupt issue on A53

Signed-off-by: Hao Zhang <hzhang@ti.com>
3 years agoOSAL: address KW issues for TPR12
Eric Ruei [Fri, 5 Jun 2020 16:33:58 +0000 (12:33 -0400)]
OSAL: address KW issues for TPR12

Signed-off-by: Eric Ruei <e-ruei1@ti.com>
3 years agosciclient: am64x: add zebu sysfw binary to the package
Hao Zhang [Wed, 10 Jun 2020 22:51:14 +0000 (18:51 -0400)]
sciclient: am64x: add zebu sysfw binary to the package

Signed-off-by: Hao Zhang <hzhang@ti.com>
3 years ago[PDK-6802] UDMA : Fix Build Issue introduced by commit abd273d69
Don Dominic [Thu, 11 Jun 2020 02:35:57 +0000 (08:05 +0530)]
[PDK-6802] UDMA : Fix Build Issue introduced by commit abd273d69

Signed-off-by: Don Dominic <a0486429@ti.com>
3 years agospi: update makefile for qspi flash test app
Hongmei Gou [Thu, 4 Jun 2020 16:25:01 +0000 (12:25 -0400)]
spi: update makefile for qspi flash test app

* EXTERNAL_LNKCMD_FILE is removed as the default linker command file is used

Signed-off-by: Hongmei Gou <hgou@ti.com>
3 years ago[PDK-6802] UDMA : Updates in memcpy and chaining testapp
Don Dominic [Wed, 10 Jun 2020 10:53:45 +0000 (16:23 +0530)]
[PDK-6802] UDMA : Updates in memcpy and chaining testapp

Signed-off-by: Don Dominic <a0486429@ti.com>
3 years ago[PDK-6802] Updates in chaining test for AM64x
Don Dominic [Mon, 8 Jun 2020 17:33:48 +0000 (23:03 +0530)]
[PDK-6802] Updates in chaining test for AM64x

-Minor update in ch Break Chanining src_id

Signed-off-by: Don Dominic <a0486429@ti.com>
3 years ago[PDK-6310] [PDK-6308] Implemented.
Amit Makani [Mon, 25 May 2020 11:11:31 +0000 (16:41 +0530)]
[PDK-6310] [PDK-6308] Implemented.
Implemented the RPMSG error checking at negative testing.
Implemented the memory error checking for Vring.

Signed-off-by: Amit Makani <amit.makani@ti.com>
3 years agoFix for led diag build failure on AM65x
M V Pratap Reddy [Tue, 9 Jun 2020 09:12:57 +0000 (14:42 +0530)]
Fix for led diag build failure on AM65x

3 years agopdk/build: add support of the auxiliary linker command file
Eric Ruei [Wed, 3 Jun 2020 19:16:05 +0000 (15:16 -0400)]
pdk/build: add support of the auxiliary linker command file

This patch adds the make support of optional local auxiliary linker command
file. The current make infrastructure already supports the local linker
command file which will replace the default one. In most of cases, the
applications do not want to replace the entire linker command file, instead
they would like to add some local modifications and/or additions to the
master linker command file.

To replace the default linker command file:
define EXTERNAL_LNKCMD_FILE_LOCAL to point to the local linker command file

To add auxiliary linker command file:
define APPEND_LNKCMD_FILE to point to the local aux. linker command file

Please feel free to recommend better variable names and suggest better
solutions to achieve the same goal.

Signed-off-by: Eric Ruei <e-ruei1@ti.com>
3 years agosciclient: Resolve critical KW errors
Justin Sobota [Tue, 2 Jun 2020 19:13:25 +0000 (15:13 -0400)]
sciclient: Resolve critical KW errors

Fixes the three current critical KW errors in the
sciclient interrupt routing logic.

Signed-off-by: Justin Sobota <jsobota@ti.com>
3 years agoPDK-6653: emac: remove reference to un-suported test IOCTL
Tinku Mannan [Fri, 29 May 2020 14:46:14 +0000 (10:46 -0400)]
PDK-6653: emac: remove reference to un-suported test IOCTL

3 years agoPDK-6408: Unity: Bypass Unity buffer logic to printout unity results
Omkar Bolla [Thu, 4 Jun 2020 17:28:18 +0000 (22:58 +0530)]
PDK-6408: Unity: Bypass Unity buffer logic to printout unity results

Signed-off-by: Omkar Bolla <omkar.bolla@pathpartnertech.com>
3 years agoPDK-6734: emac: am65xx updates to suport wire clk feature in TXCFG
Tinku Mannan [Tue, 2 Jun 2020 21:41:24 +0000 (17:41 -0400)]
PDK-6734: emac: am65xx updates to suport wire clk feature in TXCFG

 fix internal routine to get icss tx ipg base address
 update tx ipg settings for PG2.0 for wire_clk in TX_CFG
 move common utilities to emac_utils
 cleanup

Signed-off-by: Tinku Mannan <tmannan@ti.com>
3 years agoPDK-5013: Board: Updated TPR12 EVM diagnostic tests
M V Pratap Reddy [Sun, 31 May 2020 21:09:54 +0000 (02:39 +0530)]
PDK-5013: Board: Updated TPR12 EVM diagnostic tests

 - Enabled build support for TPR12 diag
 - Added diag common configurations
 - Added LED diagnostic test support for TPR12 EVM

3 years agoPDK-5038: Board: Updated TPR12 EVM board library
M V Pratap Reddy [Sun, 31 May 2020 21:08:14 +0000 (02:38 +0530)]
PDK-5038: Board: Updated TPR12 EVM board library

 - Updated board configurations
 - Added board utils

3 years ago[PDK-5619][UART] Update in check for Cache operation related to AM64x
Don Dominic [Fri, 5 Jun 2020 14:37:21 +0000 (20:07 +0530)]
[PDK-5619][UART] Update in check for Cache operation related to AM64x

- Added new API UART_dmaIsCacheCoherent

Signed-off-by: Don Dominic <a0486429@ti.com>
3 years ago[PDK-5619][UDMA] Update in isCacheCoherent API for MPU(A53) in AM64x
Don Dominic [Fri, 5 Jun 2020 14:30:42 +0000 (20:00 +0530)]
[PDK-5619][UDMA] Update in isCacheCoherent API for MPU(A53) in AM64x

Signed-off-by: Don Dominic <a0486429@ti.com>
3 years ago[PDK-5619][UDMA] Temporary update in PKTDMA Resource Allocation
Don Dominic [Thu, 4 Jun 2020 11:46:48 +0000 (17:16 +0530)]
[PDK-5619][UDMA] Temporary update in PKTDMA Resource Allocation

-Related to VINT changes in sciclient_boardCfg_rm
-To enable Unmapped channels for MPU

Signed-off-by: Don Dominic <a0486429@ti.com>
3 years agoSciclient : Rebuild BoardCfg and ccsinit
Don Dominic [Thu, 4 Jun 2020 11:44:19 +0000 (17:14 +0530)]
Sciclient : Rebuild BoardCfg and ccsinit

-to reflect updates in boardcfg_rm in commit:
https://bitbucket.itg.ti.com/projects/PROCESSOR-SDK/repos/pdk/commits/3379face9d128962b95fc2d8ec65648740d8f0c1 and
https://bitbucket.itg.ti.com/projects/PROCESSOR-SDK/repos/pdk/commits/786914902ad6c2f0f97fbb446a2fd5908ef5de8c

Signed-off-by: Don Dominic <a0486429@ti.com>
3 years agoPDK-6798: ICSS EMAC Firmware build fails in Windows REL.CORESDK.07.00.00.43 REL.CORESDK.07.00.00.44 REL.CORESDK.07.00.00.45 REL.CORESDK.07.00.00.46
Sivaraj R [Mon, 8 Jun 2020 08:44:06 +0000 (14:14 +0530)]
PDK-6798: ICSS EMAC Firmware build fails in Windows

- This was introduced in earler commit c939a7e1e
done after 6.2 release to support jacinto pdk folder name

Signed-off-by: Sivaraj R <sivaraj@ti.com>
3 years agoPDK-6789: Disable internal L2 ram testcase for C7x REL.CORESDK.07.00.00.38 REL.CORESDK.07.00.00.39 REL.CORESDK.07.00.00.40 REL.CORESDK.07.00.00.41 REL.CORESDK.07.00.00.42
Sivaraj R [Fri, 5 Jun 2020 10:04:45 +0000 (15:34 +0530)]
PDK-6789: Disable internal L2 ram testcase for C7x

- We can debug and enable the testcase when there is a need
- With this the C7x unit runs to completion

Signed-off-by: Sivaraj R <sivaraj@ti.com>
3 years agoPDK-6669: Use HS KEY for signing - Patch 2 REL.CORESDK.07.00.00.37
Sivaraj R [Fri, 5 Jun 2020 04:33:56 +0000 (10:03 +0530)]
PDK-6669: Use HS KEY for signing - Patch 2

- SCICLIENT apps need SBL CERT KEY variable to be set as
the SBL_IMAGEGEN flag is set to yes

Signed-off-by: Sivaraj R <sivaraj@ti.com>
3 years agoPDK-6737:SBL,BUILD: Setting M4F_0 entry point to 0x0 in SBL
Mahesh Radhkrishnan [Thu, 4 Jun 2020 19:15:57 +0000 (15:15 -0400)]
PDK-6737:SBL,BUILD: Setting M4F_0 entry point to 0x0 in SBL

3 years agoPDK-6775: Docs update REL.CORESDK.07.00.00.36
Tinku Mannan [Thu, 4 Jun 2020 12:27:32 +0000 (08:27 -0400)]
PDK-6775: Docs update

3 years agoPDK-6738: IPC: echo_testb: Copy vecs for ipc_echo_testb sysbios example REL.CORESDK.07.00.00.35
Angela Stegmaier [Wed, 3 Jun 2020 00:18:52 +0000 (19:18 -0500)]
PDK-6738: IPC: echo_testb: Copy vecs for ipc_echo_testb sysbios example

The latest sysbios expects the vecs to be present at address 0x0.
When the ipc_echo_testb starts from BTCM from SPL branch-only mode
for mcu1_0, the vecs at 0x0 are not matching the sysbios vecs.

This patch adds a function to the sysbios reset functions to
copy the vecs to 0x0 during bios startup for the btcm image for
mcu1_0. With this, the vecs are as expected for sysbios and the image
is able to run sucessfully and finish the echo test, even when
run in branch-only mode.

Signed-off-by: Angela Stegmaier <angelabaker@ti.com>
3 years agoPDK-6669: Use HS KEY for signing
Sivaraj R [Thu, 4 Jun 2020 04:52:24 +0000 (10:22 +0530)]
PDK-6669: Use HS KEY for signing

- HS KEY will work for both GP and HS device
- So instead of creating two app image - one with
GP KEY and HS KEY, we will use one app image for both
- For GP device customer can use the unsigned app image
in case boot time is a requirement

Signed-off-by: Sivaraj R <sivaraj@ti.com>
3 years agoPDK-6760: SBL: Fix image authentication for small images
Jonathan Bergsagel [Wed, 3 Jun 2020 19:17:56 +0000 (14:17 -0500)]
PDK-6760: SBL: Fix image authentication for small images

Fixes a pointer issue with X.509 certificate checking
that was calculating the wrong image size for signed
appimage files of a small size.

Signed-off-by: Jonathan Bergsagel <jbergsagel@ti.com>
3 years agouart: PDK-6740: fix UART unit test bug
Hao Zhang [Wed, 3 Jun 2020 19:30:37 +0000 (15:30 -0400)]
uart: PDK-6740: fix UART unit test bug

1. fix uart read/write API test bugs
2. enable loopback test for both baremetal and RTOS

Signed-off-by: Hao Zhang <hzhang@ti.com>
3 years ago[DSS TEST][PDK-6702]DSS Colorbar test is failing on J7 EVM REL.CORESDK.07.00.00.34
Vivek Dhande [Wed, 3 Jun 2020 13:38:15 +0000 (19:08 +0530)]
[DSS TEST][PDK-6702]DSS Colorbar test is failing on J7 EVM

Signed-off-by: Vivek Dhande <a0132295@ti.com>
3 years agoETHFW-1582: timesync: Fix Ethfw stuck in nRT task REL.CORESDK.07.00.00.33
Santhana Bharathi N [Wed, 3 Jun 2020 09:09:37 +0000 (14:39 +0530)]
ETHFW-1582: timesync: Fix Ethfw stuck in nRT task

- nRT task becomes while(1) when the configured port
  is down by the time timesync is enabled.
- Added sleep in nRT task to enable other tasks to
  be scheduled and also reduced the nRT task's priority
  to 2 from 8

Signed-off-by: Santhana Bharathi N <santa@ti.com>
3 years agoi2c: PDK-6672: fix i2c eeprom bios application bug REL.CORESDK.07.00.00.29 REL.CORESDK.07.00.00.30 REL.CORESDK.07.00.00.31 REL.CORESDK.07.00.00.32
Hao Zhang [Tue, 2 Jun 2020 20:16:32 +0000 (16:16 -0400)]
i2c: PDK-6672: fix i2c eeprom bios application bug

Signed-off-by: Hao Zhang <hzhang@ti.com>
3 years agoSBL: Update fix for MCU OCM RAM region for all SoC.
Jonathan Bergsagel [Tue, 2 Jun 2020 17:12:13 +0000 (12:12 -0500)]
SBL: Update fix for MCU OCM RAM region for all SoC.

Adds the max possible MCU OCM RAM memory in this R5 MPU
region, to cover all possible KS3 SoCs with MCU RAM.
Doesn't need to be SoC-specific here.

Signed-off-by: Jonathan Bergsagel <jbergsagel@ti.com>
3 years agoIPC: echo test: Fix stack overflow in c7x echo test
Angela Stegmaier [Tue, 2 Jun 2020 19:47:11 +0000 (14:47 -0500)]
IPC: echo test: Fix stack overflow in c7x echo test

The ipc_echo_test will sometimes throw stack overflow
error from the app task. This patch increases the size
of the task stack to avoid the error.

Signed-off-by: Angela Stegmaier <angelabaker@ti.com>
3 years agoPDK-6623:MCASP: Fix for device loopback example on c66xdsp_2
Mahesh Radhkrishnan [Tue, 2 Jun 2020 19:48:07 +0000 (15:48 -0400)]
PDK-6623:MCASP: Fix for device loopback example on c66xdsp_2

3 years agoapiguide:timeSync: Fix API guide build warnings REL.CORESDK.06.02.04.03 REL.CORESDK.06.02.04.04
Santhana Bharathi N [Tue, 2 Jun 2020 12:35:48 +0000 (18:05 +0530)]
apiguide:timeSync: Fix API guide build warnings

- Fix TimeSync API guide doxygen build warnings

Signed-off-by: Santhana Bharathi N <santa@ti.com>
3 years agoOSAL/test: add DebugP Log test for TPR12 REL.CORESDK.06.02.04.02
Eric Ruei [Mon, 1 Jun 2020 23:59:09 +0000 (19:59 -0400)]
OSAL/test: add DebugP Log test for TPR12

- Enable the test for TPR12 only because BIOS-based trace is not required
  for other SoCs.
- Although this test is applicable for all SoCs, the local BIOS config file
   is required to enable the XDC/BIOS log operation.

Signed-off-by: Eric Ruei <e-ruei1@ti.com>
3 years agoSBL: Fix J7 MCU OCM RAM region for SBL CUST builds
Jonathan Bergsagel [Tue, 2 Jun 2020 07:34:55 +0000 (02:34 -0500)]
SBL: Fix J7 MCU OCM RAM region for SBL CUST builds

SBL CUST build on J7 family devices must support MCU-only
mode where only MCU domain resources are used for initial
bringup, even for signed applications.  Full MCU OCM RAM
space must be utilized for app image verification in this
case.

Signed-off-by: Jonathan Bergsagel <jbergsagel@ti.com>
3 years agoFix package issue for uniflash due to HS changes REL.CORESDK.07.00.00.28
Sivaraj R [Tue, 2 Jun 2020 06:32:03 +0000 (12:02 +0530)]
Fix package issue for uniflash due to HS changes

- Uniflash target now gets build for HS and non-HS
from different dir
- So don't use relative patch for SRC and INC DIR
- Also fixed package variables and skip for HS build

Signed-off-by: Sivaraj R <sivaraj@ti.com>
3 years agoPRSDK-7753: HS build support REL.CORESDK.07.00.00.27
Sivaraj R [Tue, 2 Jun 2020 04:41:48 +0000 (10:11 +0530)]
PRSDK-7753: HS build support

- The APPNAME or app -C directory (_PATH variable) should be
unique as the complier creates lto_$APPNAME optimization
file in the directory in which -C is called
- Because of this multiple lto_ files with same name can be
created if app name and app path are same

Signed-off-by: Sivaraj R <sivaraj@ti.com>
3 years agoPRSDK-7753: HS build support REL.CORESDK.07.00.00.25 REL.CORESDK.07.00.00.26
Sivaraj R [Mon, 1 Jun 2020 12:55:40 +0000 (18:25 +0530)]
PRSDK-7753: HS build support

- Added SCICLIENT API to return the default board cfg
address and size
- This way the caller need not include the private header file
which has the size macros based on BUILD_HS flag
- This way the caller need not be built special way using the
BUILD_HS macro

Signed-off-by: Sivaraj R <sivaraj@ti.com>
3 years agospi: qspi-flash-test: use CSL address translation function for TPR12
Hongmei Gou [Mon, 1 Jun 2020 23:37:35 +0000 (19:37 -0400)]
spi: qspi-flash-test: use CSL address translation function for TPR12

Signed-off-by: Hongmei Gou <hgou@ti.com>
3 years agosciclient: am64: Fix errors in gSciclientMap
Justin Sobota [Tue, 2 Jun 2020 00:47:13 +0000 (20:47 -0400)]
sciclient: am64: Fix errors in gSciclientMap

The host mapping array, gSciclientMap had incorrect
entries defined.  This patch removes all the incorrect
entries and adds a TBD M4 secure entry to match
sciclient_fmwMsgParams.h

Fixes: PDK-6724
Signed-off-by: Justin Sobota <jsobota@ti.com>
3 years agoRevert "PDK-6624: WORKAROUND for SBL OSPI Boot instability on J721E-HS"
Jonathan Bergsagel [Mon, 1 Jun 2020 23:32:26 +0000 (18:32 -0500)]
Revert "PDK-6624: WORKAROUND for SBL OSPI Boot instability on J721E-HS"

This reverts commit 2c2cca942ff1c3f29b40dd23797fee80a7f3f83e.

Signed-off-by: Jonathan Bergsagel <jbergsagel@ti.com>
3 years agoPRSDK-7492: Board: Fix for Uniflash host failure on Windows REL.CORESDK.07.00.00.24
M V Pratap Reddy [Mon, 1 Jun 2020 10:31:06 +0000 (16:01 +0530)]
PRSDK-7492: Board: Fix for Uniflash host failure on Windows

 - Uniflash host utility on Windows fails when executed after using
   the COM port with TeraTerm. Serial cable disconnect and reconnect
   is needed to avoid this failure.

   Failure is caused by COM port timeout settings done by TeraTerm.
   Uniflash is not using the timeouts and failures are observed with the
   timeout values configures by TeraTerm. This update fixes the issue by
   resetting the COM port timeout settings to default.

3 years agoFix Host EMU remark
Sivaraj R [Sat, 30 May 2020 06:31:11 +0000 (12:01 +0530)]
Fix Host EMU remark

- Remove -v: Disable verbose
- Add -c: do not warn if the library had to be created

Signed-off-by: Sivaraj R <sivaraj@ti.com>
3 years agoPDK-6685 - bug fix - Timer osal - Uninitialized variable REL.CORESDK.07.00.00.23
Prasad Jondhale [Sun, 31 May 2020 16:37:30 +0000 (22:07 +0530)]
PDK-6685 - bug fix - Timer osal -  Uninitialized variable

 - gTimerStructs is uninitialized, initialized to zero

Signed-off-by: Prasad Jondhale <prasad.jondhale@ti.com>
3 years agodrv/usrt/test: use CSL address translation function for TPR12
Eric Ruei [Sat, 30 May 2020 13:43:14 +0000 (09:43 -0400)]
drv/usrt/test: use CSL address translation function for TPR12

Signed-off-by: Eric Ruei <e-ruei1@ti.com>
3 years agoOSAL/test: reduce TaskP test period for QT build
Eric Ruei [Sat, 30 May 2020 13:41:26 +0000 (09:41 -0400)]
OSAL/test: reduce TaskP test period for QT build

Signed-off-by: Eric Ruei <e-ruei1@ti.com>
3 years agosciclient: Verify last hop IR output against boardcfg REL.CORESDK.07.00.00.22
Justin Sobota [Sat, 30 May 2020 03:56:38 +0000 (23:56 -0400)]
sciclient: Verify last hop IR output against boardcfg

The intermediate interrupt router hops in an
interrupt route have their outputs validating
against the board configuration assignments.
This patch updates the code to also validate
the last hop IR output against the board
configuration resource assignments.

Signed-off-by: Justin Sobota <jsobota@ti.com>
3 years agosciclient: j721e: Some of the IR instances are not initialized correctly
Justin Sobota [Sat, 30 May 2020 03:49:08 +0000 (23:49 -0400)]
sciclient: j721e: Some of the IR instances are not initialized correctly

Some of the J721e IR instances do not have
their inp0_mapping field initialized properly.
This can cause a failure if attempting to route
to the 0th output for these IRs.

Fixes: PDK-6679
Signed-off-by: Justin Sobota <jsobota@ti.com>
3 years agoSBL Build Fix REL.CORESDK.06.02.03.12 REL.CORESDK.07.00.00.21
Sivaraj R [Sat, 30 May 2020 04:32:24 +0000 (10:02 +0530)]
SBL Build Fix

- Also fixes the J7 SBL build for HS
- All other boot media except OSPI should use DMA mode

Signed-off-by: Sivaraj R <sivaraj@ti.com>