processor-sdk/pdk.git
8 hours agoETHFW-1776: Fix Coverity analysis issue master
Misael Lopez Cruz [Fri, 7 May 2021 18:08:19 +0000 (13:08 -0500)]
ETHFW-1776: Fix Coverity analysis issue

Fix below static analysis issue reported in Desay-SV's Coverity report:

Event cert_str31_c_violation:
  Underrunning callee's array at -19 by passing argument "size"
  (which evaluates to 0) in call to "TimeSyncPtp_processPtpFrame".

Signed-off-by: Misael Lopez Cruz <misael.lopez@ti.com>
8 hours agoOSPI: KW: Fix for KW issue in close API
Aditya Wadhwa [Fri, 11 Jun 2021 16:28:33 +0000 (21:58 +0530)]
OSPI: KW: Fix for KW issue in close API

Signed-off-by: Aditya Wadhwa <a0485151@ti.com>
8 hours agoFreeRTOS: Increase total heap size to 64kB
Misael Lopez Cruz [Fri, 11 Jun 2021 05:31:59 +0000 (00:31 -0500)]
FreeRTOS: Increase total heap size to 64kB

Increase total heap size to 64kB as 32kB is not sufficient for the tasks
created within LwIP stack.

Tasks created within LwIP stack don't pass the stack memory to use,
just the stack size.  Moreover, LwIP's OSAL function for task creation
doesn't take any parameter for stack memory.

Signed-off-by: Misael Lopez Cruz <misael.lopez@ti.com>
25 hours agoSBL: temporary changes for configuring RGMII/MII100/MII10 clocks REL.CORESDK.08.00.01.08
Satish Sankella [Fri, 11 Jun 2021 05:07:33 +0000 (10:37 +0530)]
SBL: temporary changes for configuring RGMII/MII100/MII10 clocks

25 hours agoFreeRTOS: Increased heap size to 64KB
Satish Sankella [Fri, 11 Jun 2021 08:19:17 +0000 (13:49 +0530)]
FreeRTOS: Increased heap size to 64KB

Signed-off-by: Satish Sankella <s-sankella@ti.com>
25 hours agolwip: Added initial version for PDK builds
Satish Sankella [Tue, 8 Jun 2021 12:00:16 +0000 (17:30 +0530)]
lwip: Added initial version for PDK builds

- Added lwip-stack and lwip-contrib to PDK build

Signed-off-by: Misael Lopez Cruz <misael.lopez@ti.com>
47 hours agoOSAL UT: Added unit tests for OSAL Event
Don Dominic [Thu, 10 Jun 2021 06:37:43 +0000 (12:07 +0530)]
OSAL UT: Added unit tests for OSAL Event

- Added OSAL_event_test
  - Test 1: event post test
  - Test 2: event wait with AND logic test
  - Test 3: EventP_wait Timeout test
  - Test 4: event wait with OR logic test
  - Test 5: event get posted events test

Signed-off-by: Don Dominic <a0486429@ti.com>
47 hours agoFreeRTOS: Enable FreeRTOS Event Groups
Don Dominic [Wed, 9 Jun 2021 19:55:55 +0000 (01:25 +0530)]
FreeRTOS: Enable FreeRTOS Event Groups

- Include FreeRTOS soucre file event_groups.c
  for freertos library
  - Due to C++ build failures
    and TI not modifying FreeRTOS Kernel code
    adding this to non C++ Build Source files list
- Enable following INCLUDES in FreeRTOSConfig.h
  to support xEventGroupSetBitsFromISR
  - INCLUDE_xEventGroupSetBitFromISR
  - INCLUDE_xTimerPendFunctionCall

Signed-off-by: Don Dominic <a0486429@ti.com>
47 hours agoSYSBIOS: Enable ti.sysbios.knl.Event module
Don Dominic [Wed, 9 Jun 2021 19:49:36 +0000 (01:19 +0530)]
SYSBIOS: Enable ti.sysbios.knl.Event module

- Enable SYSBIOS Events - ti.sysbios.knl.Event
  for AM65xx/J721E/J7200/J721S2/AM64x R5F/A72/C7x/C66x
  in top level sysbios cfg file at ti/build/

Signed-off-by: Don Dominic <a0486429@ti.com>
47 hours agoOSAL: EventP: Added support for FreeRTOS
Don Dominic [Thu, 10 Jun 2021 06:46:04 +0000 (12:16 +0530)]
OSAL: EventP: Added support for FreeRTOS

- Add abstraction layer for FreeRTOS Event Groups

Signed-off-by: Don Dominic <a0486429@ti.com>
47 hours agoOSAL: EventP: Updates to OSAL Event Module
Don Dominic [Thu, 10 Jun 2021 06:42:48 +0000 (12:12 +0530)]
OSAL: EventP: Updates to OSAL Event Module

- Remove SYSBIOS Header files from EventP.h
- Mark EventP_pend() as SYSBIOS only and to be obsolete in next release
- Add new API EventP_wait()
  - New API to replace EventP_pend()
  - only takes one mask as i/p and flag to specify ANY/ALL(logical OR/AND)
  - only supports upto 24 bit mask
- Retrun EventP_Status for EventP_post and EventP_delete

Signed-off-by: Don Dominic <a0486429@ti.com>
2 days agoPDK-8975: Board: Updated current monitor calibration value for AWR294x EVM
M V Pratap Reddy [Wed, 9 Jun 2021 16:21:14 +0000 (21:51 +0530)]
PDK-8975: Board: Updated current monitor calibration value for AWR294x EVM

2 days agoPDK-8991: Board: Enabled dma mode for AWR294x pmic test
M V Pratap Reddy [Wed, 9 Jun 2021 13:53:01 +0000 (19:23 +0530)]
PDK-8991: Board: Enabled dma mode for AWR294x pmic test

 - AWR294x PMIC write access is in debug for PMIC GPIO control.
   Created a separate file for AWR294x. Will merge it with common
   test file based on the changes needed for full functional mode.

2 days agoPDK-8995: Board: Corrected gpio pinmux for AWR294x EVM LED
M V Pratap Reddy [Wed, 9 Jun 2021 13:46:04 +0000 (19:16 +0530)]
PDK-8995: Board: Corrected gpio pinmux for AWR294x EVM LED

2 days agoPDK-8998: Board: Added GPIO control for Enable pin on AWR294x EVM CAN diag test
M V Pratap Reddy [Wed, 9 Jun 2021 13:43:45 +0000 (19:13 +0530)]
PDK-8998: Board: Added GPIO control for Enable pin on AWR294x EVM CAN diag test

2 days agoPDK-9000:Board: Fix for CPSW Ethernet test on AWR294x EVM
M V Pratap Reddy [Wed, 9 Jun 2021 13:39:34 +0000 (19:09 +0530)]
PDK-9000:Board: Fix for CPSW Ethernet test on AWR294x EVM

2 days agoSBL: adding xip multicore entry application
Caleb Robey [Wed, 9 Jun 2021 14:33:30 +0000 (09:33 -0500)]
SBL: adding xip multicore entry application

Signed-off-by: Caleb Robey <c-robey@ti.com>
3 days ago[PDK-9871] OSAL: Arch: Disable the interrupt during OsalArch_HwiPDelete
Don Dominic [Wed, 9 Jun 2021 09:15:30 +0000 (14:45 +0530)]
[PDK-9871] OSAL: Arch: Disable the interrupt during OsalArch_HwiPDelete

- This fixes issues with Sciclient Unit Test
  for cases in which a polling mode test is followed by interrupt test

- Root Casue:
  - OsalArch_HwiPDelete->Intc_IntUnregister : sets the interrupt priority to 0
    and sets the callback fxn IntDefaultHandler(infinite while loop)
  - Interrupt occurs during subsequent polling mode test(following an interrupt test)
    and ends up in IntDefaultHandler infinite while loop
  - As a result polling mode test hangs

- Fix:
  - Disable in the interrupt in INTC after Intc_IntUnregister (in OsalArch_HwiPDelete)

Signed-off-by: Don Dominic <a0486429@ti.com>
3 days agoadded r4 firmware image to awr294x appimage
Prasad Konnur [Tue, 8 Jun 2021 11:29:12 +0000 (16:59 +0530)]
added r4 firmware image to awr294x appimage

Signed-off-by: Prasad Konnur <prasadkonnur@ti.com>
3 days ago[PDK-9782] OSAL: FreeRTOS Heap: C++ Build Fix
Don Dominic [Tue, 8 Jun 2021 06:46:52 +0000 (12:16 +0530)]
[PDK-9782] OSAL: FreeRTOS Heap: C++ Build Fix

Signed-off-by: Don Dominic <a0486429@ti.com>
3 days ago[PDK-9782] UDMA UT: Port utils_mem.c to support FreeRTOS
Don Dominic [Mon, 7 Jun 2021 19:35:21 +0000 (01:05 +0530)]
[PDK-9782] UDMA UT: Port utils_mem.c to support FreeRTOS

- Update utils_mem.c to use new HeaP OSAL module API's
  - Replace SYSBIOS APIs with OSAL HeaP API's
  - For System Heap related, Replace SYSBIOS APIs with OSAL MemoryP API's
- Verified UDMA UT for tirtos/freertos

Signed-off-by: Don Dominic <a0486429@ti.com>
3 days ago[PDK-9782] OSAL: Added HeapP module for FreeRTOS & TIRTOS
Don Dominic [Mon, 7 Jun 2021 19:20:49 +0000 (00:50 +0530)]
[PDK-9782] OSAL: Added HeapP module for FreeRTOS & TIRTOS

 - Abstraction layer for SYSBIOS HeapMem API's
 - Abstraction layer for FreeRTOS internal implementation to support multiple heap instance
 - Also enable tirtos MemoryP implementation for all K3 SOCs

Signed-off-by: Don Dominic <a0486429@ti.com>
3 days ago[PDK-9782] OSAL: Heap: FreeRTOS: Implementation to support multiple heap instances...
Don Dominic [Mon, 7 Jun 2021 18:52:14 +0000 (00:22 +0530)]
[PDK-9782] OSAL: Heap: FreeRTOS: Implementation to support multiple heap instances in FreeRTOS

- Check in FreeRTOS sample implementation of heap based on heap_4.c from FreeRTOS
  From MCU+SDK. Source:-
  - HeapP_internal.c: https://bitbucket.itg.ti.com/projects/PROCESSOR-SDK-MCU/repos/mcu_plus_sdk/browse/source/kernel/nortos/dpl/common/HeapP_internal.c
  - HeapP_internal.h: https://bitbucket.itg.ti.com/projects/PROCESSOR-SDK-MCU/repos/mcu_plus_sdk/browse/source/kernel/nortos/dpl/common/HeapP_internal.h

- Minor updates to:
  - Move Heap Memory Stats stucture to FreeRTOS specific internal header file from HeapP.h
   - Since this can't be alligned with SYSBIOS case
  - Add param totalHeapSizeInBytes to allign with SYSBIOS stats
  - Header file updates
Signed-off-by: Don Dominic <a0486429@ti.com>
3 days agoBoard: DDR: J7VCL: Update the ddr settings
Don Dominic [Tue, 8 Jun 2021 14:20:55 +0000 (19:50 +0530)]
Board: DDR: J7VCL: Update the ddr settings

- This includes:
  - Fix for issues reported in Linux boot
  - Revert CA / CS IO settings updates included in f91b9612e75a8d163560521a92175a1faf6dad85
    - This was included based on some low temperature debug
    - This seemed to fix the low temperature problems
      But it appears to be causing some issues under nominal conditions

Signed-off-by: Don Dominic <a0486429@ti.com>
Signed-off-by: Kevin Scholz <k-scholz@ti.com>
3 days ago[PDK-9541] Board: DDR: Update DDR Boot Frequency and disable DDR PLL bypass
Don Dominic [Wed, 2 Jun 2021 17:49:42 +0000 (23:19 +0530)]
[PDK-9541] Board: DDR: Update DDR Boot Frequency and disable DDR PLL bypass

- Disable DDR PLL Bypass
- Set boot frequency to DDRSS_PLL_FREQUENCY_0 (define from EMIF tool o/p - ddrRegInit.h)
- This is also applicable in case for Frequency Change type "0" request from Controller
  - Currently set to 55MHz
- This is part of DDR Boot time optimization for J721E/J7VCL

Signed-off-by: Don Dominic <a0486429@ti.com>
3 days ago[PDK-9541][PDK-6879] Board: DDR: J721E: Update the ddr settings to use the DDR reg...
Don Dominic [Wed, 2 Jun 2021 17:27:13 +0000 (22:57 +0530)]
[PDK-9541][PDK-6879] Board: DDR: J721E: Update the ddr settings to use the DDR reg config tool rev 0.6.0.

- This include ddr settings updates for
  1. boot time optimizations
  2. Workaround for Errata: DOCU-187
       DDR: VRCG high current mode must be used during LPDDR4 CBT and Write DQ Vref Training
- Also added new define F0 for DDR Boot Frequency (55MHz)

Signed-off-by: Don Dominic <a0486429@ti.com>
Signed-off-by: Kevin Scholz <k-scholz@ti.com>
3 days ago[PDK-9541][PDK-6879] Board: DDR: J7VCL: Update the ddr settings to use the DDR reg...
Don Dominic [Wed, 2 Jun 2021 17:19:43 +0000 (22:49 +0530)]
[PDK-9541][PDK-6879] Board: DDR: J7VCL: Update the ddr settings to use the DDR reg config tool rev 0.6.0.

- This include ddr settings updates for
  1. boot time optimizations
  2. Workaround for Errata: DOCU-187
       DDR: VRCG high current mode must be used during LPDDR4 CBT and Write DQ Vref Training
- Also added new define F0 for DDR Boot Frequency (55MHz)

Signed-off-by: Don Dominic <a0486429@ti.com>
Signed-off-by: Kevin Scholz <k-scholz@ti.com>
3 days agoIPC: Updates in Ipc_init related to printFxn
Don Dominic [Fri, 4 Jun 2021 18:48:48 +0000 (00:18 +0530)]
IPC: Updates in Ipc_init related to printFxn

- Check for mutex osal prms only for IPC_CFG_PRINT_ENABLE flag enabled case
- These updates was introduced while added printFxn
- This update is required because,
  there are cases like MCUSW CDD IPC uses ipc_baremetal lib (IPC_CFG_PRINT_ENABLE disabled)
  with osal mutex prms set to NULL
- This fixes issues with CDD IPC Profile App

Signed-off-by: Don Dominic <a0486429@ti.com>
3 days agoIPC: Makefile updates for ipc, ipc_baremetal libraries
Don Dominic [Fri, 4 Jun 2021 19:16:37 +0000 (00:46 +0530)]
IPC: Makefile updates for ipc, ipc_baremetal libraries

- Move out OS Specific CFLAGS to individual makefiles from common .mk file
- This fixes the issues with MCUSW CDD IPC Profile Apps
  - Since, MCUSS Demos build pass BUILD_OS_TYPE=tirtos from command line and
    overrides the value set in ipc_baremetal makefile makefile_baremetal
  - As a result ipc lib was getting built to ipc_baremetal path

Signed-off-by: Don Dominic <a0486429@ti.com>
3 days agoGPIO Build Fix REL.CORESDK.08.00.00.13
Ankur [Tue, 8 Jun 2021 19:12:46 +0000 (00:42 +0530)]
GPIO Build Fix

Signed-off-by: Ankur <a0132173@ti.com>
4 days agoPDK-9616: move example log to uart
Prasad Konnur [Mon, 7 Jun 2021 07:50:34 +0000 (13:20 +0530)]
PDK-9616: move example log to uart

Signed-off-by: Prasad Konnur <prasadkonnur@ti.com>
4 days agoSciclient: RM BoardCfg: AM65xx: Update to the latest Cfg from k3-resource-partioning REL.CORESDK.08.00.00.12
Don Dominic [Mon, 7 Jun 2021 06:29:05 +0000 (11:59 +0530)]
Sciclient: RM BoardCfg: AM65xx: Update to the latest Cfg from k3-resource-partioning

- This includes the changes in the k3-resource-partioning commit:
  https://bitbucket.itg.ti.com/projects/PSDKLA/repos/k3-resource-partitioning/commits/501b94a7cfb11c7104de0fe5f40978fbf99c1bd2
- MCU R5_0 resources shared with MCU R5_1 (Secure and Non-Secure context of mcu1_0)
- In order to keep number of entries under 260, drop Ring_monitors allocation fro A53_3
- This update was required for R5 SPL OSPI DMA boot
- No impact on RTOS

- File generated from syscnofig tool

- Validated UDMA memcpy

Signed-off-by: Don Dominic <a0486429@ti.com>
4 days agoRemoving Latency.xlsx
Ankur [Tue, 8 Jun 2021 10:20:41 +0000 (15:50 +0530)]
Removing Latency.xlsx

Signed-off-by: Ankur <a0132173@ti.com>
4 days agoAdding additional files and reverting J721S2 changes
Ankur [Tue, 8 Jun 2021 09:46:51 +0000 (15:16 +0530)]
Adding additional files and reverting J721S2 changes

Signed-off-by: Ankur <a0132173@ti.com>
4 days agoMigrating to SYSFW version v2021.05
Ankur [Tue, 8 Jun 2021 09:38:31 +0000 (15:08 +0530)]
Migrating to SYSFW version v2021.05

4 days agoI2C : Build break fix
sujith [Tue, 8 Jun 2021 10:34:12 +0000 (16:04 +0530)]
I2C : Build break fix

When built with -j and for all apps
tirtos and baremetal conflicts and results in build break

fix : In Correct baremetal flag was used, corrected now

Signed-off-by: sujith <sujith.s@ti.com>
4 days agoPDK-9686: PDK OSAL to register resources for ROV
Prasad Konnur [Thu, 20 May 2021 06:26:32 +0000 (11:56 +0530)]
PDK-9686: PDK OSAL to register resources for ROV

Signed-off-by: Prasad Konnur <prasadkonnur@ti.com>
4 days agoMinor : makefile updates for baremetal of i2c & gpio
sujith [Mon, 7 Jun 2021 14:54:50 +0000 (20:24 +0530)]
Minor : makefile updates for baremetal of i2c & gpio

Build fine for j721e

Signed-off-by: sujith <sujith.s@ti.com>
4 days agoFreeRTOS : GPIO Ported
sujith [Fri, 4 Jun 2021 17:30:16 +0000 (23:00 +0530)]
FreeRTOS : GPIO Ported

Tested on mcu 10, compiled for all cores
compiles for am65xx, j7200

Signed-off-by: sujith <sujith.s@ti.com>
4 days agoOSAL UT: Disable QueueP test for SafeRTOS
Don Dominic [Mon, 7 Jun 2021 10:24:18 +0000 (15:54 +0530)]
OSAL UT: Disable QueueP test for SafeRTOS

- Temp disable QueueP test for SafeRTOS
- This is to be enbaled when OSAL QueueP for SafeRTOS is implmented

Signed-off-by: Don Dominic <a0486429@ti.com>
5 days agoOSAL UT: Disable QueueP test for SafeRTOS
Don Dominic [Mon, 7 Jun 2021 10:24:18 +0000 (15:54 +0530)]
OSAL UT: Disable QueueP test for SafeRTOS

- Temp disable QueueP test for SafeRTOS
- This is to be enbaled when OSAL QueueP for SafeRTOS is implmented

Signed-off-by: Don Dominic <a0486429@ti.com>
8 days agoOSAL UT: Makefile: Test Automation Updates
Don Dominic [Fri, 4 Jun 2021 06:11:22 +0000 (11:41 +0530)]
OSAL UT: Makefile: Test Automation Updates

- Remove LOCAL_APP_NAME
- This is mandatory as per latest test automation infra
- All generated binary names should be same as the 'App Name' specified in QMetry
- Local App Name will cause issues with test automation, since it won't follow an alligned naming of all PDK apps

Signed-off-by: Don Dominic <a0486429@ti.com>
8 days agoFreeRTOS : I2C Ported
sujith [Thu, 3 Jun 2021 14:32:07 +0000 (20:02 +0530)]
FreeRTOS : I2C Ported

Tested on freertos j721e mcu 10, mpu10
Compiled for j7200, am65xx & j721e for rtos and freertos

Signed-off-by: sujith <sujith.s@ti.com>
8 days agoJACINTOREQ-1464 : Removed SMP examples for i2c
sujith [Thu, 3 Jun 2021 11:34:04 +0000 (17:04 +0530)]
JACINTOREQ-1464 : Removed SMP examples for i2c

Signed-off-by: sujith <sujith.s@ti.com>
8 days agoOSAL: QueueP_freertos: C++ Build Fix
Don Dominic [Tue, 1 Jun 2021 15:11:52 +0000 (20:41 +0530)]
OSAL: QueueP_freertos: C++ Build Fix

Signed-off-by: Don Dominic <a0486429@ti.com>
8 days agoOSAL: QueueP: Add support for FreeRTOS
Don Dominic [Mon, 31 May 2021 21:11:26 +0000 (02:41 +0530)]
OSAL: QueueP: Add support for FreeRTOS

- Implemented FreeRTOS Abstraction layer for Queues in QueueP_freertos.c
- Enabled Queue OSAL UT for FreeRTOS

- Validated OSAL Queue UT

Signed-off-by: Don Dominic <a0486429@ti.com>
8 days agoOSAL: QueueP: Updated QueueP interface and TIRTOS Implementation
Don Dominic [Mon, 31 May 2021 18:02:36 +0000 (23:32 +0530)]
OSAL: QueueP: Updated QueueP interface and TIRTOS Implementation

- Updated QueueP interface to match other OSAL modules
- Updated TIRTOS implementation
  - Renamed Queue_tirtos to QueueP_tirtos
- Related updates in unit test

- Validated Queue UT

Signed-off-by: Don Dominic <a0486429@ti.com>
8 days agox509 Cert Gen: Bump up SWRV to 1 for all certificates
Jonathan Bergsagel [Thu, 3 Jun 2021 16:49:31 +0000 (11:49 -0500)]
x509 Cert Gen: Bump up SWRV to 1 for all certificates

Bumps up the SWRV field in generated x509 certificates
from 0 to 1.  Applies to all signed bootloader binaries
and signed appimages across j721e/j7200/am65xx/am64.

Required for supporting production J721E HS devices that
require minimum SWRV to be 1 for anit-rollback support.

Is OK as well for other devices to be at SWRV = 1.

Signed-off-by: Jonathan Bergsagel <jbergsagel@ti.com>
8 days agoremove memset of taskObj in rask delete REL.CORESDK.08.00.01.07
Prasad Konnur [Thu, 3 Jun 2021 14:29:00 +0000 (19:59 +0530)]
remove memset of taskObj in rask delete

 - In freertos task is deelted in the idle task so the TaskObj should
not be memset to 0

Signed-off-by: Prasad Konnur <prasadkonnur@ti.com>
9 days agosbl updates for awr294x
Prasad Konnur [Thu, 3 Jun 2021 12:28:55 +0000 (17:58 +0530)]
sbl updates for awr294x

Signed-off-by: Prasad Konnur <prasadkonnur@ti.com>
10 days agoupdates for awr294x apps REL.CORESDK.08.00.01.06
Prasad Konnur [Wed, 2 Jun 2021 12:27:38 +0000 (17:57 +0530)]
updates for awr294x apps

Signed-off-by: Prasad Konnur <prasadkonnur@ti.com>
10 days agoremove sim build for awr294x
Prasad Konnur [Tue, 1 Jun 2021 10:39:24 +0000 (16:09 +0530)]
remove sim build for awr294x

Signed-off-by: Prasad Konnur <prasadkonnur@ti.com>
10 days agobuild fix cbuff app safertos
Prasad Konnur [Tue, 1 Jun 2021 11:43:45 +0000 (17:13 +0530)]
build fix cbuff app safertos

Signed-off-by: Prasad Konnur <prasadkonnur@ti.com>
10 days agobuildfix adcbuff safertos
Prasad Konnur [Tue, 1 Jun 2021 12:46:05 +0000 (18:16 +0530)]
buildfix adcbuff safertos

Signed-off-by: Prasad Konnur <prasadkonnur@ti.com>
10 days agofixed awr294x tirtos binary load on mcu1_1
Prasad Konnur [Tue, 1 Jun 2021 14:05:22 +0000 (19:35 +0530)]
fixed awr294x tirtos binary load on mcu1_1

Signed-off-by: Prasad Konnur <prasadkonnur@ti.com>
11 days agobuild fix XDCPATH REL.CORESDK.08.00.00.11
Prasad Konnur [Tue, 1 Jun 2021 07:59:29 +0000 (13:29 +0530)]
build fix XDCPATH

 - XDCPATH variable should not contain space.
 - appending make variable with += adds space

Signed-off-by: Prasad Konnur <prasadkonnur@ti.com>
11 days agoReadding the missing J721S2 SysFW files REL.CORESDK.08.00.00.09 REL.CORESDK.08.00.00.10 REL.CORESDK.08.00.01.05
Ankur [Tue, 1 Jun 2021 06:30:29 +0000 (12:00 +0530)]
Readding the missing J721S2 SysFW files

Signed-off-by: Ankur <a0132173@ti.com>
11 days agoMigrating to SYSFW version next-v2021.05 - additional files
Ankur [Mon, 31 May 2021 17:31:10 +0000 (23:01 +0530)]
Migrating to SYSFW version next-v2021.05 - additional files

Signed-off-by: Ankur <a0132173@ti.com>
11 days agoMigrating to SYSFW version next-v2021.05
Ankur [Mon, 31 May 2021 17:22:58 +0000 (22:52 +0530)]
Migrating to SYSFW version next-v2021.05

11 days agoFW gen script fix for J7200 HS
Ankur [Wed, 26 May 2021 17:35:41 +0000 (23:05 +0530)]
FW gen script fix for J7200 HS

Signed-off-by: Ankur <a0132173@ti.com>
11 days agoPDK-9651: Added freertos support for GPADC example.
KALYAN VAGVALA [Mon, 31 May 2021 05:12:39 +0000 (10:42 +0530)]
PDK-9651: Added freertos support for GPADC example.

11 days agoPDK-9651: Updated ADCBUF and CBUFF driver examples to support freertos.
KALYAN VAGVALA [Fri, 28 May 2021 03:46:48 +0000 (09:16 +0530)]
PDK-9651: Updated ADCBUF and CBUFF driver examples to support freertos.

11 days agomailbox driver enabled for mcu1_1 core
Prasad Konnur [Mon, 31 May 2021 18:32:23 +0000 (00:02 +0530)]
mailbox driver enabled for mcu1_1 core

Signed-off-by: Prasad Konnur <prasadkonnur@ti.com>
11 days agoCombined Appimage Build Fix
Don Dominic [Tue, 1 Jun 2021 04:45:22 +0000 (10:15 +0530)]
Combined Appimage Build Fix

- Update mcu1_0 ipc_echo_tesb binary

Signed-off-by: Don Dominic <a0486429@ti.com>
12 days agoOSAL: Added defines for WAIT_FOREVER and NO_WAIT
Don Dominic [Fri, 28 May 2021 07:51:37 +0000 (13:21 +0530)]
OSAL: Added defines for WAIT_FOREVER and NO_WAIT

- Also updated ipc_perf_test

Signed-off-by: Don Dominic <a0486429@ti.com>
12 days ago[PDK-9494] IPC: Address Review Comments
Don Dominic [Wed, 26 May 2021 14:15:11 +0000 (19:45 +0530)]
[PDK-9494] IPC: Address Review Comments

- Disable Driver PrintFxn for ipc_baremetal
  - Removed -DDIPC_CFG_PRINT_ENABLE flag from $(IPC_CFLAGS)
  - include -DDIPC_CFG_PRINT_ENABLE to CFLAGS_LOCAL_COMMON only if $(BUILD_OS_TYPE) != baremetal

- ipc_perf_test Stack Size update - only required for C7x

- Remove SystmeP_printf from ipc_osal_qnx.c
  - QNX will also use IPC Driver PrintFxn to get driver logs

Signed-off-by: Don Dominic <a0486429@ti.com>
12 days ago[PDK-9494] IPC: Build: Update ipc driver component.mk to support FreeRTOS Apps
Don Dominic [Tue, 25 May 2021 19:42:44 +0000 (01:12 +0530)]
[PDK-9494] IPC: Build: Update ipc driver component.mk to support FreeRTOS Apps

- Updated all sysbios apps make rule
  - To use macros to generate RTOS app make rule for all rtos types
    - Filter CORELIST for the target with default corelist of an SOC for each rtos type
    - Filter common/custom BOARDLIST for the target with the default BOARDLIST for each rtos type
  - RTOS apps APP_NAME will be appended with '_<rtos_type>'
    - For example 'ipc_echo_test' will change to 'ipc_echo_test_tirtos'/'ipc_echo_test_freertos'
- No change for baremetal apps make rule
- With this approach, Zero update is required in the component.mk file
  - To de-scope/add support to an OS type
  - OR to add a Board to support existing OS type

- Related make file updates for each example

- IPC Multicore Performance Test makefile updates
  - Since, FreeRTOS is currently supported only on R5F cores.
      - For multicore performance test, use tirtos binary on other cores
  - For TIRTOS , use tirtos binary itself on all cores

Signed-off-by: Don Dominic <a0486429@ti.com>
12 days ago[PDK-9494] IPC: Fix for Linux Boot issue when using FreeRTOS mcu1_0 echo testb bin
Don Dominic [Tue, 25 May 2021 08:00:06 +0000 (13:30 +0530)]
[PDK-9494] IPC: Fix for Linux Boot issue when using FreeRTOS mcu1_0 echo testb bin

Issue_1:-
  - Linux Boot Hangs/Crashes (when using FreeRTOS echo_testb mcu1_0 binary in U-boot)

Root Cause:-
- In IPC Echo test, Sciclient_init/Sciserver init etc was called before OS start.
- Sciclient_init before Scheduler start was hanging
- Since 'pll_init' invokes 'osal_dealy'(for which TimerP always returns 0 since scheduler not started)
  - For CCS/SBL boot flow, it was not reaching the osal_delay(since pll config would be skipped)
  and the issue is not observed.

Fix:-
- OS/Scheduler started before Sciclient/Sciserver Init
  - Now Sciclient/Sciserver Init gets Invoked from taskFxn, instead of from main itself.

Issue_2:-
(This is not FreeRTOS Specific Issue)
- In this case(starting scheduler earlier),
  Sciserver RTOS Application Init API crashes.

Root Cause:-
- Sciserver init crashes when the “passed Sciserver tasks priorities are higher than the invoking task's priority”
  - This was the case with IPC test to avoid some deadlock condition.
- Since Scheduler is running, creating higher priority tasks by the API invokes them quickly and app crashes
  ending up in undefined instruction, due to some other pending config dependencies in the same Init API.
- This was not being observed when called from main, because scheduler not yet started.

Fix:-
- Sciserver Init is invoked from a higher priority task
  - priority greater than passed Sciserver tasks priorities.
- Also documented about this in Sciserver Init API definition.

With this updates "Linux boot with FreeRTOS mcu1_0 bin for ipc_echo_testb" and
"Echo test with all other cores" (FreeRTOS on R5 cores, Linux on A72, SYSBIOS on other cores) are working fine.

Signed-off-by: Don Dominic <a0486429@ti.com>
12 days ago[PDK-9494] IPC: Migration to support FreeRTOS on R5F cores
Don Dominic [Mon, 24 May 2021 22:35:53 +0000 (04:05 +0530)]
[PDK-9494] IPC: Migration to support FreeRTOS on R5F cores

- Remove SYSBIOS Headers in examples source files
- Replace SYBIOS calls in examples and unit test source files with equivalent OSAL API's
  - Replace BIOS_start() and BIOS_exit(0) with New OSAL API's OS_Start() and OS_Stop()
    - This supports all OS
  - Use OSAL CycleprofilerP API's in place for BIOS Timestamp API's
  - Use OSAL TimerP API's to get time in microseconds in place for
    BIOS clock config + implementation to derive current time in microseconds
  - Replace BIOS_WAIT_FOREVER with SemaphoreP_WAIT_FOREVER
- Add OS_init() before any other OS calls (like Task creation, OS_start, etc..)
  - This is required in case of SafeRTOS for scheduler init.
  - For other FreeRTOS/TI-RTOS, it's a dummy implementation and is safe to call unconditionally for all OSes

- Use Trace Buffer implementation (same as baremetal case) for FreeRTOS,
  instead of System_printf use in SYSBIOS

- In case of echo test using R5 TCMB, explicitly copy freertosresetvectors to 0x0
  - This is needed because in FreeRTOS Default Config for J721E/J7200,
    'copy vecs' feature is disabled (since default linker places vecs in 0x0 itself).
  - Related makefile updates to add new cflag for BTCM test

Signed-off-by: Don Dominic <a0486429@ti.com>
12 days ago[PDK-9494] IPC: FreeRTOS Porting Build Updates
Don Dominic [Tue, 25 May 2021 20:31:27 +0000 (02:01 +0530)]
[PDK-9494] IPC: FreeRTOS Porting Build Updates

- Add linker files for all examples FreeRTOS Build

- Implementation with minimal duplication by making use use of
  1. linker file #include
  2. APPEND_LNKCMD_FILE feature

  - Common DDR memory map per each SOC
    - This is added as append linker command file to each ISA's common include linker file
    - This helps to modify DDR memory map for an SOC by updating just one file
  - Single common include linker file per each ISA
    - with variables used to redirect to different core specific region
    - This file will be included to entry linker file
    - This helps to avoid duplication of Linker Settings, Memory, Sections
      in all the cores/apps linker files
  - Entry linker file defines this variables for different core specific regions
    For example,
        #define __VECS                  MCU_R5F_TCMA_VECS
        #define __BOOT                  MCU_R5F_TCMA
        #define __CORE_IPC_DATA         MCU1_0_IPC_DATA
        #define __CORE_DDR_SPACE        MCU1_0_DDR_SPACE

- Other makefile updates to support FreeRTOS Build
- For FreeRTOS, Use CSL_ArmR5MpuRegionCfg Implementation to configure Cache/MPU Settings

Signed-off-by: Don Dominic <a0486429@ti.com>
12 days agoOSAL: CycleprofilerP: Add support for K3 SoCs
Don Dominic [Mon, 24 May 2021 21:30:24 +0000 (03:00 +0530)]
OSAL: CycleprofilerP: Add support for K3 SoCs

Signed-off-by: Don Dominic <a0486429@ti.com>
12 days agoIPC: Fix C7x Stackoverflow issue with Linux Echo Test
Don Dominic [Mon, 24 May 2021 22:24:04 +0000 (03:54 +0530)]
IPC: Fix C7x Stackoverflow issue with Linux Echo Test

Signed-off-by: Don Dominic <a0486429@ti.com>
12 days ago[PDK-9494] IPC: Updates to make IPC LLD OS independent
Don Dominic [Fri, 7 May 2021 17:57:40 +0000 (23:27 +0530)]
[PDK-9494] IPC: Updates to make IPC LLD OS independent

- De-scope usage of SWI in IPC LLD
- Instead of HWI posting the SW interrupt and service handling from SWI context,
  Execute directly from HWI context itself

- Remove ipc_osal_baremetal.c file
- Related makefile updates

- Validated with ipc_perf_test and system level AVP3 demo
  - Performance is comparable
  - No considerable impact

Signed-off-by: Don Dominic <a0486429@ti.com>
12 days ago[PDK-9494] IPC: Added PrintFxn for IPC Driver logs
Don Dominic [Fri, 7 May 2021 18:03:23 +0000 (23:33 +0530)]
[PDK-9494] IPC: Added PrintFxn for IPC Driver logs

- To de-scope usage of OS Specific API's for IPC Driver logs
- Implemented IPC Driver print function (SystemP_printf)
  - Prints to a buffer
  - use mutex to lock print buffer
  - Invokes application provided print callback function, if any.
- Add print function to Ipc_InitPrms
  - Print callback function can be passed as initPrms.printFxn to Ipc_init

- Also updates examples to define and set the print callback function

Signed-off-by: Don Dominic <a0486429@ti.com>
12 days agoRevert "AM65xx : PDK-9689 : Disabling free rtos builf for AM65xx"
Ankur [Mon, 31 May 2021 04:23:31 +0000 (09:53 +0530)]
Revert "AM65xx : PDK-9689 : Disabling free rtos builf for AM65xx"

This reverts commit d24ecb16440bbac67a056d2a4ea5942a7c846e5c.

12 days agoSBL: AM65xx: SBL OSPI Build Fix
Aditya Wadhwa [Mon, 24 May 2021 06:51:47 +0000 (12:21 +0530)]
SBL: AM65xx: SBL OSPI Build Fix

Signed-off-by: Aditya Wadhwa <a0485151@ti.com>
12 days agoRevert "Revert "SBL: OSPI: SBL changes to enable XIP at 166 MHz""
Ankur [Sun, 30 May 2021 09:23:23 +0000 (14:53 +0530)]
Revert "Revert "SBL: OSPI: SBL changes to enable XIP at 166 MHz""

This reverts commit 7e83499531200a9af0feb0a742b65cdce3b6c041.

12 days agoAM65 IDK remove not required entried from XDC path
Ankur [Thu, 27 May 2021 10:10:39 +0000 (15:40 +0530)]
AM65 IDK remove not required entried from XDC path

Signed-off-by: Ankur <a0132173@ti.com>
12 days agoRemoving Extra space in XDC path
Ankur [Wed, 26 May 2021 14:18:19 +0000 (19:48 +0530)]
Removing Extra space in XDC path

Signed-off-by: Ankur <a0132173@ti.com>
12 days agoAM65 Build Fix
Ankur [Wed, 26 May 2021 07:13:30 +0000 (12:43 +0530)]
AM65 Build Fix

Signed-off-by: Ankur <a0132173@ti.com>
12 days agoBuild Fix for Jacinto
Ankur [Mon, 24 May 2021 06:46:12 +0000 (12:16 +0530)]
Build Fix for Jacinto

Signed-off-by: Ankur <a0132173@ti.com>
12 days ago[Build Fix]
Vivek Dhande [Mon, 31 May 2021 05:33:34 +0000 (11:03 +0530)]
[Build Fix]

Signed-off-by: Vivek Dhande <a0132295@ti.com>
13 days ago[DP CSL-FL][Bug Fix][PDK-9781][DP CSL FL]SSC frequency modulation deviation will... REL.CORESDK.07.03.00.50
Vivek Dhande [Thu, 27 May 2021 06:15:14 +0000 (11:45 +0530)]
[DP CSL-FL][Bug Fix][PDK-9781][DP CSL FL]SSC frequency modulation deviation will be out of spec, which may lead to interoperability issues with some displays

- Issue:
    - SSC frequency modulation deviation will be out of spec, which may lead to interoperability issues with some displays
- Root-cause:
    - We were failing SSC on several units during Characterization Testing. The DP spec calls for 0 to -5000ppm for SSC Modulation Deviation.  The cadence driver targets -5000ppm, and we are seeing results between -4990 and -5030.
- Resolution:
    - Change the DP SSC VCO in the DP driver, dp_sd0801_spec.c at line 590 from enableSsc(pD, 0x04D7, 0x006A) to enableSsc(pD, 0x04A5, 0x006A)

Signed-off-by: Vivek Dhande <a0132295@ti.com>
2 weeks agoPDK-9770 : Minor clean up REL.CORESDK.07.03.00.49
sujith [Fri, 28 May 2021 09:53:42 +0000 (15:23 +0530)]
PDK-9770 : Minor clean up

Signed-off-by: sujith <sujith.s@ti.com>
2 weeks agoPDK-9770 : GPIO Blink Led test on AM65xx is not functional
sujith [Thu, 27 May 2021 19:44:50 +0000 (01:14 +0530)]
PDK-9770 : GPIO Blink Led test on AM65xx is not functional

The application displays all test pass, even though ints
are not received

root cause : The interrupts numbers were hardcoded,
depending on the board cfg, this application
would work on ES 2.0 or ES1.0

Fix : Added code determine available int numbers
and used the same

Testing : AM65xx ES 1.0 & ES 2.1 HS, both TIRTOS and
Baremetal works fine

Signed-off-by: sujith <sujith.s@ti.com>
2 weeks agoOSAL: ClockP_freertos C++ Build Fix
Don Dominic [Fri, 28 May 2021 08:17:25 +0000 (13:47 +0530)]
OSAL: ClockP_freertos C++ Build Fix

Signed-off-by: Don Dominic <a0486429@ti.com>
2 weeks agoOSAL: Package Build Fix
Don Dominic [Fri, 28 May 2021 06:32:01 +0000 (12:02 +0530)]
OSAL: Package Build Fix

Signed-off-by: Don Dominic <a0486429@ti.com>
2 weeks agoPDK-9784 : sci client ut fails on mcu 11 & mpu 10
sujith [Thu, 27 May 2021 18:02:05 +0000 (23:32 +0530)]
PDK-9784 : sci client ut fails on mcu 11 & mpu 10

Root Cause : In corrent interrupt numer was used
and was being configured to operate in secure mode

Test : Works fine on MPU 10, MCU 10, MCU 11 on ES 1.0 GP device
and ES 2.1 HS device

Signed-off-by: sujith <sujith.s@ti.com>
2 weeks agoOSAL: Added new modules MailboxP, MutexP and ClockP for FreeRTOS & TIRTOS
Don Dominic [Thu, 27 May 2021 21:07:26 +0000 (02:37 +0530)]
OSAL: Added new modules MailboxP, MutexP and ClockP for FreeRTOS & TIRTOS

- Added support for following modules:-
  - MutexP
    - Abstraction layer for SYSBIOS GateMutexPri API's
    - Abstraction layer for FreeRTOS Recursive Mutex Semaphore
  - ClockP (OS/Software Timer)
    - Abstraction layer for SYSBIOS Clock API's
    - Abstraction layer for FreeRTOS Timer API's
  - MailboxP
    - Abstraction layer for SYSBIOS Mailbox API's
    - Abstraction layer for FreeRTOS queue API's

Signed-off-by: Don Dominic <a0486429@ti.com>
Signed-off-by: Praveen Rao <prao@ti.com>
2 weeks agochange default board variant for awr294x REL.CORESDK.08.00.01.04
Prasad Konnur [Fri, 28 May 2021 03:59:14 +0000 (09:29 +0530)]
change default board variant for awr294x

Signed-off-by: Prasad Konnur <prasadkonnur@ti.com>
2 weeks agoPDK-9752: qspi edma transfers for bigger buffers not working
Prasad Konnur [Mon, 24 May 2021 17:17:31 +0000 (22:47 +0530)]
PDK-9752: qspi edma transfers for bigger buffers not working

Signed-off-by: Prasad Konnur <prasadkonnur@ti.com>
2 weeks agoawr294x sbl dma fix
Badri S [Tue, 25 May 2021 02:44:21 +0000 (08:14 +0530)]
awr294x sbl dma fix

fix for dma trasnfer in SBL

Signed-off-by: Badri S <badri@ti.com>
2 weeks agosbl dual core boot
Prasad Konnur [Tue, 25 May 2021 08:44:02 +0000 (14:14 +0530)]
sbl dual core boot

Signed-off-by: Prasad Konnur <prasadkonnur@ti.com>
2 weeks ago[DSS APP/Utils][Bug Fix][PDK-8848]pixel clock for HDMI is fixed/hardcoded
Vivek Dhande [Tue, 25 May 2021 12:21:43 +0000 (17:51 +0530)]
[DSS APP/Utils][Bug Fix][PDK-8848]pixel clock for HDMI is fixed/hardcoded

- Issue:
    - this is enhancement request
    - current utils assumes resolution  for given display type and configures pixel clock which is kind of hard coding
- Root-cause:
    - None as this is enhancement request.
Fix:
    - Added structure in DSS Utils for providing display type and clock which then used in utils in programming rather than using pre-determined values

Signed-off-by: Vivek Dhande <a0132295@ti.com>
2 weeks agoFix for Forwarded messages and interrupt mode of operation
Piyali Goswami [Thu, 27 May 2021 06:14:48 +0000 (11:44 +0530)]
Fix for Forwarded messages and interrupt mode of operation

Added a check if the message is forwarded then the polled mode shall be
used as the forwarded messages are always polled for.

Fixes: PDK-9677

Signed-off-by: Piyali Goswami <piyali_g@ti.com>
2 weeks agoMcASP build fix
Ankur [Wed, 26 May 2021 07:36:56 +0000 (13:06 +0530)]
McASP build fix

Signed-off-by: Ankur <a0132173@ti.com>
2 weeks ago[PRSDK-8815]- Fix for app exit due to overflow
Ankur [Mon, 3 May 2021 12:03:05 +0000 (17:33 +0530)]
[PRSDK-8815]- Fix for app exit due to overflow

Signed-off-by: Ankur <a0132173@ti.com>
2 weeks agoUDMA: KW Fix REL.CORESDK.07.03.00.46 REL.CORESDK.07.03.00.47 REL.CORESDK.07.03.00.48
Don Dominic [Mon, 24 May 2021 11:15:00 +0000 (16:45 +0530)]
UDMA: KW Fix

Signed-off-by: Don Dominic <a0486429@ti.com>
2 weeks agotimesync: v2: icssg: Fix KW error with false 'infinite loop'
Misael Lopez Cruz [Mon, 24 May 2021 08:31:27 +0000 (03:31 -0500)]
timesync: v2: icssg: Fix KW error with false 'infinite loop'

Signed-off-by: Misael Lopez Cruz <misael.lopez@ti.com>
2 weeks agoRevert "SBL: OSPI: SBL changes to enable XIP at 166 MHz"
Aditya Wadhwa [Mon, 24 May 2021 07:13:54 +0000 (12:43 +0530)]
Revert "SBL: OSPI: SBL changes to enable XIP at 166 MHz"

This reverts commit a9de0c874f92b520f8a82117e25e59fc7d22bf35.