processor-sdk/pdk.git
29 hours ago[DSS M2M DRV]KW Fixes : Patch-2 master
Vivek Dhande [Wed, 31 Mar 2021 07:35:47 +0000 (13:05 +0530)]
[DSS M2M DRV]KW Fixes : Patch-2

Signed-off-by: Vivek Dhande <a0132295@ti.com>
29 hours ago[DSS M2M DRV and APP][BUG FIX: Patch - 2]DSS M2M sample application is crashing and...
Vivek Dhande [Tue, 30 Mar 2021 08:23:47 +0000 (13:53 +0530)]
[DSS M2M DRV and APP][BUG FIX: Patch - 2]DSS M2M sample application is crashing and failing inturn

- Issue:
    - Outputting same color
    - In case of RGB format, only 720 line were outputted
    - In case of YUV format, outputted Y component is '0'
    - For YUV420, WB pipeline was hung after outputting few pixels

- Root-cause:
    - Outputted same color was from background, this was happening due to WB pipeline DMA was enabled before VID pipeline
    - In case of unsupported format, DSS WB CSL-FL does not return error and programs default value
    - CSL was not programming WB scaler unit properly, it was checking inFmt instead of outFmt

- Resolution:
    - Updated driver to enable WB Pipeline after enabling VID pipeline
    - Updated CSL-FL to use outFmt in checks and programming

- Additional Changes:
    - Updated application to for YUV422 to YUV420 CSC
Signed-off-by: Vivek Dhande <a0132295@ti.com>
5 days agoOSAL:FreeRTOS: Fix isues with getThreadType API
Don Dominic [Thu, 8 Apr 2021 14:37:49 +0000 (20:07 +0530)]
OSAL:FreeRTOS: Fix isues with getThreadType API

- Osal_getThreadType was returing "Osal_ThreadType_Task" if its not HWI
- Check for Schedular started or not was missing.
- Added check for the same and return "Osal_ThreadType_Main" if Schedular is not yet started

Signed-off-by: Don Dominic <a0486429@ti.com>
5 days ago[PDK-9493] UART: Support FreeRTOS on R5 cores
Don Dominic [Thu, 8 Apr 2021 10:24:25 +0000 (15:54 +0530)]
[PDK-9493] UART: Support FreeRTOS on R5 cores

- Enable UART FreeRTOS Unit Testapp for J721E/J7200/AM65xx all R5 cores
- Remove SYSBIOS Headers in test source files
- Replace SYBIOS calls with equivalent OSAL API's

- Tested an all mcu cores in j721e/j7200/am65xx
- Also verified tirtos UT on j721e mcu1_0 and mpu1_0

- UART DMA Migration will be followed after checkout of UDMA with FreeRTOS.

Signed-off-by: Don Dominic <a0486429@ti.com>
5 days agoFixed qspi_flash test makefile
KALYAN VAGVALA [Thu, 8 Apr 2021 10:35:48 +0000 (16:05 +0530)]
Fixed qspi_flash test makefile

5 days agoModified ADCBUF test to build for C66 core.
KALYAN VAGVALA [Thu, 8 Apr 2021 05:35:17 +0000 (11:05 +0530)]
Modified ADCBUF test to build for C66 core.

5 days ago[PDK-9594] UDMA: Fix issues with Event Disable and Enable for shared events
Don Dominic [Wed, 7 Apr 2021 09:33:43 +0000 (15:03 +0530)]
[PDK-9594] UDMA: Fix issues with Event Disable and Enable for shared events

- Udma_eventDisable and Udma_eventEnable was failing in case of eventMode=UDMA_EVENT_MODE_SHARED

Rootcause:
- In case of shared events, eventHandle->vintrNum will be invalid (since it relies on master event)
- Here the Enable and Disable APIs vintrBitNum computation goes wrong and results in CSL API failure.

Fix:
- Store the vintrNum in newly added eventPrms->vintrNum
- For shared events populate with the vintrNum for Master Event
- For exlcusive events, populate its own vintrNum
  - This is similar to existing implementation fod coreIntrNum for same scenario

Signed-off-by: Don Dominic <a0486429@ti.com>
5 days ago[PDK-9595] UDMA UT: Added new testcase for Udma_eventEnable/Udma_eventDisable
Don Dominic [Wed, 7 Apr 2021 10:48:44 +0000 (16:18 +0530)]
[PDK-9595] UDMA UT: Added new testcase for Udma_eventEnable/Udma_eventDisable

- The test checks the event disable and enable for all UDMA instances.

Signed-off-by: Don Dominic <a0486429@ti.com>
5 days ago[PDK-9369] OSAL: FreeRTOS Support for J721E/J7VCL/AM65xx R5F cores
Don Dominic [Tue, 23 Mar 2021 06:19:01 +0000 (11:49 +0530)]
[PDK-9369] OSAL: FreeRTOS Support for J721E/J7VCL/AM65xx R5F cores

- Verified OSAL FreeRTOS UT on all R5F cores in j721e/j7200/am65xx

Signed-off-by: Don Dominic <a0486429@ti.com>
5 days ago[PDK-8667] UDMA Examples: Fix Issues with UDMA OSPI Flash Example on AM65xx
Don Dominic [Wed, 24 Mar 2021 15:35:44 +0000 (21:05 +0530)]
[PDK-8667] UDMA Examples: Fix Issues with UDMA OSPI Flash Example on AM65xx

- Enable Runtime relocation of .udma_critical_fxns / .udma_buffer_r5_tcm to TCM from loaded area
  - Load the above sections to MSMC
  - Run time relocate to TCMB
- Related Linker File and main soruce file updates

- Verified udma_baremetal_ospi_flash_testapp on AM65xx mcu1_0

Signed-off-by: Don Dominic <a0486429@ti.com>
6 days agofreertos porting for qspi and canfd
Prasad Konnur [Tue, 6 Apr 2021 13:33:52 +0000 (19:03 +0530)]
freertos porting for qspi and canfd

Signed-off-by: Prasad Konnur <prasadkonnur@ti.com>
6 days agoawr294x build fix
Prasad Konnur [Wed, 7 Apr 2021 05:24:23 +0000 (10:54 +0530)]
awr294x build fix

Signed-off-by: Prasad Konnur <prasadkonnur@ti.com>
7 days agoFixed Jenkins daily build error in adcbuf and cbuff driver files.
KALYAN VAGVALA [Mon, 5 Apr 2021 16:29:21 +0000 (21:59 +0530)]
Fixed Jenkins daily build error in adcbuf and cbuff driver files.

7 days agoaddressed review comments.
KALYAN VAGVALA [Mon, 5 Apr 2021 12:08:26 +0000 (17:38 +0530)]
addressed review comments.

7 days agoFixed CBUFF driver example build error.
KALYAN VAGVALA [Mon, 5 Apr 2021 10:03:06 +0000 (15:33 +0530)]
Fixed CBUFF driver example build error.

7 days ago[PDK-8179]: ICSSG HwAttrs error
Erick Narvaez [Wed, 20 Jan 2021 22:49:36 +0000 (16:49 -0600)]
[PDK-8179]: ICSSG HwAttrs error

Update incorrect marcro used for prussPru[0,1,2]IramSize. Previously
using IRAM_SIZE which is the size of the CTRL Registers (0x100), now fixed to
use the size of IRAM RAM size (0x4000).

Signed-off-by: Erick Narvaez <e-narvaez@ti.com>
7 days agofixed awr294x package build for freertos examples
Prasad Konnur [Tue, 6 Apr 2021 05:33:04 +0000 (11:03 +0530)]
fixed awr294x package build for freertos examples

Signed-off-by: Prasad Konnur <prasadkonnur@ti.com>
9 days ago[BugFix] PDK-9298 REL.CORESDK.07.03.02.04 REL.CORESDK.07.03.02.05
Prasad Konnur [Sun, 4 Apr 2021 05:33:29 +0000 (11:03 +0530)]
[BugFix] PDK-9298

 - Desc: Warning generated when driver compiled with non-TI compiler

 - Resolution: remove assignment inside if condition
   make it seperate statement before if condition.

Signed-off-by: Prasad Konnur <prasadkonnur@ti.com>
12 days agofixed package issue of gpadc REL.CORESDK.07.03.00.27 REL.CORESDK.07.03.02.03
Prasad Konnur [Thu, 1 Apr 2021 09:36:32 +0000 (15:06 +0530)]
fixed package issue of gpadc

Signed-off-by: Prasad Konnur <prasadkonnur@ti.com>
12 days agofixed package issue for tpr12
Prasad Konnur [Thu, 1 Apr 2021 07:33:36 +0000 (13:03 +0530)]
fixed package issue for tpr12

Signed-off-by: Prasad Konnur <prasadkonnur@ti.com>
12 days agoPDK-9382: Board: Fix for tpr12 evm csirx diag test build failure
M V Pratap Reddy [Thu, 1 Apr 2021 06:19:33 +0000 (11:49 +0530)]
PDK-9382: Board: Fix for tpr12 evm csirx diag test build failure

12 days agoImplementation of GPADC Driver for TPR12
Satish Sankella [Thu, 1 Apr 2021 05:24:34 +0000 (10:54 +0530)]
Implementation of GPADC Driver for TPR12

12 days agofreertos ut updated
Prasad Konnur [Wed, 31 Mar 2021 19:55:26 +0000 (01:25 +0530)]
freertos ut updated

 - added test pass print to ccs console
 - updated OS Type to freertos in makefile

Signed-off-by: Prasad Konnur <prasadkonnur@ti.com>
12 days agofixed baremetal interrupt issue for c66x
Prasad Konnur [Wed, 31 Mar 2021 17:25:30 +0000 (22:55 +0530)]
fixed baremetal interrupt issue for c66x

Signed-off-by: Prasad Konnur <prasadkonnur@ti.com>
12 days agoadded missing rcss gpio pins needed for awr interop
Sahin Okur [Wed, 2 Dec 2020 17:06:29 +0000 (11:06 -0600)]
added missing rcss gpio pins needed for awr interop

12 days agoupdating tpr12 evm syscfg template
Sahin Okur [Thu, 19 Nov 2020 21:31:05 +0000 (15:31 -0600)]
updating tpr12 evm syscfg template

12 days agoPDK-9382:Board: Fix for DSS UART diagnostic test failure on tpr12 EVM
M V Pratap Reddy [Wed, 24 Feb 2021 07:29:39 +0000 (12:59 +0530)]
PDK-9382:Board: Fix for DSS UART diagnostic test failure on tpr12 EVM

 - DSS UART test is not showing any logs while running through sbl due
   to wrong memory location of csl vectors.
   Diag linker command file is updated to fix the issue.

12 days agoadded changes related to AWR294x mailbox driver
KALYAN VAGVALA [Tue, 30 Mar 2021 09:15:27 +0000 (14:45 +0530)]
added changes related to AWR294x mailbox driver

2 weeks agofixed build issue for awr294x
Prasad Konnur [Tue, 30 Mar 2021 10:37:14 +0000 (16:07 +0530)]
fixed build issue for awr294x

Signed-off-by: Prasad Konnur <prasadkonnur@ti.com>
2 weeks agoAdded cbuff driver to support AWR294x
KALYAN VAGVALA [Tue, 30 Mar 2021 13:57:27 +0000 (19:27 +0530)]
Added cbuff driver to support AWR294x

2 weeks agofixed package build issue REL.CORESDK.07.03.02.02
Prasad Konnur [Tue, 30 Mar 2021 09:39:11 +0000 (15:09 +0530)]
fixed package build issue

Signed-off-by: Prasad Konnur <prasadkonnur@ti.com>
2 weeks agofixed watchdog preload config value configuration REL.CORESDK.07.03.02.01
Prasad Konnur [Tue, 30 Mar 2021 06:53:55 +0000 (12:23 +0530)]
fixed watchdog preload config value configuration

Signed-off-by: Prasad Konnur <prasadkonnur@ti.com>
2 weeks agoadded mibspi slavemode testapp
Prasad Konnur [Wed, 17 Mar 2021 01:44:13 +0000 (07:14 +0530)]
added mibspi slavemode testapp

Signed-off-by: Prasad Konnur <prasadkonnur@ti.com>
2 weeks agofixed qspi dma transfer for more than 32k length
Prasad Konnur [Wed, 10 Feb 2021 17:16:53 +0000 (22:46 +0530)]
fixed qspi dma transfer for more than 32k length

Signed-off-by: Prasad Konnur <prasadkonnur@ti.com>
2 weeks agoOSAL: TPR12: Build Fix
Don Dominic [Thu, 25 Mar 2021 15:31:59 +0000 (21:01 +0530)]
OSAL: TPR12: Build Fix

Signed-off-by: Don Dominic <a0486429@ti.com>
2 weeks agomodified adcbuf driver to use CSL library for its functionality.
KALYAN VAGVALA [Fri, 26 Mar 2021 12:52:07 +0000 (18:22 +0530)]
modified adcbuf driver to use CSL library for its functionality.

2 weeks agoadded pdk driver example for freertos
Prasad Konnur [Wed, 3 Mar 2021 16:09:38 +0000 (21:39 +0530)]
added pdk driver example for freertos

 - examples of following drivers enabled for freertos
   CRC, EDMA, Gpio, MIBSPI, UART, HWA, Mailbox, Watchdog

Signed-off-by: Prasad Konnur <prasadkonnur@ti.com>
2 weeks agoUDMA: AM65xx Build Fix REL.CORESDK.07.03.00.26
Don Dominic [Wed, 24 Mar 2021 14:53:48 +0000 (20:23 +0530)]
UDMA: AM65xx Build Fix

Signed-off-by: Don Dominic <a0486429@ti.com>
2 weeks agoSBL: Fix Issues with OSPI DMA boot
Don Dominic [Wed, 24 Mar 2021 12:06:04 +0000 (17:36 +0530)]
SBL: Fix Issues with OSPI DMA boot

- Init Sciclient with mcu1_0 core context as non-secure (default)
  - default board cfg is for non-secure mode
- Update in allignment with BoardCfg updates to remove shared allocation for mcu1_0
  and entries only for non-secure host
  - BoardCfg Update Commits: 770ca7fdd4d and 07897868126

- Without this update Udma_init for OSPI DMA boot would fail
  - Since,‘Sciclient_rmGetResourceRange’ is returning ‘start’ and ‘num’ as zero for all resources.

- Verified sbl_baremetal_boot_test_all_cores with OSPI DMA boot on J721E and J7200

Signed-off-by: Don Dominic <a0486429@ti.com>
3 weeks agoUpdate ESM test app to call Sciclient_init REL.CORESDK.07.03.00.25
Angela Stegmaier [Fri, 19 Mar 2021 22:01:41 +0000 (17:01 -0500)]
Update ESM test app to call Sciclient_init

ESM test app was calling Sciclient APIs without first calling
Sciclient_init. This led to a failure being returned from
Sciclient_rmGetModuleClkFreq and incorrectly calculated minimum
time interval for the error pin.

This patch fixes the error checking around the Sciclient_* calls
in the test app, and also adds the call to Sciclient_init.

Signed-off-by: Angela Stegmaier <angelabaker@ti.com>
3 weeks agoKW Critical and Error Fix
Ankur [Sat, 20 Mar 2021 05:25:35 +0000 (10:55 +0530)]
KW Critical and Error Fix

Signed-off-by: Ankur <a0132173@ti.com>
3 weeks agoOSPI: Static analysis critical issue fix
Aditya Wadhwa [Mon, 22 Mar 2021 19:56:29 +0000 (01:26 +0530)]
OSPI: Static analysis critical issue fix

Signed-off-by: Aditya Wadhwa <a0485151@ti.com>
3 weeks agoUDMA: KW Fixes
Don Dominic [Mon, 22 Mar 2021 15:08:19 +0000 (20:38 +0530)]
UDMA: KW Fixes

Verified udma_memcpy

Signed-off-by: Don Dominic <a0486429@ti.com>
3 weeks ago[PDK-6649] OSAL: nonos: Fix issues in TimerP_delte reset mask
Don Dominic [Mon, 22 Mar 2021 16:24:26 +0000 (21:54 +0530)]
[PDK-6649] OSAL: nonos: Fix issues in TimerP_delte reset mask

- Convert/Reverse map the Timer ID to corresponding timer bit id.
- 'TimerP_mapId' was called during TimerP_create to map the id to respective ID for that core for timer
- the reverse operation is required to clear/reset the appropriate bit in the gTimerAnyMask
- Hence added 'TimerP_reverseMapId' to do the reverse translation
- The above fxn is called before clearing the mask's bit filed to find the correct bit

- Issues was observed in J721E MAIN Domain mcu cores in which the 'TimerP_mapId' translation was active

- Verified OSAL UT

Signed-off-by: Don Dominic <a0486429@ti.com>
3 weeks ago[DSS M2M DRV]KW Fixes
Vivek Dhande [Mon, 22 Mar 2021 13:09:45 +0000 (18:39 +0530)]
[DSS M2M DRV]KW Fixes

Signed-off-by: Vivek Dhande <a0132295@ti.com>
3 weeks ago[DSS M2M DRV APP][Bug Fix][PDK-9479]DSS M2M sample application is crashing and failin...
Vivek Dhande [Fri, 19 Mar 2021 13:58:52 +0000 (19:28 +0530)]
[DSS M2M DRV APP][Bug Fix][PDK-9479]DSS M2M sample application is crashing and failing inturn

- Issue:
    - On running, application crashes and fails
- Root-cause:
    - Event configuration and internal mux for pipeline input was wrongly configured
- Fix:
    - Updated mux configuration of DSS module
    - Fixed few issues with wrong assert conditions

- Additional changes in the Patch
    - Updated driver Queue handling in case of driver is stopped i.e. after calling 'FVID2_stop()'
    - Added additional check  conditions for driver robustness

Signed-off-by: Vivek Dhande <a0132295@ti.com>
3 weeks agoccs lauch script : Reset MCU 11 to ensure tcm config take effect
sujith [Fri, 19 Mar 2021 17:28:29 +0000 (22:58 +0530)]
ccs lauch script : Reset MCU 11 to ensure tcm config take effect

Tested with mcspi master/slave example application

Signed-off-by: sujith <sujith.s@ti.com>
3 weeks agoPDK-9454 : McSPI : Baremetal master slave not functional
sujith [Fri, 19 Mar 2021 11:31:50 +0000 (17:01 +0530)]
PDK-9454 : McSPI : Baremetal master slave not functional

Root Cause : The slave on MPU 10, relies on SCI client APIs
to route interrupts. But MCU 10 hosts baremetal master
and cannot hosrt sci server

Fix : Moved the master to MCU 11 and hosted sci server on mcu 10

Test : Tested on j7200 and j721e
Works as expected on j7200 but DMA fails on j721e

Signed-off-by: sujith <sujith.s@ti.com>
3 weeks ago[PDK-9471] J7ES SBL: Fix Issues with sending and parsing of RM board config on HS...
Don Dominic [Fri, 19 Mar 2021 07:42:55 +0000 (13:12 +0530)]
[PDK-9471] J7ES SBL: Fix Issues with sending and parsing of RM board config on HS device

- BUILD_HS flag was missing in SBL IMG build for HS devices
  - only SBL_BUILD_HS was passed, which will include correct headers for SBL library build
- But others will include wrong sciclient header files (defaultBoardCfg for GP)
- Hence, SCICLIENT_BOARDCFG_RM_SIZE_IN_BYTES macro for GP was getting passed (instead of that defined for HS)
- And this corrupts/truncates the actual BoardCfg

- Fix by including BUILD_HS flag

Signed-off-by: Don Dominic <a0486429@ti.com>
3 weeks agoOSAL: C++ Build Fix: Resolve J7200 TimerP_getPreferredDefInst Build Errors
Don Dominic [Thu, 18 Mar 2021 06:51:51 +0000 (12:21 +0530)]
OSAL: C++ Build Fix: Resolve J7200 TimerP_getPreferredDefInst Build Errors

- Move extern inline Fxn definition of 'TimerP_getPreferredDefInst'
  from 'osal/soc/j7200/TimerP_default_r5f.c' to header file 'osal/soc/j7200/osal_soc.h'
- Fxn is refernced in Arch_utils.c,
  which will break C++ build if extern "inline" fxn defined in different source file
- Issue introduced by "b431aefd763ff2f15468e87f67038ed5db55f50f#packages/ti/osal/soc/j7200/osal_soc.h"

Signed-off-by: Don Dominic <a0486429@ti.com>
3 weeks agoC++ Build fix
Ankur [Thu, 18 Mar 2021 06:23:22 +0000 (11:53 +0530)]
C++ Build fix

Signed-off-by: Ankur <a0132173@ti.com>
3 weeks agoSciclient UT: Fix app failure for C7x/C66x cores REL.CORESDK.07.03.00.23 REL.CORESDK.07.03.00.24
Don Dominic [Wed, 17 Mar 2021 10:57:06 +0000 (16:27 +0530)]
Sciclient UT: Fix app failure for C7x/C66x cores

- Board_unlockMMR() was failing from C7x/C66x
- hence UART_STUDIO , PINMUX was not getting initialized
- This results in UART print issues in the app

- BOARD_INIT_UNLOCK_MMR was added for AM64x
  Ref: https://bitbucket.itg.ti.com/projects/PROCESSOR-SDK/repos/pdk/commits/924bc3e7347515cf69ef89ac71845942ef9576f7#packages/ti/drv/sciclient/examples/common/sciclient_appCommon.c
- Hence protect with #ifdef for AM64x to unblock issues on C66x/C7x on J7

- Verified UT on C7x/C66x/R5/A72 on J7

Signed-off-by: Don Dominic <a0486429@ti.com>
3 weeks agoOSPI: Build fixes for cached applications
Aditya Wadhwa [Wed, 17 Mar 2021 09:38:47 +0000 (15:08 +0530)]
OSPI: Build fixes for cached applications

Signed-off-by: Aditya Wadhwa <a0485151@ti.com>
3 weeks agoPDK-9464 : J7200 : I2C Demo not functional on mcu 21
sujith [Tue, 16 Mar 2021 18:58:05 +0000 (00:28 +0530)]
PDK-9464 : J7200 : I2C Demo not functional on mcu 21

Root cause : Wrong interrupt number is used for mcu 21.
The commit 0d59f6540b introduced this issue

Fix : Limited the interrupt offset to j721e alone

Test : tested on j7200 mcu 21

Signed-off-by: sujith <sujith.s@ti.com>
3 weeks agoUpdating C7x CGT to 1.4.2
Ankur [Wed, 17 Mar 2021 06:29:35 +0000 (11:59 +0530)]
Updating C7x CGT to 1.4.2

Signed-off-by: Ankur <a0132173@ti.com>
4 weeks agoPTEST-2548: Add SBL combined.appimage build for AM65xx
Jonathan Bergsagel [Wed, 10 Mar 2021 22:30:15 +0000 (16:30 -0600)]
PTEST-2548: Add SBL combined.appimage build for AM65xx

Adds base-board.dtb file for AM65xx combined.appimage
builds.

Signed-off-by: Jonathan Bergsagel <jbergsagel@ti.com>
4 weeks ago[PDK-6649] OSAL: nonos: Fix TimerP_delete to update gTimerAnyMask
Don Dominic [Tue, 16 Mar 2021 10:31:07 +0000 (16:01 +0530)]
[PDK-6649] OSAL: nonos: Fix TimerP_delete to update gTimerAnyMask

- TimerP_delete was not resetting the the timer's bit field in the gTimerAnyMask
  - Hence the mask was getting exhausted after log2(TIMERP_AVAILABLE_MASK+1) no.of TimerP_create
  - This resulted in TimerP_create failures even when there are unused timers
- Update the timer's bit field in the mask while deleting the timer to resolve this
- For v0/v1, Global Timer Structure's used flag was cleared only when Timer ISR is non-NULL
  - Fixed this to clear irrespective of Timer ISR

- Also updated the UT with a test to catch this failure
 - This tests TimerP_create and TimerP_delete repeatedly for more no.of times than that in the mask,
   to make sure freeing up of resources was successful
 - The test which was failing earlier, now works fine with the updates in source

Signed-off-by: Don Dominic <a0486429@ti.com>
4 weeks ago[PDK-8586] SBL: OSPI: Early CAN response optimization
Aditya Wadhwa [Thu, 4 Mar 2021 18:51:55 +0000 (00:21 +0530)]
[PDK-8586] SBL: OSPI: Early CAN response optimization

Signed-off-by: Aditya Wadhwa <a0485151@ti.com>
4 weeks ago[PDK-6848] OSAL: SYSBIOS: TaskP_delete to delete task only when deleteTerminatedTasks...
Don Dominic [Mon, 15 Mar 2021 15:34:44 +0000 (21:04 +0530)]
[PDK-6848] OSAL: SYSBIOS: TaskP_delete to delete task only when deleteTerminatedTasks flag is disabled

- In case of apps with the BIOS cfg 'Task.deleteTerminatedTasks' enabled,
  cleanup happens in BIOS idle task.
- Deleting terminated task will results in BIOS error.
- Hence to make BIOS config independent, TaskP_delete will check for the flag before deleting any task.

Signed-off-by: Don Dominic <a0486429@ti.com>
4 weeks ago[DSS DRV][Bug Fix][PDK-5040]Display stops working if two pipelines are started back... REL.CORESDK.07.03.00.22
Vivek Dhande [Sun, 14 Mar 2021 14:00:01 +0000 (19:30 +0530)]
[DSS DRV][Bug Fix][PDK-5040]Display stops working if two pipelines are started back to back

- Issue:
    - When two display pipelines (connected to the same overlay) are started back to back by calling FVID2_Start() twice, pipelines do not start and does not display anything.
    - Same is observed for 2 LCDs
- Resolution:
    - Second start has to wait for a VSYNC to come from first pipeline before starting
- Fix:
    - We should not allow pipelines to be started back to back until the first vsync callback of pipeline comes.
    - Wait for semaphore before starting second pipeline

Signed-off-by: Vivek Dhande <a0132295@ti.com>
4 weeks ago[DSS M2M DRV]Doxygen build fix
Vivek Dhande [Mon, 15 Mar 2021 06:53:10 +0000 (12:23 +0530)]
[DSS M2M DRV]Doxygen build fix

- This patch also contains small driver and app update

Signed-off-by: Vivek Dhande <a0132295@ti.com>
4 weeks agoOSPI: Build Fix REL.CORESDK.07.03.00.21
Aditya Wadhwa [Fri, 12 Mar 2021 09:24:39 +0000 (14:54 +0530)]
OSPI: Build Fix

Signed-off-by: Aditya Wadhwa <a0485151@ti.com>
4 weeks agoMigrating to SYSFW version v2021.01a
Piyali Goswami [Fri, 12 Mar 2021 05:43:01 +0000 (11:13 +0530)]
Migrating to SYSFW version v2021.01a

Migrating to v2021.01a

4 weeks agoFixes for Sciclient to not globally disable interrupts
Piyali Goswami [Fri, 12 Mar 2021 05:00:33 +0000 (10:30 +0530)]
Fixes for Sciclient to not globally disable interrupts

Added a software mechanism to not have to disable interrupts when trying polling mode of operation and still allow secure proxy to not be overwritten by multiple threads.

Fixes: PDK-8945

Signed-off-by: Piyali Goswami <piyali_g@ti.com>
4 weeks ago[PDK-9436] UDMA : Update offset of C7x events associated to CLEC
Don Dominic [Thu, 11 Mar 2021 18:27:56 +0000 (23:57 +0530)]
[PDK-9436] UDMA : Update offset of C7x events associated to CLEC

Update offset of C7x events associated to CLEC
which will be used for various UDMA events
such that it won't overlap with that for
DRU Local Events(configured by vision apps/TIDL usecases)
or other drivers.

- Currently vision apps configures CLEC DRU Local events to C7x events starting from 32.
  - Configures for 16 DRU channels allocated for C7x
- Hence to avoid resource conflict UDMA driver will manage C7x events starting from an offset

- Statically partition 64 C7x events into different sets.
  - 0 -31 left for other driver
  - 32-47 for routing DRU Local events
  - 48-63 to be managed by UDMA for various udma events

- This fixes ADASVISION-2344

Signed-off-by: Don Dominic <a0486429@ti.com>
4 weeks ago[WIP][PDK-8726]OSPI: Separate OSPI tests keeping memory cached/non-cached
Aditya Wadhwa [Thu, 11 Mar 2021 12:09:30 +0000 (17:39 +0530)]
[WIP][PDK-8726]OSPI: Separate OSPI tests keeping memory cached/non-cached

- added a cacheEnable field to the hwAttrs

Signed-off-by: Aditya Wadhwa <a0485151@ti.com>
4 weeks ago[WIP][PDK-8726]OSPI: Separate OSPI tests keeping memory cached/non-cached
Aditya Wadhwa [Thu, 11 Mar 2021 07:44:31 +0000 (13:14 +0530)]
[WIP][PDK-8726]OSPI: Separate OSPI tests keeping memory cached/non-cached

- added copyright comments
- deleted extra file

Signed-off-by: Aditya Wadhwa <a0485151@ti.com>
4 weeks ago[WIP][PDK-8726]OSPI: Separate OSPI tests keeping memory cached/non-cached
Aditya Wadhwa [Wed, 10 Mar 2021 17:59:57 +0000 (23:29 +0530)]
[WIP][PDK-8726]OSPI: Separate OSPI tests keeping memory cached/non-cached

- switched to macro instead of hard-coded values
- flag not working

Signed-off-by: Aditya Wadhwa <a0485151@ti.com>
4 weeks ago[PDK-8726]OSPI: Separate OSPI tests keeping memory cached/non-cached
Aditya Wadhwa [Fri, 26 Feb 2021 14:15:02 +0000 (19:45 +0530)]
[PDK-8726]OSPI: Separate OSPI tests keeping memory cached/non-cached

- enabled interrupt for INDAC tests

Signed-off-by: Aditya Wadhwa <a0485151@ti.com>
4 weeks ago[PDK-8726]OSPI: Separate OSPI tests keeping memory cached/non-cached
Aditya Wadhwa [Fri, 26 Feb 2021 14:00:12 +0000 (19:30 +0530)]
[PDK-8726]OSPI: Separate OSPI tests keeping memory cached/non-cached

- all tests passing

Signed-off-by: Aditya Wadhwa <a0485151@ti.com>
4 weeks ago[WIP][PDK-8726]OSPI: Separate OSPI tests keeping memory cached/non-cached
Aditya Wadhwa [Thu, 25 Feb 2021 18:17:23 +0000 (23:47 +0530)]
[WIP][PDK-8726]OSPI: Separate OSPI tests keeping memory cached/non-cached

- DAC+DMA, Legacy SPI working
- DAC has data mismatch
- INDAC failure

Signed-off-by: Aditya Wadhwa <a0485151@ti.com>
4 weeks ago[WIP][PDK-8726]OSPI: Separate OSPI tests keeping memory cached/non-cached
Aditya Wadhwa [Fri, 15 Jan 2021 18:56:29 +0000 (00:26 +0530)]
[WIP][PDK-8726]OSPI: Separate OSPI tests keeping memory cached/non-cached

- OPSI FSS DAT0 memory cached/non-cached
- PHY memory always non-cached
- Build failures

Signed-off-by: Aditya Wadhwa <a0485151@ti.com>
4 weeks ago[WIP][PDK-8726] OSPI: Separate OPSI tests keeping memory cached/non-cached
Aditya Wadhwa [Wed, 13 Jan 2021 10:36:01 +0000 (16:06 +0530)]
[WIP][PDK-8726] OSPI: Separate OPSI tests keeping memory cached/non-cached

- Added support for baremetal apps

Signed-off-by: Aditya Wadhwa <a0485151@ti.com>
4 weeks ago[WIP][PDK-8726] Separate OSPI tests keeping memory cached/non-cached
Aditya Wadhwa [Wed, 6 Jan 2021 18:28:07 +0000 (23:58 +0530)]
[WIP][PDK-8726] Separate OSPI tests keeping memory cached/non-cached

- added new tests that export cache as enabled
- separate mpu.xs files for cache enabled/disabled
- RTOS implemented, baremetal pending

Signed-off-by: Aditya Wadhwa <a0485151@ti.com>
4 weeks agoHyperflash : Tested with board diag on j721e es 1.1 REL.CORESDK.07.03.00.20
sujith [Tue, 12 Jan 2021 10:17:35 +0000 (15:47 +0530)]
Hyperflash : Tested with board diag on j721e es 1.1

Works fine in 166 MHz (333 MHz device clock)

Require to clean up code

Signed-off-by: sujith <sujith.s@ti.com>
4 weeks agoPDK-6706 : SPI Master example is not functional
sujith [Thu, 11 Mar 2021 16:10:42 +0000 (21:40 +0530)]
PDK-6706 : SPI Master example is not functional

The Master example would perform, couple of transactions with
slave app and stall/timeout with an error.

The "loopback" tests would always fail

Root Cause : The driver do not support operating McSPI in
digital loopback mode. As the IP did not support the same.

Fix: Disabled the loopback mode of operation for j721e & j7200

Test : Tested on j721e evm

Signed-off-by: sujith <sujith.s@ti.com>
4 weeks ago[PDK-9435] Board: DDR: Enable DDR Thermal Testapp for J7200
Don Dominic [Thu, 11 Mar 2021 14:45:36 +0000 (20:15 +0530)]
[PDK-9435] Board: DDR: Enable DDR Thermal Testapp for J7200

- enabled board_ddr_thermal_test_app for j7200 mcu1_0/mcu1_1/mcu2_0/mcu2_1
- Updates in board lib 'board/src/j7200_evm/board_ddrtempmonitor.c'
  - to enable all r5 cores
  - no interrupt routers b/w DDR controller and Main Domain R5
- so skip Sciclient IRQ Routing
  - for MCU Domain R5 cores
- query the IR Range from BoardCfg
  - translate to Core Interrupt Idx and configure path

Signed-off-by: Don Dominic <a0486429@ti.com>
4 weeks agoFirmware gen.sh update for ES1.1 HS testing
Piyali Goswami [Thu, 11 Mar 2021 10:26:37 +0000 (15:56 +0530)]
Firmware gen.sh update for ES1.1 HS testing

Firmware Gen.sh update for ES1.1 HS testing

Signed-off-by: Piyali Goswami <piyali_g@ti.com>
4 weeks agoFix for proper sending and parsing of RM board config in HS
Piyali Goswami [Thu, 11 Mar 2021 05:59:57 +0000 (11:29 +0530)]
Fix for proper sending and parsing of RM board config in HS

Ignoring of the certificate is handled correctly by adjusting the size at source when the certificate is not passed and at sink when the certificate is passed.

Fixes: PDK-9427

Signed-off-by: Piyali Goswami <piyali_g@ti.com>
4 weeks ago[DSS M2M APP]Added sample application for DSS M2M Driver
Vivek Dhande [Wed, 10 Mar 2021 13:26:23 +0000 (18:56 +0530)]
[DSS M2M APP]Added sample application for DSS M2M Driver

Signed-off-by: Vivek Dhande <a0132295@ti.com>
4 weeks agofreertos: Add FreeRTOS kernel folders to gitignore
Don Dominic [Mon, 8 Mar 2021 04:26:45 +0000 (09:56 +0530)]
freertos: Add FreeRTOS kernel folders to gitignore

- Add the following folders in ti/kernel/freertos to gitignore
  - FreeRTOS-Labs/
  - FreeRTOS-LTS/
- These are cloned from https://github.com/FreeRTOS/ as defined in psdk.xml

Signed-off-by: Don Dominic <a0486429@ti.com>
4 weeks agoPDK-9285: IPC: Fix KW issues
Angela Stegmaier [Fri, 29 Jan 2021 23:52:34 +0000 (17:52 -0600)]
PDK-9285: IPC: Fix KW issues

Fix KW issues for AM64X IPC and MB build.

Signed-off-by: Angela Stegmaier <angelabaker@ti.com>
4 weeks ago[DSS M2M Driver]Addressed review comments
Vivek Dhande [Tue, 9 Mar 2021 18:48:01 +0000 (00:18 +0530)]
[DSS M2M Driver]Addressed review comments

Signed-off-by: Vivek Dhande <a0132295@ti.com>
4 weeks ago[DSS M2M Driver]Fixed Doxygen API Guide Warnings
Vivek Dhande [Tue, 9 Mar 2021 09:55:11 +0000 (15:25 +0530)]
[DSS M2M Driver]Fixed Doxygen API Guide Warnings

Signed-off-by: Vivek Dhande <a0132295@ti.com>
4 weeks ago[DSS M2M Driver]Driver implementation: Patch-2
Vivek Dhande [Fri, 5 Mar 2021 10:02:23 +0000 (15:32 +0530)]
[DSS M2M Driver]Driver implementation: Patch-2

- Added implementation for 'Fvid2_processRequest()' and 'Fvid2_getProcessedRequest()'
- Implemented 'IOCTL_DSS_DCTRL_SET_PATH' and 'IOCTL_DSS_DCTRL_CLEAR_PATH' IOCTLs
- Implemented DMA completion Events
- Implemented internal functions needed for above

Signed-off-by: Vivek Dhande <a0132295@ti.com>
4 weeks ago[DSS M2M Driver]Driver implementation: Patch-1
Vivek Dhande [Sat, 27 Feb 2021 07:40:51 +0000 (13:10 +0530)]
[DSS M2M Driver]Driver implementation: Patch-1

- Added 'dss_m2mPriv.h'
- This files contains following
    - internal structures required for maintaining driver and HW Module states
    - Added support for multiple open/create to support multiple channel support

Signed-off-by: Vivek Dhande <a0132295@ti.com>
4 weeks ago[DSS M2M DRV][PDK-5179]DSS FVID2 Writeback M2M Driver
Vivek Dhande [Fri, 19 Feb 2021 17:12:18 +0000 (22:42 +0530)]
[DSS M2M DRV][PDK-5179]DSS FVID2 Writeback M2M Driver

- [PDK-5184]DSS Writeback Pipeline Support
- Added interface for DSS M2M driver
- Added nodes & edges for WB pipeline

Signed-off-by: Vivek Dhande <a0132295@ti.com>
4 weeks ago[PDK-9432] Sciclient : Rebased and Regenerated Sciclient Binaries
Don Dominic [Wed, 10 Mar 2021 18:30:18 +0000 (00:00 +0530)]
[PDK-9432] Sciclient : Rebased and Regenerated Sciclient Binaries

- Regenerated sclient binaries after rebasing
- Validated memcpy with latest binaries on j721e/j7200 mcu1_0 and mcu2_0 with noboot and uart boot.

Signed-off-by: Don Dominic <a0486429@ti.com>
4 weeks ago[PDK-9432] J7200 BoardCfg: Update to the latest auto-generated from SysConfig/k3...
Don Dominic [Wed, 10 Mar 2021 17:24:58 +0000 (22:54 +0530)]
[PDK-9432] J7200 BoardCfg: Update to the latest auto-generated from SysConfig/k3-resource-partitioning

- This includes the updates in the following:
   - Remove shared allocation for MCU R5
       https://bitbucket.itg.ti.com/projects/PSDKLA/repos/k3-resource-partitioning/pull-requests/10/overview

- Rebuilt sciclient_boardcfg; sciclient_boardcfg for HS; sciclient_ccs_init; sciserver_testapp and copied to tools/ccsLoadDmsc

4 weeks ago[PDK-9432] J721E BoardCfg: Update to the latest auto-generated from SysConfig/k3...
Don Dominic [Wed, 10 Mar 2021 16:03:33 +0000 (21:33 +0530)]
[PDK-9432] J721E BoardCfg: Update to the latest auto-generated from SysConfig/k3-resource-partitioning

- This includes the updates in the following:
   - Remove shared allocation for MCU R5
       https://bitbucket.itg.ti.com/projects/PSDKLA/repos/k3-resource-partitioning/pull-requests/10/overview
   - Increase virt id range for A72_2
       https://bitbucket.itg.ti.com/projects/PSDKLA/repos/k3-resource-partitioning/pull-requests/12/overview

- Rebuilt sciclient_boardcfg; sciclient_boardcfg for HS; sciclient_ccs_init; sciserver_testapp and copied to tools/ccsLoadDmsc

4 weeks ago[PDK-9432] Sciclient : Updates to support BoardCfg with mcu1_0 non-secure host id...
Don Dominic [Wed, 10 Mar 2021 14:49:36 +0000 (20:19 +0530)]
[PDK-9432] Sciclient : Updates to support BoardCfg with mcu1_0 non-secure host id entries

-  Do not force mcu1_0 to be in secure mode for all cases
-  Set to secure mode in case the message is to be forwarded
-  Also The MCU1_0 will always be secure when trying to send the message to the TIFS directly to avoid self blocking.

Signed-off-by: Don Dominic <a0486429@ti.com>
4 weeks agoudma_event.c: Do not pass a NULL resp payload for the Sciclient_rmUdmapGcfgCfg function
Piyali Goswami [Thu, 11 Mar 2021 03:04:13 +0000 (08:34 +0530)]
udma_event.c: Do not pass a NULL resp payload for the Sciclient_rmUdmapGcfgCfg function

Response payload should not be NULL. The API fails in that case

Fixes: PDK-9431

Signed-off-by: Piyali Goswami <piyali_g@ti.com>
4 weeks agocopied binary and built firmware header .h file
Anuraag Tummanapally [Wed, 10 Mar 2021 15:55:49 +0000 (15:55 +0000)]
copied binary and built firmware header .h file

4 weeks agoPDK-6534 : un-expected ISR if the timer were running, before creation
Sujith S [Wed, 10 Mar 2021 09:00:27 +0000 (14:30 +0530)]
PDK-6534 : un-expected ISR if the timer were running, before creation

If the timer was running before the timer was created, on creation
especially in user start mode, an ISR would be triggered before
the timer was started.

Root cause : The timer module is not reset before the ISR registration
so, if the timer count lapses after creation but before starting the
the timer, an FALSE isr would be triggered.

Fix: Reset the timer peripheral at create time. This ensures that
counter is disabled and interrupt notification is disabled

Testing: Tested both baremetal & ti rtos unit test of the timer, it
works as expected. OSAL_Baremetal_TestApp and OSAL_TestApp works as
expected

Signed-off-by: Sujith S <sujith.s@ti.com>
5 weeks agoMMC: Build break fix REL.CORESDK.07.01.06.03 REL.CORESDK.07.01.06.04 REL.CORESDK.07.03.00.18 REL.CORESDK.07.03.00.19
Sujith S [Sat, 6 Mar 2021 16:28:48 +0000 (21:58 +0530)]
MMC: Build break fix

Signed-off-by: Sujith S <sujith.s@ti.com>
5 weeks agofreertos: posix support only in git and not in rel pkg REL.CORESDK.07.03.00.17
Badri S [Sat, 6 Mar 2021 04:07:00 +0000 (09:37 +0530)]
freertos: posix support only in git and not in rel pkg

remove support for freertos posix in release package
support only in development git folder

Signed-off-by: Badri S <badri@ti.com>
5 weeks agoPDK-7484 : Disabled HS400 from the supported modes list
Sujith S [Fri, 5 Mar 2021 20:38:47 +0000 (02:08 +0530)]
PDK-7484 : Disabled HS400 from the supported modes list

As per j721e errata (i2024) HS 400 is not supported
on mmc-sd instance 0

Tested MMCSD Regressions on j721e ES 1.0 EVM

ü01000000011a00006a3765730000000000000000475020200200010002000100CCSBL Revision: 01.00.10.00 (Mar  6 2021 - 01:34:19)
Waiting for tifs.bin ...
CCTIFS  ver: 21.1.0--v2021.01 (Terrific Llam
Waiting for multicore app ...
CCCCalibration Start
Calibration: Ticks per ms is 999994
Calibration Completed
:
:
MMCSD Regression Test Menu
--------------------------
 Test ID:   Description    Powercycle Required?
    0          DS Mode 1-bit Test            No
    1          DS Mode Test                  No
    2          HS Mode Test                  No
    8          SDR12 Mode Test               Yes
    9          SDR25 Mode Test               Yes
   10          SDR50 Mode Test               Yes
   11          DDR50 Mode Test               Yes
   13         Default Unit Test (Max speed)           Yes
   -1          All non powercycle tests           No
   -2          Exit the regression test           No

Please enter a test ID from the above list: -2
 Test ID Entered = -2

Exiting the regression test

All tests have PASSED
3/3 tests passed

Signed-off-by: Sujith S <sujith.s@ti.com>
5 weeks agoBuild Fix: Fix build issues with Board DDR Temp Monitor
Don Dominic [Fri, 5 Mar 2021 15:29:56 +0000 (20:59 +0530)]
Build Fix: Fix build issues with Board DDR Temp Monitor

- Not applicable for mpu1_0
- Removed #ifdef for BUILD_MCU1_0 when added support for main R5 cores
https://bitbucket.itg.ti.com/projects/PROCESSOR-SDK/repos/pdk/commits/8e4f1ae9e303b3627fbe71b81bde75b6dd601a07#packages/ti/board/src/j721e_evm/board_ddrtempmonitor.c
- But should have protected with MCU ifdef
- Fixed by adding #ifdef for BUILD_MCU

Signed-off-by: Don Dominic <a0486429@ti.com>
5 weeks ago[PDK-9317][PDK-9316] Board: DDR: Updates in Board DDR thermal monitoring REL.CORESDK.07.01.06.02
Don Dominic [Mon, 8 Feb 2021 16:00:09 +0000 (21:30 +0530)]
[PDK-9317][PDK-9316] Board: DDR: Updates in Board DDR thermal monitoring

- Query from BoardCfg to get the  allowed core interrupt IRQ idx
- Add support for other R5F cores

Signed-off-by: Don Dominic <a0486429@ti.com>
5 weeks ago[PDK-9312] FreeeRTOS: Addressed review comments
Don Dominic [Fri, 5 Mar 2021 09:24:52 +0000 (14:54 +0530)]
[PDK-9312] FreeeRTOS: Addressed review comments

- Updated linker file to use OCMC/DDR instead of MSMC
- Many times apps/customer copy our linker and struggled due to use of MSMC for MCU R5 apps

Signed-off-by: Don Dominic <a0486429@ti.com>