processor-sdk/pdk.git
3 hours agoETHFW-1734 - timeSync: v2: Add support for ICSSG Dual-MAC master REL.CORESDK.07.03.00.42
P. Mohan Reddy [Mon, 10 May 2021 10:20:17 +0000 (15:50 +0530)]
ETHFW-1734 - timeSync: v2: Add support for ICSSG Dual-MAC

Timesync adaptation layer support added for ICSSG Dual-MAC. All 6
instances in AM65xx are supported.

Signed-off-by: P. Mohan Reddy <x1073713@ti.com>
Signed-off-by: Misael Lopez Cruz <misael.lopez@ti.com>
43 hours agosbl updated for awr294x REL.CORESDK.07.03.00.39 REL.CORESDK.07.03.00.40 REL.CORESDK.07.03.00.41
Prasad Konnur [Fri, 14 May 2021 10:27:53 +0000 (15:57 +0530)]
sbl updated for awr294x

Signed-off-by: Prasad Konnur <prasadkonnur@ti.com>
43 hours agoawr294x build fixes for i2c and gpio
Badri S [Fri, 14 May 2021 17:57:56 +0000 (23:27 +0530)]
awr294x build fixes for i2c and gpio

awr294x does not have rcss instances of i2c/gpio
with correctly updated memory map file generated
to address PDK-9640 the gpio and i2c driver are
updated to remove references to rcss instance
not present in the soc

Signed-off-by: Badri S <badri@ti.com>
44 hours agoAM65xx : PDK-9689 : Disabling free rtos builf for AM65xx REL.CORESDK.07.03.00.38
sujith [Sat, 15 May 2021 13:30:19 +0000 (19:00 +0530)]
AM65xx : PDK-9689 : Disabling free rtos builf for AM65xx

Signed-off-by: sujith <sujith.s@ti.com>
44 hours agoOSPI: AM65XX OSPI Test Cases Fix
Aditya Wadhwa [Wed, 12 May 2021 14:58:08 +0000 (20:28 +0530)]
OSPI: AM65XX OSPI Test Cases Fix

Signed-off-by: Aditya Wadhwa <a0485151@ti.com>
2 days agoBuild Fix
Don Dominic [Thu, 13 May 2021 19:23:59 +0000 (00:53 +0530)]
Build Fix

Signed-off-by: Don Dominic <a0486429@ti.com>
2 days ago[PDK-9491]: Sciclient: Remove duplication of sciserver library for each rtos type
Don Dominic [Thu, 13 May 2021 06:25:55 +0000 (11:55 +0530)]
[PDK-9491]: Sciclient: Remove duplication of sciserver library for each rtos type

- Retain sciserver_tirtos lib (For all RTOS types)
- Remove passing INCLUDE_EXTERNAL_INTERFACES xdc/bios/freertos for sciserver library
- Remove passing COMP_LIST_COMMON for sciserver library

Signed-off-by: Don Dominic <a0486429@ti.com>
2 days ago[PDK-9491]: Sciclient and Sciserver Migration to Free RTOS - Part 2
Don Dominic [Tue, 27 Apr 2021 17:58:07 +0000 (23:28 +0530)]
[PDK-9491]: Sciclient and Sciserver Migration to Free RTOS - Part 2

- Additional updates for Sciclient and Sciserver Migration to Free RTOS
  - Add OS_init() before any other OS calls (like Task creation, OS_start, etc..)
    - This is required in case of SafeRTOS for schedular init.
    - For other FreeRTOS/TI-RTOS, it's a dummy implementation and is safe to call unconditionally for all OSes
- Use macro list for RTOS app rules generation in sciclient_component.mk
- Use macro list to generate BOARDLIST for each RTOS type
- Register FreeRTOS Data Abort Exception callback for Firewall testapp
- Required updates in launch script and sbl_appimagegen to pick freertos/tirtos version of sciserver testapp
  - Added new flag in launch.js for the same
- Other related cleanup
  - Remove duplicate entry for .text.hwi in FreeRTOS Default Linker Files

Signed-off-by: Don Dominic <a0486429@ti.com>
2 days agoPDK-9491: Sciclient and Sciserver Migration to Free RTOS
Piyali Goswami [Wed, 7 Apr 2021 11:55:04 +0000 (17:25 +0530)]
PDK-9491: Sciclient and Sciserver Migration to Free RTOS

Sciclient and Sciserver Migration to free RTOS

Signed-off-by: Piyali Goswami <piyali_g@ti.com>
3 days agotimeSync: Fix AM65xx build issue REL.CORESDK.07.03.00.36 REL.CORESDK.07.03.00.37
Misael Lopez Cruz [Fri, 14 May 2021 09:28:12 +0000 (04:28 -0500)]
timeSync: Fix AM65xx build issue

AM65xx timesync should use v2, but it was incorrectly building from v1
source files.

Signed-off-by: Misael Lopez Cruz <misael.lopez@ti.com>
4 days agofixed pdk packaging issue
Prasad Konnur [Wed, 12 May 2021 16:09:36 +0000 (21:39 +0530)]
fixed pdk packaging issue

Signed-off-by: Prasad Konnur <prasadkonnur@ti.com>
4 days ago[DSS Driver FreeRTOS Porting][PDK-9502]DSS Driver migration to FreeRTOS on R5F
Vivek Dhande [Tue, 11 May 2021 12:21:21 +0000 (17:51 +0530)]
[DSS Driver FreeRTOS Porting][PDK-9502]DSS Driver migration to FreeRTOS on R5F

- dss_m2m_testapp

Signed-off-by: Vivek Dhande <a0132295@ti.com>
4 days ago[DSS Driver FreeRTOS Porting][PDK-9502]DSS Driver migration to FreeRTOS on R5F
Vivek Dhande [Tue, 11 May 2021 10:08:04 +0000 (15:38 +0530)]
[DSS Driver FreeRTOS Porting][PDK-9502]DSS Driver migration to FreeRTOS on R5F

- dss_display_testapp
- This application will only calculate load in TIRTOS

Signed-off-by: Vivek Dhande <a0132295@ti.com>
4 days ago[DSS Driver FreeRTOS Porting][PDK-9502]DSS Driver migration to FreeRTOS on R5F
Vivek Dhande [Tue, 11 May 2021 08:17:40 +0000 (13:47 +0530)]
[DSS Driver FreeRTOS Porting][PDK-9502]DSS Driver migration to FreeRTOS on R5F

- dss_colorbar_testapp

Signed-off-by: Vivek Dhande <a0132295@ti.com>
4 days agoupdates for awr294x
Prasad Konnur [Wed, 12 May 2021 13:03:15 +0000 (18:33 +0530)]
updates for awr294x

 - fixed osal test for awr294x
 - Added sim build for canfd mibspi examples
 - enabled sim build for awr294x examples. should revert when testing on EVM
 - removed rss mibspi instance as it is not existing for awr294x

Signed-off-by: Prasad Konnur <prasadkonnur@ti.com>
6 days ago[Bug Fix][DSS M2M Driver][PDK-9669][DSS M2M DRV]Driver throws error/fails in case...
Vivek Dhande [Mon, 10 May 2021 09:11:21 +0000 (14:41 +0530)]
[Bug Fix][DSS M2M Driver][PDK-9669][DSS M2M DRV]Driver throws error/fails in case of stress test for multi-channel

- Issue:
    - Driver updates wrong driver instance (virtual context) and runs out of submit buffer in case of stress test for multi-channel.
    - This is used internally for status maintenance
- Root-cause:
    - Wrong index is used while updating virtual context status
    - objects de-queued from 'doneQ' to 'freeQ' during delete sequence are not queued back
- Resolution:
    - Use driver instance ID as an index to array used for state management
    - queue back objects de-queued from 'doneQ' to 'freeQ' during delete sequence

Signed-off-by: Vivek Dhande <a0132295@ti.com>
6 days ago[PDK-9634] Board: Fix for DDR init hang issue on j7200 evm during warm reset REL.CORESDK.07.03.03.05
Don Dominic [Mon, 10 May 2021 11:41:05 +0000 (17:11 +0530)]
[PDK-9634] Board: Fix for DDR init hang issue on j7200 evm during warm reset

 - DDR initialization is hanging during the warm reset which is caused
   by PLL bypass function. Need to unlock the PLL registers for access
   during the warm reset.
 - Identical changes for j721e evm : https://bitbucket.itg.ti.com/projects/PROCESSOR-SDK/repos/pdk/commits/8a87a7a78667513bdb491607aa9fb51148274fb7

Signed-off-by: Don Dominic <a0486429@ti.com>
7 days agoboard: am65xx: Use PDK-relative path for csl_types.h
Misael Lopez Cruz [Thu, 6 May 2021 21:46:51 +0000 (16:46 -0500)]
board: am65xx: Use PDK-relative path for csl_types.h

This is a continuation of the workaround for PDK-9662 implemented in
  7838afb0 - board: am65xx: Use PDK-relative path for pinmux.h

Signed-off-by: Misael Lopez Cruz <misael.lopez@ti.com>
7 days agoUpdated to take numOfClks as parameter for ADCBufMMWave_CMD_START_TEST_PATTERN command.
KALYAN VAGVALA [Thu, 6 May 2021 10:33:35 +0000 (16:03 +0530)]
Updated to take numOfClks as parameter for ADCBufMMWave_CMD_START_TEST_PATTERN command.

7 days agoPDK-8884: Board: Updated AWR294x board clock configurations
M V Pratap Reddy [Fri, 7 May 2021 23:34:09 +0000 (05:04 +0530)]
PDK-8884: Board: Updated AWR294x board clock configurations

 - Updated the clock configurations in board library to add support
   for mode1 and mode2

7 days agoBoard: Enabled build for AWr294x EVM diagnostic tests
M V Pratap Reddy [Fri, 7 May 2021 23:32:19 +0000 (05:02 +0530)]
Board: Enabled build for AWr294x EVM diagnostic tests

7 days agoPDK-8994: Board: Enabled UART sensor diagnostic test for AWR294x EVM
M V Pratap Reddy [Fri, 7 May 2021 23:31:19 +0000 (05:01 +0530)]
PDK-8994: Board: Enabled UART sensor diagnostic test for AWR294x EVM

7 days agoPDK-8992: Board: Enabled temperature sensor diagnostic test for AWR294x EVM
M V Pratap Reddy [Fri, 7 May 2021 23:30:32 +0000 (05:00 +0530)]
PDK-8992: Board: Enabled temperature sensor diagnostic test for AWR294x EVM

7 days agoPDK-8991: Board: Enabled PMIC diagnostic test for AWR294x EVM
M V Pratap Reddy [Fri, 7 May 2021 23:25:19 +0000 (04:55 +0530)]
PDK-8991: Board: Enabled PMIC diagnostic test for AWR294x EVM

7 days agoPDK-8997: Board: Enabled QPI flash diagnostic test for AWR294x EVM
M V Pratap Reddy [Fri, 7 May 2021 23:24:28 +0000 (04:54 +0530)]
PDK-8997: Board: Enabled QPI flash diagnostic test for AWR294x EVM

7 days agoPDK-8998: Board: Enabled MCAN diagnostic test for AWR294x EVM
M V Pratap Reddy [Fri, 7 May 2021 23:22:42 +0000 (04:52 +0530)]
PDK-8998: Board: Enabled MCAN diagnostic test for AWR294x EVM

7 days agoPDK-8995: Board: Enabled LED diagnostic test for AWR294x EVM
M V Pratap Reddy [Fri, 7 May 2021 23:21:53 +0000 (04:51 +0530)]
PDK-8995: Board: Enabled LED diagnostic test for AWR294x EVM

7 days agoPDK-8993: Enabled Board ID EEPROM diagnostic test for AWR294x EVM
M V Pratap Reddy [Fri, 7 May 2021 23:20:29 +0000 (04:50 +0530)]
PDK-8993: Enabled Board ID EEPROM diagnostic test for AWR294x EVM

7 days agoPDK-8975: Board: Enabled current monitor diagnostic test for AWR294x EVM
M V Pratap Reddy [Fri, 7 May 2021 23:19:24 +0000 (04:49 +0530)]
PDK-8975: Board: Enabled current monitor diagnostic test for AWR294x EVM

7 days agoPDK-9000: Board: Enabled Ethernet diagnostic test for AWR294x EVM
M V Pratap Reddy [Fri, 7 May 2021 23:18:06 +0000 (04:48 +0530)]
PDK-9000: Board: Enabled Ethernet diagnostic test for AWR294x EVM

7 days agoPDK-9003: Board: Enabled push button diagnostic test for AWR294x EVM
M V Pratap Reddy [Fri, 7 May 2021 13:50:18 +0000 (19:20 +0530)]
PDK-9003: Board: Enabled push button diagnostic test for AWR294x EVM

 - Added diag common source files

9 days agofreertos c6x fixes
Badri S [Fri, 7 May 2021 20:00:24 +0000 (01:30 +0530)]
freertos c6x fixes

freertos c6x fixes

Signed-off-by: Badri S <badri@ti.com>
9 days agotimesync: Enable am65xx idk/evm in component makefile
Misael Lopez Cruz [Fri, 7 May 2021 17:35:02 +0000 (12:35 -0500)]
timesync: Enable am65xx idk/evm in component makefile

Add AM65xx IDK/EVM in TimeSync component makefile, it was already added
for v2 but also needed in parent makefile.

Signed-off-by: Misael Lopez Cruz <misael.lopez@ti.com>
10 days agofreertos c6x fixes REL.CORESDK.07.03.03.04
Badri S [Fri, 7 May 2021 04:16:15 +0000 (09:46 +0530)]
freertos c6x fixes

fixes for freertos on c6x related to critical section

Signed-off-by: Badri S <badri@ti.com>
10 days agoAWR294x SOC changes
Badri S [Thu, 6 May 2021 05:19:29 +0000 (10:49 +0530)]
AWR294x SOC changes

AWR294x SOC updates for drivers

Signed-off-by: Badri S <badri@ti.com>
10 days ago[PDK-9612] AWR294x SBL support
Badri S [Mon, 26 Apr 2021 18:02:19 +0000 (23:32 +0530)]
[PDK-9612] AWR294x SBL support

Added AWR294x SBL support from AWR294x ROM team

Signed-off-by: Badri S <badri@ti.com>
10 days ago[BugFix] PDK-9660
Prasad Konnur [Thu, 6 May 2021 13:30:20 +0000 (19:00 +0530)]
[BugFix] PDK-9660

 Desc: osal assert function should be under DebugP_ASSERT_ENABLED

Signed-off-by: Prasad Konnur <prasadkonnur@ti.com>
10 days ago[BugFix] PDK-9659
Prasad Konnur [Thu, 6 May 2021 13:29:26 +0000 (18:59 +0530)]
[BugFix] PDK-9659

 Desc: task sleep period is not correct for freertos

Signed-off-by: Prasad Konnur <prasadkonnur@ti.com>
12 days agoUpdate Error_ISR to clear frame and chirp errors bits.
KALYAN VAGVALA [Sun, 2 May 2021 16:26:37 +0000 (21:56 +0530)]
Update Error_ISR to clear frame and chirp errors bits.

12 days agoPDK-9632: Add awr294x build support for safertos lib and example
Prasad Konnur [Tue, 4 May 2021 11:41:41 +0000 (17:11 +0530)]
PDK-9632: Add awr294x build support for safertos lib and example

Signed-off-by: Prasad Konnur <prasadkonnur@ti.com>
12 days agoupdated check for safertos installation
Prasad Konnur [Tue, 4 May 2021 12:30:52 +0000 (18:00 +0530)]
updated check for safertos installation

Signed-off-by: Prasad Konnur <prasadkonnur@ti.com>
13 days agoPDK-9644: safertos makefile update
Prasad Konnur [Mon, 3 May 2021 13:20:53 +0000 (18:50 +0530)]
PDK-9644: safertos makefile update

 Moved safertos_component.mk and safertos.mak out of safeRTOS package
 Added them to pdk/ti/kernel/safertos and updated the build paths

Signed-off-by: Prasad Konnur <prasadkonnur@ti.com>
13 days agoUDMA: Doxygen Build Fix
Don Dominic [Mon, 3 May 2021 16:53:50 +0000 (22:23 +0530)]
UDMA: Doxygen Build Fix

- Remove duplicate doxygen section labelling

Signed-off-by: Don Dominic <a0486429@ti.com>
2 weeks agotimeSync: v2: Use updated adjust time IOCTL params
Misael Lopez Cruz [Mon, 3 May 2021 07:42:34 +0000 (02:42 -0500)]
timeSync: v2: Use updated adjust time IOCTL params

Input argument of ENET_TIMESYNC_IOCTL_ADJUST_TIMESTAMP has been updated
to take the adjustment value and interval, instead of a PPM value.

Signed-off-by: Misael Lopez Cruz <misael.lopez@ti.com>
2 weeks agotimeSync: v2: Pass DMA handle to openRxCh()
Misael Lopez Cruz [Thu, 29 Apr 2021 21:37:53 +0000 (16:37 -0500)]
timeSync: v2: Pass DMA handle to openRxCh()

EnetDma_openRxCh() API now takes in a handle to the underlying EnetDma.
Pass this parameter from TimeSync V2 implementation for CPSW.

Signed-off-by: Misael Lopez Cruz <misael.lopez@ti.com>
2 weeks agoboard: am65xx: Use PDK-relative path for pinmux.h
Misael Lopez Cruz [Thu, 29 Apr 2021 20:45:50 +0000 (15:45 -0500)]
board: am65xx: Use PDK-relative path for pinmux.h

If an application wants to set their own pinmux, it has to include board
library's internal am65xx_idk_pinmux.h header file as the header files
in its component include/ directory are not enough.

The internal header files included in am65xx_idk_pinmux.h would need to
include the pah relative to PDK, otherwise applications will not be able
to find them.  That's the case of pinmux.h which is included, but path
is not relative to PDK base dir.

Signed-off-by: Misael Lopez Cruz <misael.lopez@ti.com>
2 weeks ago[BugFix] PDK-9655
Prasad Konnur [Fri, 30 Apr 2021 15:20:43 +0000 (20:50 +0530)]
[BugFix] PDK-9655

 Desc: mibspi ram max elements is not configured correctly

 Resolution: Updated the max elements defined in Mibspi driver header file

Signed-off-by: Prasad Konnur <prasadkonnur@ti.com>
2 weeks agoPDK-9638: Board: Enabled pinmux for different AWR2944 EVM board variants
M V Pratap Reddy [Fri, 30 Apr 2021 14:33:55 +0000 (20:03 +0530)]
PDK-9638: Board: Enabled pinmux for different AWR2944 EVM board variants

 - AWR2944 EVM supports three board variants - ETS, LOP, LOP CZ.
   Pinmux is different between different variants of the board.
   Updated the board library to pick the pinmux file based on the build
   macro 'BOARD_VARIANT'.
   BOARD_VARIANT=AWR294X_ETS: Enables pinmux for ETS EVM
   BOARD_VARIANT=AWR294X_LOP: Enables pinmux for LOP EVM
   BOARD_VARIANT=AWR294X_LOP_CZ: Enables pinmux for LOP CZ EVM

   Default build is set for ETS EVM pinmux. Not specifying any value for
   BOARD_VARIANT will enable pinmux for ETS EVM

2 weeks agoPDK-8884: Board : Updated awr2944 EVM board library PLL configurations
M V Pratap Reddy [Fri, 30 Apr 2021 14:33:10 +0000 (20:03 +0530)]
PDK-8884: Board : Updated awr2944 EVM board library PLL configurations

2 weeks agoPDK-9641: makefile macro dynamic update for GPIO driver
Prasad Konnur [Thu, 29 Apr 2021 14:42:21 +0000 (20:12 +0530)]
PDK-9641: makefile macro dynamic update for GPIO driver

Signed-off-by: Prasad Konnur <prasadkonnur@ti.com>
2 weeks ago[PDK-9492] UDMA: Migration to Support FreeRTOS on R5F Cores
Don Dominic [Wed, 28 Apr 2021 12:40:39 +0000 (18:10 +0530)]
[PDK-9492] UDMA: Migration to Support FreeRTOS on R5F Cores

- Remove SYSBIOS Headers in examples and unit test 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
- Add OS_init() before any other OS calls (like Task creation, OS_start, etc..)
  - This is required in case of SafeRTOS for schedular init.
  - For other FreeRTOS/TI-RTOS, it's a dummy implementation and is safe to call unconditionally for all OSes
- In place of SYSBIOS HeapMem API's for dynamic memory allocation,
  For FreeRTOS use baremetal implementation (in 'unit_test/udma_ut/src/utils_mem_baremetal.c'

- udma_component.mk updates for
  - Use macro list to generate UDMA Driver's BOARDLIST for each RTOS type
  - 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 'udma_memcpy_testapp' will change to 'udma_memcpy_testapp_tirtos'/'udma_memcpy_testapp_freertos'
  - No change for baremetal apps make rule
  - With this approach, Zero update is required in the component.mk file
    - To descope/add support to an OS type
    - OR to add a Board to support existing OS type
  - For Test automation:
    - Default Test Run(same as current) - for Baremetal and Sysbios Tests
      - For all Qmetry Test cases with OS=Baremetal
        - No change
      - For all Qmetry Test cases with OS=RTOS
        - Append application name with ‘_tirtos’
    - FreeRTOS Test Run
      - Only select tests with:
        - OS=RTOS
        - Test Setup= MCU cores (From 8.1 C66x and C7x too, no mpu)
        - Append application name with ‘_freertos’

- Related make file updates for each example and unit test

- Use additional linker command file for FreeRTOS UT
  - This is part of PDK-6964

- Renamed all 'main_tirtos.c' to 'main_rtos.c'
  - Since these are now common for all rtos_types
  - And no longer tirtos specific

- Tested an all mcu cores in j721e/j7200/am65xx

Signed-off-by: Don Dominic <a0486429@ti.com>
2 weeks agoBuild: FreeRTOS: AM65xx: Rename OCMC Memory in Default Linker file
Don Dominic [Wed, 28 Apr 2021 11:16:01 +0000 (16:46 +0530)]
Build: FreeRTOS: AM65xx: Rename OCMC Memory in Default Linker file

- Renamed the Memory 'OCMC' to 'OCMC_RAM'
- To allign with the same for j721e/j7200

Signed-off-by: Don Dominic <a0486429@ti.com>
2 weeks agoOSAL-NONOS: Update in TimerP get time in microseconds API for FreeRTOS
Don Dominic [Wed, 28 Apr 2021 11:10:26 +0000 (16:40 +0530)]
OSAL-NONOS: Update in TimerP get time in microseconds API for FreeRTOS

- In case of FreeRTOS get the current counter value from
  the timer used by OS itself, instead of using an
  additional timer for the same

Signed-off-by: Don Dominic <a0486429@ti.com>
2 weeks agotimesync: v2: Replace CPTS IOCTL with generic TIMESYNC IOCTL
Misael Lopez Cruz [Wed, 21 Apr 2021 07:08:58 +0000 (02:08 -0500)]
timesync: v2: Replace CPTS IOCTL with generic TIMESYNC IOCTL

Signed-off-by: Misael Lopez Cruz <misael.lopez@ti.com>
2 weeks agotimesync: v2: Enable support for CPSW_2G
Misael Lopez Cruz [Tue, 20 Apr 2021 03:14:47 +0000 (22:14 -0500)]
timesync: v2: Enable support for CPSW_2G

Enable support for TimeSync PTP for CPSW_2G peripheral.  This is added
on top of CPSW_5G/9G support already present in the TimeSync driver.

Unlike CPSW_5G/9G which use CPTS HWPUSH_1, CPSW_2G will use CPTS HWPUSH_3
which is wired to TimeSync Router.

CPSW_2G is present in AM65xx, J721E and J7200, so this patch enables
supports for all these platforms.  ICSS support which was already added
is not correct and it's being disabled from AM65xx compilation.

Signed-off-by: Misael Lopez Cruz <misael.lopez@ti.com>
2 weeks agotimesync: v2: Reduce number of port-related resources
Misael Lopez Cruz [Mon, 19 Apr 2021 23:05:35 +0000 (18:05 -0500)]
timesync: v2: Reduce number of port-related resources

TimeSync implementation defines a maximum number of ports (currently 8)
and creates Events and Tasks for all those ports.  The actual number of
active ports can be derived from the portMask taken by TimeSync driver
at open time, and the number of Events and Tasks can be created
accordingly.

Signed-off-by: Misael Lopez Cruz <misael.lopez@ti.com>
2 weeks agoETHFW-1764 - timesync: v2: Fix inconsistent usage of packet state checks
Misael Lopez Cruz [Tue, 20 Apr 2021 02:56:30 +0000 (21:56 -0500)]
ETHFW-1764 - timesync: v2: Fix inconsistent usage of packet state checks

TimeSync v2 implementation for CPSW performs packet state checks through:

1) Enet DMA helper macros from enet_dma_pktutils.h, such as: EnetDma_checkPktState(),
   ENET_UTILS_SET_PKT_APP_STATE(), etc.
2) Enet example utils helper functions from enet_apputils.c, such as:
   EnetAppUtils_validatePacketState().

In 'debug' builds, the Enet example utils functions (#2 above) are built with
ENET_CFG_DEV_ERROR = 1.

However, when TimeSync v2 driver uses the helper macros, they won't be compiled as
they come from *.h file being included, so unless ENET_CFG_DEV_ERROR is explicitly
defined for 'debug' builds, this will result in inconsistent usage of packet state
checks which ultimate leads to assertions.

Signed-off-by: Misael Lopez Cruz <misael.lopez@ti.com>
2 weeks agoETHFW-1765 - timesync: v2: Fix incorrect packet state check in TimeSync_reset()
Misael Lopez Cruz [Tue, 20 Apr 2021 02:37:38 +0000 (21:37 -0500)]
ETHFW-1765 - timesync: v2: Fix incorrect packet state check in TimeSync_reset()

EnetAppUtils_validatePacketState() was causing an assertion indicating
that a packet in rxFreeQ wasn't in the expected state (FREEQ state).

EnetAppUtils_validatePacketState() checks that packets in a queue are in
FREEQ state and moves them to DRIVER state. So it's a logical error
to call it multiple times on the same queue while packets are being
added to the queue.

Essentially, the packets which were already in the queue and have
already being validated via EnetAppUtils_validatePacketState() will
always fail a second validation as they have already moved to DRIVER
state.

Signed-off-by: Misael Lopez Cruz <misael.lopez@ti.com>
2 weeks agoPDK-9641: makefile macro dynamic update
Prasad Konnur [Tue, 27 Apr 2021 11:30:35 +0000 (17:00 +0530)]
PDK-9641: makefile macro dynamic update

Signed-off-by: Prasad Konnur <prasadkonnur@ti.com>
2 weeks ago[Bugfix] PDK-9543: mibspi callback mode is not supported
Prasad Konnur [Fri, 23 Apr 2021 14:44:01 +0000 (20:14 +0530)]
[Bugfix] PDK-9543: mibspi callback mode is not supported

 - Added callback mode
 - Updated example to test callback mode

Signed-off-by: Prasad Konnur <prasadkonnur@ti.com>
2 weeks agoDisabling PTP Tx timestamp check feature
Vineet Roy [Fri, 23 Apr 2021 07:22:24 +0000 (12:52 +0530)]
Disabling PTP Tx timestamp check feature

A safety feature was added for V1 ICSS to make sure that Tx timestamp has indeed changed and this was carried over to V2 ICSS like AM5. In this we have a state machine to
compare current and previous timestamps and make sure that timestamps are indeed different. This check is not required for AM5 because we push more number of bytes (>22) before PTP timestamp is taken. This helps save cycles.

2 weeks agoSeparating the Rx Error Handling from Half Duplex
Vineet Roy [Mon, 26 Apr 2021 06:15:34 +0000 (11:45 +0530)]
Separating the Rx Error Handling from Half Duplex

This allows optimization by disabling Half Duplex code in Tx

2 weeks agoBuild: UART: Derive drivers BOARDLIST for each RTOS type
Don Dominic [Tue, 27 Apr 2021 10:53:38 +0000 (16:23 +0530)]
Build: UART: Derive drivers BOARDLIST for each RTOS type

- Use macro list to generate BOARDLIST for each RTOS type
- Defined the following in 'build/makerules/component.mk'
  - DEFAULT_SOCLIST_<rtos_type>
  - DEFAULT_BOARDLIST_<rtos_type>

- With this approach, Zero update is required in each drivers component.mk file
  to descope/add support to an OS type
  OR to add an SOC/Board to support existing OS type
  - Just updating the top level makerules component file is enough

Signed-off-by: Don Dominic <a0486429@ti.com>
2 weeks agoPDK-9635: Add OS_init osal function
Prasad Konnur [Mon, 26 Apr 2021 16:43:45 +0000 (22:13 +0530)]
PDK-9635: Add OS_init osal function

 - OS_init for scheduler init required for safertos
 - OS_init should be called before any task create or OS_start
 - Dummy implementation for freertos and tirtos
 - Updated all examples using OS_start to call OS_init

Signed-off-by: Prasad Konnur <prasadkonnur@ti.com>
2 weeks agoUART: Buid: Baremetal examples build fix
Don Dominic [Tue, 27 Apr 2021 06:33:27 +0000 (12:03 +0530)]
UART: Buid: Baremetal examples build fix

- Pass BUILD_OS_TYPE=baremetal from component.mk
- IS_BAREMETAL flag is no longer used with the update in https://bitbucket.itg.ti.com/projects/PROCESSOR-SDK/repos/pdk/commits/6ef574c80bf39e9b1a37b20070152638193c946c

Signed-off-by: Don Dominic <a0486429@ti.com>
2 weeks agoBuild: UART: Update uart driver component.mk RTOS app rules
Don Dominic [Fri, 23 Apr 2021 11:02:25 +0000 (16:32 +0530)]
Build: UART: Update uart driver component.mk RTOS app rules

- Cleanup RTOS app rules by:
  - Use macros to generate RTOS app rules instead of explicitly defining them

- related UART UT makefile updates

- Defined the following in 'build/makerules/component.mk'
  - Default RTOS List
  - Default SOC Corelist for each RTOS type

- With this approach, its effortless to descope/add support to an OS type
  - By just updating the top level makerules
  - Avoid updating all the component rules

Signed-off-by: Don Dominic <a0486429@ti.com>
2 weeks agoAdded software defines for reading RSS_PROC_CTRL_RSS_CR4_BOOT_INFO_REG3.
KALYAN VAGVALA [Mon, 26 Apr 2021 10:22:54 +0000 (15:52 +0530)]
Added software defines for reading RSS_PROC_CTRL_RSS_CR4_BOOT_INFO_REG3.

2 weeks agoAbsorbed changes from TPR12 for multi-channel Support for AWR294x SOC.
KALYAN VAGVALA [Sat, 24 Apr 2021 05:41:24 +0000 (11:11 +0530)]
Absorbed changes from TPR12 for multi-channel Support for AWR294x SOC.

2 weeks agoCBUFF driver cleaned frame start functionality.
KALYAN VAGVALA [Sat, 24 Apr 2021 09:15:51 +0000 (14:45 +0530)]
CBUFF driver cleaned frame start functionality.

3 weeks agosafertos fixes REL.CORESDK.07.03.03.02 REL.CORESDK.07.03.03.03
Prasad Konnur [Sat, 24 Apr 2021 07:47:18 +0000 (13:17 +0530)]
safertos fixes

Signed-off-by: Prasad Konnur <prasadkonnur@ti.com>
3 weeks ago[PDK-9611] Correct sysbios device name for AWR294x
Badri S [Sat, 24 Apr 2021 05:04:29 +0000 (10:34 +0530)]
[PDK-9611] Correct sysbios device name for AWR294x

Use correct name for device name in sysbios pltform
config so that correct cpu freq and base address
are picked for AWR294x. currently TPR12 addresses
are picked

Signed-off-by: Badri S <badri@ti.com>
3 weeks ago[PDK-9639] GPADC soc files added for AWR294x
Badri S [Sat, 24 Apr 2021 03:05:29 +0000 (08:35 +0530)]
[PDK-9639] GPADC soc files added for AWR294x

Added GPADC soc files for AWR294x .
Duplicated from TPR12

Signed-off-by: Badri S <badri@ti.com>
3 weeks ago10Mbps FD validated on ICSSG
Pratheesh Gangadhar [Fri, 23 Apr 2021 06:25:52 +0000 (11:55 +0530)]
10Mbps FD validated on ICSSG

Signed-off-by: Pratheesh Gangadhar <pratheesh@ti.com>
3 weeks agoCorrected the interrupt number order for R5F Core.
KALYAN VAGVALA [Wed, 21 Apr 2021 08:57:17 +0000 (14:27 +0530)]
Corrected the interrupt number order for R5F Core.

3 weeks agoPDK-8884: Board: Added pinmux configurations for AWR2944 EVM
M V Pratap Reddy [Sun, 18 Apr 2021 11:59:32 +0000 (17:29 +0530)]
PDK-8884: Board: Added pinmux configurations for AWR2944 EVM

3 weeks agofixed c++ build issue
Prasad Konnur [Fri, 23 Apr 2021 07:56:21 +0000 (13:26 +0530)]
fixed c++ build issue

Signed-off-by: Prasad Konnur <prasadkonnur@ti.com>
3 weeks agofixed task delete issue for safertos and freertos
Prasad Konnur [Fri, 23 Apr 2021 07:25:54 +0000 (12:55 +0530)]
fixed task delete issue for safertos and freertos

Signed-off-by: Prasad Konnur <prasadkonnur@ti.com>
3 weeks ago[PDK-9636] FreeRTOS: Add support for Data Abort Exception CAllback
Don Dominic [Thu, 22 Apr 2021 14:14:42 +0000 (19:44 +0530)]
[PDK-9636] FreeRTOS: Add support for Data Abort Exception CAllback

- In case of Data Abort Exception:-
  - Call registered call back function (if any), else got into an infinite loop
- Callback can be registered using "Intc_RegisterExptnHandlers" API
- Data Abort handler starts execution in HwiP_data_abort_handler, defined in portASM.S
  After some initial assembly logic it then branches to this function.
  After exiting this function it does some more assembly to return to the next instruction
  following the one which caused the exception.

Signed-off-by: Don Dominic <a0486429@ti.com>
3 weeks agoenabled safertos build for examples
Prasad Konnur [Mon, 19 Apr 2021 06:43:39 +0000 (12:13 +0530)]
enabled safertos build for examples

Signed-off-by: Prasad Konnur <prasadkonnur@ti.com>
3 weeks agoPDK-9601: SafeRTOS evaluation package integration
Prasad Konnur [Thu, 15 Apr 2021 06:39:54 +0000 (12:09 +0530)]
PDK-9601: SafeRTOS evaluation package integration

 - added safertos build support

Signed-off-by: Prasad Konnur <prasadkonnur@ti.com>
3 weeks agoUpdating version number
Vineet Roy [Wed, 21 Apr 2021 11:51:07 +0000 (17:21 +0530)]
Updating version number

3 weeks agoIncorporating review comments. Removed dead code
Vineet Roy [Wed, 21 Apr 2021 07:10:46 +0000 (12:40 +0530)]
Incorporating review comments. Removed dead code

3 weeks agoFirmware changes before merge
Vineet Roy [Tue, 20 Apr 2021 17:35:03 +0000 (23:05 +0530)]
Firmware changes before merge

1. Added check for PTP UDP back as removal may break functionality
2. Added comments for readibility

3 weeks agoAdding FN_RCV_LB in Background Task
Vineet Roy [Tue, 20 Apr 2021 07:52:45 +0000 (13:22 +0530)]
Adding FN_RCV_LB in Background Task

3 weeks agoClearing PTP flags by force
Vineet Roy [Mon, 19 Apr 2021 16:33:03 +0000 (22:03 +0530)]
Clearing PTP flags by force

Clearing Rx and Tx PTP flags by force to avoid state machine corruption

3 weeks agoChanges to improve Rx stability
Vineet Roy [Fri, 2 Apr 2021 05:17:08 +0000 (10:47 +0530)]
Changes to improve Rx stability

3 weeks ago[PDK-9178] UDMA RM: Update logic in subtracting Global Event Offset
Don Dominic [Fri, 19 Mar 2021 14:18:48 +0000 (19:48 +0530)]
[PDK-9178] UDMA RM: Update logic in subtracting Global Event Offset

- Update the logic in subtracting Global Event Offset from the range returned from BoardCfg
- Instead of checking the Interrupt Aggregator Requirement type (which may vary for different devices)
  to subtract the offset, get the appropriate offset from an API
- Added new private fxn 'Udma_getGlobalEventOffset' defined in udam_soc.c

Signed-off-by: Don Dominic <a0486429@ti.com>
3 weeks ago[PDK-9178] UDMA: Simplify UDMA RM Configuration for AM65xx
Don Dominic [Fri, 19 Mar 2021 13:38:40 +0000 (19:08 +0530)]
[PDK-9178] UDMA: Simplify UDMA RM Configuration for AM65xx

- Simplify RM Configuration by querying from defaultBoardCfg
- Using #Sciclient_rmGetResourceRange to populate #Udma_RmInitPrms
- Removes all hard-codings in udma_rmcfg.c

- Splits shared resources like GlobalEvents/VINTR/IR_INTR across MCU/MAIN NAVSS Instances
  based on the prms in #Udma_RmSharedResPrms (UDMA RM Shared Resource parameters)
- User can override default UDMA RM Shared Resource parameters, using Udma_rmGetSharedResPrms API

- Moved UdmaRmInitPrms_init from 'am65xx/udma_soc.c' to 'udma_rmcfg_common.c' in 'soc' folder.
  This API will return error, if it fails to init #Udma_RmInitPrms

Squashed Commits:-

[PDK-9178] UDMA: RM related files cleanup

- Move 'UdmaRmInitPrms_init' from 'udma_rmcfg_common.c' to 'udam_rm.c'
- And remove 'udma_rmcfg_common.c'
- This file was temporarily added while implementing PDK-5071
  since not all SoCs were migrated at that time

- Also made the following functions static and removed from udma_priv.h
  since now they will be only referred in the same file(udam_rmc.c)
   - Udma_rmSetSharedResRmInitPrms
   - Udma_rmGetSciclientDefaultBoardCfgRmRange

- Related makefile updates

Signed-off-by: Don Dominic <a0486429@ti.com>
3 weeks agoPDK-9178: Remove Linux version of BoardCfg_RM for AM65xx
Jonathan Bergsagel [Wed, 17 Mar 2021 22:26:36 +0000 (17:26 -0500)]
PDK-9178: Remove Linux version of BoardCfg_RM for AM65xx

Remove special inclusion of HLOS (Linux) version of BoardCfg_RM
for use by the AM65xx SBL bootloader, since the regular
sciclient_defaultBoardcfg_rm.c file has now been aligned for
usage by both RTOS and Linux.

Signed-off-by: Jonathan Bergsagel <jbergsagel@ti.com>
3 weeks ago[PDK-9178] AM65xx BoardCfg: Align with Linux
Don Dominic [Wed, 17 Mar 2021 14:39:05 +0000 (20:09 +0530)]
[PDK-9178] AM65xx BoardCfg: Align with Linux

- Updated AM65xx - Sciclient_defaultBoardCfg_rm.c to align with Linux.
- Effectively uses less HOST_ID_ALL and allocates resources to specific cores.
- Multiple entry of same resource for Block Copy and Tx_only/Rx_only channels and rings
   - First Entry is for Block Copy, and Second Entry is for Tx_onlt/Rx_only
   - To maintain this order, Dummy entry with count=0 when no resource needed for Block Copy

- File generated from SysConfig Tool + k3-resource-partitioning
  This include updates in the following:
   - Update Resource shares for GPIO_IR/TimeSync_IR/FreeRings/Normal_Capacity_Channels
       - https://bitbucket.itg.ti.com/projects/PSDKLA/repos/k3-resource-partitioning/pull-requests/18/overview

- Rebuilt sciclient_boardCfg, sciclient_boardCfg for HS, sciclient_ccs_init and copied to tools/ccsLoadDmsc

- Also updated AM65xx udma_rmcfg.c to align with the update in resource range
  - Note: This commit will be followed by updates in UDMA RM for AM65xx to query from BoardCfg,
          which will remove all the hard-codings of resource range in the current udma_rmcfg.c

- Verified UDMA UT on AM65xx

Signed-off-by: Don Dominic <a0486429@ti.com>
3 weeks agoAddressed review comments for cbuff driver.
KALYAN VAGVALA [Mon, 19 Apr 2021 06:50:10 +0000 (12:20 +0530)]
Addressed review comments for cbuff driver.

3 weeks agoModified adcbuf, cbuff and mail drivers to support RF eval app.
KALYAN VAGVALA [Wed, 14 Apr 2021 04:10:51 +0000 (09:40 +0530)]
Modified adcbuf, cbuff and mail drivers to support RF eval app.

4 weeks agoPDK-9624: Removed BFP references from HWA Driver
Sood [Mon, 19 Apr 2021 07:45:37 +0000 (13:15 +0530)]
PDK-9624: Removed BFP references from HWA Driver

4 weeks agoPDK-4968: Board: Updated the MMR lock for AM65xx in board lib
M V Pratap Reddy [Wed, 14 Apr 2021 09:36:22 +0000 (15:06 +0530)]
PDK-4968: Board: Updated the MMR lock for AM65xx in board lib

- MMR unlock is done for all the MMR partitions in the board library.
  Some of the MMR partitions are owned by DMSC and should not be
  touched by the board library.

4 weeks ago[DSS M2M DRV]KW Fixes : Patch-2
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>
4 weeks 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 weeks 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 weeks 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 weeks agoFixed qspi_flash test makefile
KALYAN VAGVALA [Thu, 8 Apr 2021 10:35:48 +0000 (16:05 +0530)]
Fixed qspi_flash test makefile

5 weeks 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.