]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - processor-sdk/pdk.git/log
processor-sdk/pdk.git
19 months agoupdating the size of tx and rx frames inside memset
Potluri Krishna [Tue, 12 Oct 2021 16:13:52 +0000 (21:43 +0530)]
updating the size of tx and rx frames inside memset

19 months agoDiable LPM due to build issue
Ankur [Mon, 11 Oct 2021 20:03:41 +0000 (01:33 +0530)]
Diable LPM due to build issue

Signed-off-by: Ankur <a0132173@ti.com>
19 months agoLPM: Function and variable name fixes
Aditya Wadhwa [Mon, 11 Oct 2021 16:53:33 +0000 (22:23 +0530)]
LPM: Function and variable name fixes

Signed-off-by: Aditya Wadhwa <a0485151@ti.com>
19 months ago[PDK-10305][PDK-10306][PDK-10331][PDK-10516][PDK-10532] LPM Library Fixes
Aditya Wadhwa [Fri, 8 Oct 2021 18:50:37 +0000 (00:20 +0530)]
[PDK-10305][PDK-10306][PDK-10331][PDK-10516][PDK-10532] LPM Library Fixes

- updated API names in compliance with doxygen
- added API comments for doxygen documentation
- removed lpm from PDK_COMMON_COMP
- added a gitignore file
- reomoved usage of pmic_ut_common
- used TimerP instead of local implementation

Signed-off-by: Aditya Wadhwa <a0485151@ti.com>
19 months agoMigrating to SYSFW version v2021.09
Don Dominic [Mon, 11 Oct 2021 10:19:19 +0000 (15:49 +0530)]
Migrating to SYSFW version v2021.09

Signed-off-by: Don Dominic <a0486429@ti.com>
19 months agosciclient: Update osal_delay definition for rm_pm_hal
Stephen Molfetta [Mon, 11 Oct 2021 03:13:16 +0000 (22:13 -0500)]
sciclient: Update osal_delay definition for rm_pm_hal

Recent update to rm_pm_hal and interface for osal clock functions
removed static inline definition of osal_delay.

Instead of keeping static inline function defined in the header, break
out the osal callout dependencies from rm_pm_hal to PDK through a
dedicated osal glue layer to resolve the interface compatibilities
between both osal definitions.

Signed-off-by: Stephen Molfetta <sjmolfetta@ti.com>
19 months agochanged the test name and corresponding file names from icssg_enet to enet_icssg
Potluri Krishna [Wed, 6 Oct 2021 13:13:31 +0000 (18:43 +0530)]
changed the test name and corresponding file names from icssg_enet to enet_icssg

19 months agoPDK-9596: Migrated ICSSG EMAC test to ENET LLD
M V Pratap Reddy [Fri, 16 Jul 2021 06:31:24 +0000 (12:01 +0530)]
PDK-9596: Migrated ICSSG EMAC test to ENET LLD

Adding the updated code for icssg with enet lld
New folder for board diag enet lld created

Signed-off-by: Parth Nagpal <x1080849@ti.com>
ICSSG Enet LLD
Tested code with multiple ports
Signed-off-by: Parth Nagpal <x1080849@ti.com>
Iterations updated for open and close port
Port is opened and closed every iteration
Signed-off-by: Parth Nagpal <x1080849@ti.com>
support added for building on evm

TX and RX flags replaced with corresponding semaphores, log format updated

19 months agolpm:fix packaging issue
Badri S [Fri, 8 Oct 2021 19:40:32 +0000 (01:10 +0530)]
lpm:fix packaging issue

Signed-off-by: Badri S <badri@ti.com>
19 months agofreertos_c7x: remove clec secure claim clearing out of OS_init
Badri S [Fri, 8 Oct 2021 15:39:32 +0000 (21:09 +0530)]
freertos_c7x: remove clec secure claim clearing out of OS_init

clecl secure claim clearning should not be in OS_init.
It should be done in secure supervisor mode in InitMmu callback
Updated the IPC example to invoke OsalCfgClecAccessCtrl(false)
from its custom mmu function

Signed-off-by: Badri S <badri@ti.com>
19 months agofreertos_c7x: changed the dmtimer allocation for c7x core
Badri S [Thu, 7 Oct 2021 14:24:21 +0000 (19:54 +0530)]
freertos_c7x: changed the dmtimer allocation for c7x core

changed dmtimer assignemnt for c7x_1 core and changed
the timer interrupt as pulse to resolve the dmtimer
dual interrupt issue

Signed-off-by: Badri S <badri@ti.com>
19 months agosciclient: Fix dependencies from latest rm_pm_hal change
Stephen Molfetta [Fri, 8 Oct 2021 15:49:55 +0000 (10:49 -0500)]
sciclient: Fix dependencies from latest rm_pm_hal change

Recent rm_pm_hal change refactored some header file dependencies. Update
sciclient to account for these changes.

Signed-off-by: Stephen Molfetta <sjmolfetta@ti.com>
19 months agoPCIe Sample Example not working with mpu
Parth Nagpal [Thu, 7 Oct 2021 11:31:25 +0000 (17:01 +0530)]
PCIe Sample Example not working with mpu
Removing console printf as test hangs there

Signed-off-by: Parth Nagpal <x1080849@ti.com>
19 months agomoved the starting address of DDR0 region of mpu by 0x8000000
Potluri Krishna [Thu, 7 Oct 2021 14:43:10 +0000 (20:13 +0530)]
moved the starting address of DDR0 region of mpu by 0x8000000

19 months agoadded the missing modifications to .h file and makefile
Potluri Krishna [Thu, 7 Oct 2021 10:06:36 +0000 (15:36 +0530)]
added the missing modifications to .h file and makefile

19 months agoLPM Library Development
Aditya Wadhwa [Wed, 6 Oct 2021 18:36:56 +0000 (00:06 +0530)]
LPM Library Development

- put the sequence in a loop
- addressed PR review comments

Signed-off-by: Aditya Wadhwa <a0485151@ti.com>
19 months agoMoved the LPM library to drv folder
Aditya Wadhwa [Fri, 1 Oct 2021 15:18:54 +0000 (20:48 +0530)]
Moved the LPM library to drv folder

Signed-off-by: Aditya Wadhwa <a0485151@ti.com>
19 months agoGo to MCU only mode from ACTIVE mode
Karan Saxena [Fri, 24 Sep 2021 12:37:26 +0000 (18:07 +0530)]
Go to MCU only mode from ACTIVE mode

- Validated trasition ACTIVE -> MCU -> ACTIVE -> MCU -> ACTIVE
- PMIC drv has some issues, using i2c calls for now

Signed-off-by: Karan Saxena <karan@ti.com>
19 months agoPDK-10536: SBL: Release MCU1_0 before jumping to app while skipping MCU reset
Karan Saxena [Thu, 16 Sep 2021 10:24:09 +0000 (15:54 +0530)]
PDK-10536: SBL: Release MCU1_0 before jumping to app while skipping MCU reset

- In case of booting Linux from CUST SBL by skipping reset of MCU R5 then
  Linux is not able to attach to MCU R5 in IPC-only mode as the MCU1_0 is not
  released by the SBL.

- The SBL should call TISCI_MSG_PROC_RELEASE in the case where MCU reset is
  skipped i.e. SBL_SKIP_MCU_RESET  is defined.

- A clean release from SBL running on MCU1_0 will mean that A72 running Linux
  can call TISCI_MSG_PROC_REQUEST and attach in IPC-only mode. This will enable
  IPC between MCU R5 and A72.

Signed-off-by: Karan Saxena <karan@ti.com>
19 months agoLPM Library Development
Aditya Wadhwa [Mon, 20 Sep 2021 10:33:18 +0000 (16:03 +0530)]
LPM Library Development

        - Added VTM temp sensor disabling API
- Copyright year fixes

Signed-off-by: Aditya Wadhwa <a0485151@ti.com>
19 months agoLPM Library Development
Aditya Wadhwa [Fri, 17 Sep 2021 12:43:04 +0000 (18:13 +0530)]
LPM Library Development

    - Example running successfully

Signed-off-by: Aditya Wadhwa <a0485151@ti.com>
19 months agoLPM Library Development
Aditya Wadhwa [Thu, 16 Sep 2021 12:27:13 +0000 (17:57 +0530)]
LPM Library Development

- Example building successfully

Signed-off-by: Aditya Wadhwa <a0485151@ti.com>
19 months agotypecast for volatile variable added inside memset function
Potluri Krishna [Wed, 6 Oct 2021 10:50:28 +0000 (16:20 +0530)]
typecast for volatile variable added inside memset function

19 months agoAdded API for setting pinmux from example apps
Parth Nagpal [Mon, 27 Sep 2021 06:19:19 +0000 (11:49 +0530)]
Added API for setting pinmux from example apps
Added API to allow example apps to set their own pinmux.

Signed-off-by: Parth Nagpal <x1080849@ti.com>
19 months agoFixed PDK-10698:[FreeRTOS] Interrupt priority cannot be set
Brijesh Jadav [Tue, 5 Oct 2021 04:39:44 +0000 (10:09 +0530)]
Fixed PDK-10698:[FreeRTOS] Interrupt priority cannot be set

Interrupt priorities are set only in the Intc_IntRegister register, but
in the current code, priority is updated after this API call.
Moved priority setting before this API call.
Also updated error checks.

Signed-off-by: Brijesh Jadav <brijesh.jadav@ti.com>
19 months agoc7x freertos: udma ut custom lnk cmd file
Badri S [Sat, 2 Oct 2021 08:13:10 +0000 (13:43 +0530)]
c7x freertos: udma ut custom lnk cmd file

add custom linker cmd file for udma ut
testcases for c7x freertos build

Signed-off-by: Badri S <badri@ti.com>
19 months agofreertos c7x: address review comments
Badri S [Sat, 2 Oct 2021 03:44:56 +0000 (09:14 +0530)]
freertos c7x: address review comments

review comments addressed in PR
https://bitbucket.itg.ti.com/projects/PROCESSOR-SDK/repos/pdk/pull-requests/2147/overview

Signed-off-by: Badri S <badri@ti.com>
19 months ago[PDK-9353] freertos c7x cpu port
Badri S [Sun, 12 Sep 2021 03:06:21 +0000 (08:36 +0530)]
[PDK-9353] freertos c7x cpu port

freertos c7x cpu port
OS UT validated
-- freertos ut
-- freertos task_switch
-- OSAL_TestApp_freertos
-- freertos_test_posix
Drivers validated
-- udma
-- uart
-- gpio
-- ipc

Signed-off-by: Badri S <badri@ti.com>
19 months agoadded volatile keyword for tx and rx buffers to remove compiler optimization
Potluri Krishna [Mon, 4 Oct 2021 09:47:12 +0000 (15:17 +0530)]
added volatile keyword for tx and rx buffers to remove compiler optimization

19 months agoRemoved pinmux config
Parth Nagpal [Mon, 4 Oct 2021 05:19:44 +0000 (10:49 +0530)]
Removed pinmux config
if PDK_RAW_BOOT is not defined pinmux config is not needed

Signed-off-by: Parth Nagpal <x1080849@ti.com>
19 months agoUSB device diagnoatic test failure on mcu core
Parth Nagpal [Wed, 11 Aug 2021 12:07:43 +0000 (17:37 +0530)]
USB device diagnoatic test failure on mcu core
Fixed by replacing the interrupt configuration from CSI to sciclient

Signed-off-by: Parth Nagpal <x1080849@ti.com>
19 months ago[QNX] Sciclient: Update to support QNX resource manager
Praveen Rao [Wed, 24 Feb 2021 03:03:13 +0000 (21:03 -0600)]
[QNX] Sciclient: Update to support QNX resource manager

Signed-off-by: Praveen Rao <prao@ti.com>
19 months agopackages/ti/boot/keywriter/tifs_bin/j7200/ti-fs-keywriter.bin: Add a dummy binary...
Keerthy [Mon, 4 Oct 2021 04:53:43 +0000 (10:23 +0530)]
packages/ti/boot/keywriter/tifs_bin/j7200/ti-fs-keywriter.bin: Add a dummy binary to enable compilation

Add a dummy binary to enable compilation for J7200

Signed-off-by: Keerthy <j-keerthy@ti.com>
19 months ago[PDK-9714] Build: C66x/C7x: Disable compiler option --program_level_compile
Don Dominic [Wed, 29 Sep 2021 09:33:41 +0000 (15:03 +0530)]
[PDK-9714] Build: C66x/C7x: Disable compiler option --program_level_compile

- This is to support FreeRTOS ROV
- When --program_leve_compile is enabled, static variables symbols gets appended with
  "$0" and hence can't be viewed from CCS ROV

Signed-off-by: Don Dominic <a0486429@ti.com>
19 months ago[PDK-9714] Build: R5F/C66x/C7x: Copy FreeROTS ROV .xs file to Binary folder
Don Dominic [Wed, 29 Sep 2021 10:26:42 +0000 (15:56 +0530)]
[PDK-9714] Build: R5F/C66x/C7x: Copy FreeROTS ROV .xs file to Binary folder

- Update makefile rules to copy freertos 'syscgf_c.rov.xs' file to binary folder
- CCS ROV expects this file in th esame directory as the ELF file.

Signed-off-by: Don Dominic <a0486429@ti.com>
19 months ago[PDK-9714] FreeRTOS: ROV: Add syscfg_c.rov.xs file
Don Dominic [Wed, 29 Sep 2021 10:29:04 +0000 (15:59 +0530)]
[PDK-9714] FreeRTOS: ROV: Add syscfg_c.rov.xs file

- This file refers to FreeRTOS.rov.js
  - The base path to referred file should be set as XDCPATH in CCS
- This will be copied to binary folder while building any freertos application

Signed-off-by: Don Dominic <a0486429@ti.com>
19 months ago[PDK-9714] FreeRTOS: ROV: Add FreeRTOS.rov.js
Don Dominic [Wed, 29 Sep 2021 10:25:38 +0000 (15:55 +0530)]
[PDK-9714] FreeRTOS: ROV: Add FreeRTOS.rov.js

- Add FreeRTOS module
- Supports following views:-
  - Heap
  - Semaphore, Mutex and Queue Instances
  - Task Instances
  - Task Modules
  - Timer Instances

Signed-off-by: Don Dominic <a0486429@ti.com>
19 months agokeywriter: Add support for j7200
Keerthy [Tue, 21 Sep 2021 14:51:28 +0000 (20:21 +0530)]
keywriter: Add support for j7200

Add support for j7200

Signed-off-by: Keerthy <j-keerthy@ti.com>
19 months agopackages/ti/boot/keywriter/soc/j7200/keywriter_utils.c: Add J7200 utils
Keerthy [Mon, 27 Sep 2021 06:00:41 +0000 (11:30 +0530)]
packages/ti/boot/keywriter/soc/j7200/keywriter_utils.c: Add J7200 utils

Add J7200 utils. This is still to be validated on Hera PMIC board.
Patch adds support for both version.

This also corrects some comments on the j721e files as well.

Signed-off-by: Keerthy <j-keerthy@ti.com>
19 months agopackages: ti: boot: keywriter: soc: Factor out common files in to a folder to avoid...
Keerthy [Tue, 27 Jul 2021 04:12:58 +0000 (09:42 +0530)]
packages: ti: boot: keywriter: soc: Factor out common files in to a folder to avoid duplication

Factor out common files in to a folder to avoid duplication

Signed-off-by: Keerthy <j-keerthy@ti.com>
19 months agoKEYWRITER: Moving J7200 boardcfgs to keywriter
Keerthy [Thu, 22 Jul 2021 08:52:35 +0000 (14:22 +0530)]
KEYWRITER: Moving J7200 boardcfgs to keywriter

Moving J7200 boardcfgs to keywriter

Signed-off-by: Keerthy <j-keerthy@ti.com>
19 months agoPCIe diagnostic test failing for mpu core REL.CORESDK.08.01.00.01
Parth Nagpal [Fri, 1 Oct 2021 05:01:50 +0000 (10:31 +0530)]
PCIe diagnostic test failing for mpu core
Test hanging during data read due to optimization
Fixed by adding volatile keyword
Signed-off-by: Parth Nagpal <x1080849@ti.com>
19 months agoDSS: Updated eDP firmware_20210916_mhdp_fw_2_1_0
Brijesh Jadav [Fri, 17 Sep 2021 17:30:41 +0000 (23:00 +0530)]
DSS: Updated eDP firmware_20210916_mhdp_fw_2_1_0

Signed-off-by: Brijesh Jadav <brijesh.jadav@ti.com>
19 months ago[OSAL][QNX] Add mutex support and set timeout in msec
Praveen Rao [Mon, 27 Sep 2021 19:46:59 +0000 (14:46 -0500)]
[OSAL][QNX] Add mutex support and set timeout in msec

Signed-off-by: Praveen Rao <prao@ti.com>
20 months agoBin2c removing false stderr prints
Ankur [Mon, 27 Sep 2021 11:42:30 +0000 (17:12 +0530)]
Bin2c removing false stderr prints

Signed-off-by: Ankur <a0132173@ti.com>
20 months agoOSAL: UT: Load Test Updates
Don Dominic [Tue, 21 Sep 2021 08:11:06 +0000 (13:41 +0530)]
OSAL: UT: Load Test Updates

- Add new print task for printing tasks stats periodically
- Use semaphores to signal load tasks

Signed-off-by: Don Dominic <a0486429@ti.com>
20 months ago[ADASVISION-4927] OSAL: FreeRTOS: LoadP Updates
Don Dominic [Tue, 21 Sep 2021 08:06:21 +0000 (13:36 +0530)]
[ADASVISION-4927] OSAL: FreeRTOS: LoadP Updates

- Protect critical sections by suspending schedular
- Also add check for load overflow

Signed-off-by: Don Dominic <a0486429@ti.com>
20 months ago[PSDKQA-328][QNX] ipc_lld: Implemented timeout in RPMessage_recv()
Praveen Rao [Mon, 13 Sep 2021 21:59:22 +0000 (16:59 -0500)]
[PSDKQA-328][QNX] ipc_lld: Implemented timeout in RPMessage_recv()

Signed-off-by: Praveen Rao <prao@ti.com>
20 months agoFreeRTOS: C66x: J721E: Update L2 Cache Size to 64KB
Don Dominic [Tue, 14 Sep 2021 15:09:35 +0000 (20:39 +0530)]
FreeRTOS: C66x: J721E: Update L2 Cache Size to 64KB

- Update portCONFIGURE_CACHE_L2_SIZE in FreeRTOSConfig.h for j721e to 64KB
- This is to match the default SysBIOS settings in PSDK

Signed-off-by: Don Dominic <a0486429@ti.com>
20 months ago[PDK-10528] OSAL: C66x Cache: Cleanup and remove duplicate code
Don Dominic [Tue, 14 Sep 2021 14:28:00 +0000 (19:58 +0530)]
[PDK-10528] OSAL: C66x Cache: Cleanup and remove duplicate code

- Removing the duplicate code in all cache maintenance APIs
  by adding new generic static function CacheP_block
- Defines a prototype for CSL Cache Ops Function
  and pass the CSL function pointer to the new generic static function

Signed-off-by: Don Dominic <a0486429@ti.com>
20 months ago[PDK-10528] OSAL: C66x Cache: Optimize Cache Maintenance APIs
Don Dominic [Tue, 14 Sep 2021 13:40:33 +0000 (19:10 +0530)]
[PDK-10528] OSAL: C66x Cache: Optimize Cache Maintenance APIs

- Add option to enable/disable atomic cache operations
- Added new define CACHEP_ATOMIC_BLOCK_SIZE
  - This can be set to 0 to disable atomic cache operations
    - In this case it uses Max word count per cache operations
- Convert incCnt to bytes(from words) since CSL API expects in bytes

- Set CACHEP_ATOMIC_BLOCK_SIZE to 0 by default, to optimize performance
- With this update Cache Maintenance APIs performance is comparable with SysBIOS

Signed-off-by: Don Dominic <a0486429@ti.com>
20 months ago[PDK-10107] FreeRTOS: C66x: Switch to IDLE from Idle Task
Don Dominic [Wed, 8 Sep 2021 19:48:43 +0000 (01:18 +0530)]
[PDK-10107] FreeRTOS: C66x: Switch to IDLE from Idle Task

-  Switch to IDLE mode  from Idle Task hook function

Signed-off-by: Don Dominic <a0486429@ti.com>
20 months ago[PDK-10107] FreeRTOS: R5F: Switch to WFI from Idle Task
Don Dominic [Wed, 8 Sep 2021 19:47:16 +0000 (01:17 +0530)]
[PDK-10107] FreeRTOS: R5F: Switch to WFI from Idle Task

- Switch to WFI mode from Idle Task Hook Function

Signed-off-by: Don Dominic <a0486429@ti.com>
20 months ago[PDK-10107] FreeRTOS: R5F: Use OS Tick Timer instead of PMU Counter
Don Dominic [Mon, 6 Sep 2021 14:54:04 +0000 (20:24 +0530)]
[PDK-10107] FreeRTOS: R5F: Use OS Tick Timer instead of PMU Counter

- Use OS Tick timer to calculate current time in micro seconds,
  instead of using PMU counter
- OS Ticks can be used to get currrent time in milli sec resolution
- Calculate the residual by reading current count of OS Timer using TimerP APIs
  and converting to microseconds
- Remove PMU Counter related functions
  - This update is necesary to switch to wfi from Idle task
    since on wfi PMU counter also halts and will affect load measurements.

Signed-off-by: Don Dominic <a0486429@ti.com>
20 months ago[PDK-10107] FreeRTOS: C66x: Use OS Tick Timer instead of TSC Counter
Don Dominic [Mon, 6 Sep 2021 14:46:37 +0000 (20:16 +0530)]
[PDK-10107] FreeRTOS: C66x: Use OS Tick Timer instead of TSC Counter

- Use OS Tick timer to calculate current time in micro seconds,
  instead of using TSC counter
- OS Ticks can be used to get currrent time in milli sec resolution
- Calculate the residual by reading current count of OS Timer using TimerP APIs
  and converting to microseconds

Signed-off-by: Don Dominic <a0486429@ti.com>
20 months ago[PDK-10107] OSAL: TimerP: Add new APIs to get timer reload count and current count
Don Dominic [Fri, 3 Sep 2021 13:43:40 +0000 (19:13 +0530)]
[PDK-10107] OSAL: TimerP: Add new APIs to get timer reload count and current count

- Added New APIs:-
  - TimerP_getReloadCount: Get timer reload count
  - TimerP_getCount: Get timer current count

- Added implementation for DMTimer and RTI Timer (v1/v2)
- Not implemented for timer64(v0) - K2 devices

Signed-off-by: Don Dominic <a0486429@ti.com>
20 months ago[PDK-10423] IPC: RPMessage Buffer Size Byte Alignment update
Don Dominic [Mon, 13 Sep 2021 06:11:22 +0000 (11:41 +0530)]
[PDK-10423] IPC: RPMessage Buffer Size Byte Alignment update

- Align MSGBUFFERSIZE to HEAPALIGNMENT
- Related updates in buffer size used by examples
- 64bit cores was reporting failures in some cases without this update

Signed-off-by: Don Dominic <a0486429@ti.com>
20 months agoIPC: C66x: FreeRTOS multicore_echo_testb Example Build Fix
Don Dominic [Mon, 13 Sep 2021 04:42:17 +0000 (10:12 +0530)]
IPC: C66x: FreeRTOS multicore_echo_testb Example Build Fix

- Fix Build issues with ex02_bios_multicore_echo_testb_freertos for C66x.
- BTCM test makefile path is one level down and needs update in INCDIR

Signed-off-by: Don Dominic <a0486429@ti.com>
20 months agoIPC: C66x: Build Fix
Don Dominic [Thu, 9 Sep 2021 05:34:56 +0000 (11:04 +0530)]
IPC: C66x: Build Fix

- Fix Build issues with ipc_ech_testb_freertos for C66x.
- BTCM test makefile path is one level down and needs update in INCDIR

Signed-off-by: Don Dominic <a0486429@ti.com>
20 months ago[PDK-10425] Build Fix for SBL
Ankur [Wed, 8 Sep 2021 19:18:54 +0000 (00:48 +0530)]
[PDK-10425] Build Fix for SBL

Signed-off-by: Ankur <a0132173@ti.com>
20 months ago[PDK -9356] IPC: Performance Test Updates
Don Dominic [Mon, 30 Aug 2021 09:54:16 +0000 (15:24 +0530)]
[PDK -9356] IPC: Performance Test Updates

- Rename main_rtos.c to main.c
  - To avoid multiple source fiel with same name
    - First instance is examples/common/src folder
- Add function to Disable Cache for Shared DDR Region and IPC Data Region

- Add the following which was missing
  - C66x Timer Interrupt configuration
    - Function was defined in ipc_apputils, but was not used
  - Add C7x Clec Configuration Timer Interrupt
    - Implemented the fxn as well which was missing

- Related makefile updates

Signed-off-by: Don Dominic <a0486429@ti.com>
20 months ago[PDK-9356] IPC: FreeRTOS C66x - Linker File and Memory Map Updates
Don Dominic [Mon, 30 Aug 2021 09:47:13 +0000 (15:17 +0530)]
[PDK-9356] IPC: FreeRTOS C66x - Linker File and Memory Map Updates

- Swap C66x Cores IPC_DATA section for proper caching
  - to overcome the limitation - "16 MB" being the minimum cache block size in C66x
  - Requirement is to disable cache for IPC_DATA only(1 MB)
  - Each C66x core mark 16MB as un-cached(swapped default allocation) and place the section to be uncached here.
    Rest all section are palced in default allocated regions (which remains cached from current cores perspective)
- Approach similar to SysBIOS case

- Also fix typo in c66xdsp_2 linker file

Signed-off-by: Don Dominic <a0486429@ti.com>
20 months ago[PDK-9356] IPC : FreeRTOS C66x Migration - Cache Related Updates
Don Dominic [Mon, 30 Aug 2021 09:40:57 +0000 (15:10 +0530)]
[PDK-9356] IPC : FreeRTOS C66x Migration - Cache Related Updates

- Disable Cache for Shared DDR Region and IPC Data Region
- In case of SysBIOS, cache was disable for this region via .cfg file
  - Use OSAL APIs for FreeRTOS
- Related makefile updates

Signed-off-by: Don Dominic <a0486429@ti.com>
20 months ago[PDK-9355] FreeRTOS: C66x: Use OSAL CacheP APIs to enable cache for DDR
Don Dominic [Mon, 30 Aug 2021 09:32:56 +0000 (15:02 +0530)]
[PDK-9355] FreeRTOS: C66x: Use OSAL CacheP APIs to enable cache for DDR

- Instead of custom implementation in freertos portable layer to enable cache
  for DDR region by configuring the MAR registers, use the new OSAl CacheP_setMar API

- Validated FreeRTOS UT on j721e c66xdsp_1/c66xdsp_2

Signed-off-by: Don Dominic <a0486429@ti.com>
20 months ago[PDK-9356] OSAL: CacheP: Add new APIs for C66x Cache Enable/Disable
Don Dominic [Mon, 30 Aug 2021 09:22:35 +0000 (14:52 +0530)]
[PDK-9356] OSAL: CacheP: Add new APIs for C66x Cache Enable/Disable

- Add following APIs in nonos/freertos CacheP OSAL implementation
  - CacheP_setMar
    - To Enable/Disable cache for a region
    - This API sets the corressponding MAR registers
  - CacheP_getMar
   - To get the current MAR register value for block
- Add typedef for MAR register setting type definition

Signed-off-by: Don Dominic <a0486429@ti.com>
20 months ago[PDK-10423] IPC: Address Review Comments - Remove multiple macros redefinition
Don Dominic [Mon, 6 Sep 2021 12:30:25 +0000 (18:00 +0530)]
[PDK-10423] IPC: Address Review Comments - Remove multiple macros redefinition

- Remove multiple macros redefinition in ipc_perf_test source file
- These macros are already defined in common/src/ipc_setup.h

Signed-off-by: Don Dominic <a0486429@ti.com>
20 months ago[PDK-10423] IPC: Fix RPMessage Heap Corruption due to wrong size
Don Dominic [Tue, 31 Aug 2021 19:42:41 +0000 (01:12 +0530)]
[PDK-10423] IPC: Fix RPMessage Heap Corruption due to wrong size

Fix:
- Update MSGBUFFERSIZE to max data payload + header RPMessage_MsgElem size
  - This is used to create multiple heaps for Rx messages
- Added new define IPC_MAX_DATA_PAYLOAD
- Related updates in Rx buffers size for examples

Issue:
- Wrong sized heap was causing corruption in subsequent heap block's handle(next/prev elem)

Validation:
- Issue reproduced and fix validated on RTOS multicore echo test with payload of size 496 bytes
  and invoking heap alloc in RPMessage_enqueMsg

Signed-off-by: Don Dominic <a0486429@ti.com>
20 months agoPDK-9368: drv/ipc: j721s2: Fix OCM RAM addr range for mcu1_0
Jonathan Bergsagel [Tue, 31 Aug 2021 16:03:52 +0000 (11:03 -0500)]
PDK-9368: drv/ipc: j721s2: Fix OCM RAM addr range for mcu1_0

Fixes OCMRAM address range in alternate usage mcu1_0 linker
cmd files to match with new X509 header address for J721S2.

Signed-off-by: Jonathan Bergsagel <jbergsagel@ti.com>
20 months agoPDK-9368: drv/ipc: Update VRING addr and fix comments
Jonathan Bergsagel [Tue, 24 Aug 2021 14:28:08 +0000 (09:28 -0500)]
PDK-9368: drv/ipc: Update VRING addr and fix comments

Changes VRING address for J721S2 to 0xA8000000, since
there are only 9 processor cores on the SoC and we can
compress the memory layout for IPC.

Also takes care of review comments on drv/ipc updates
for J721S2.

Signed-off-by: Jonathan Bergsagel <jbergsagel@ti.com>
20 months agoPDK-9368: drv/ipc: Initial build for j721s2
Jonathan Bergsagel [Thu, 27 May 2021 00:13:35 +0000 (19:13 -0500)]
PDK-9368: drv/ipc: Initial build for j721s2

Initial IPC driver support for J721S2.  Mainly
for support of ipc_echo_testb build for mcu1_0
to support sciserver functionality for testing
Linux boot on A72.

Signed-off-by: Jonathan Bergsagel <jbergsagel@ti.com>
20 months agoKeywriter build fix
Ankur [Mon, 30 Aug 2021 17:15:36 +0000 (22:45 +0530)]
Keywriter build fix

Signed-off-by: Ankur <a0132173@ti.com>
20 months ago[PDK-10497] OSAL: TimerP: Fix Timer TIOCP_CFG Register configuration
Don Dominic [Wed, 25 Aug 2021 17:22:34 +0000 (22:52 +0530)]
[PDK-10497] OSAL: TimerP: Fix Timer TIOCP_CFG Register configuration

- Set 'emulation mode' and 'idle mode' in TIOCP_CFG
  after Soft Reset(if required)

- Earlier, it was setting all bits except soft reset bit to 1 due to wrong implementation

Signed-off-by: Don Dominic <a0486429@ti.com>
20 months ago[PDK-9546] SafeRTOS: CPU Port Lib for J721E R5F
Don Dominic [Wed, 25 Aug 2021 14:59:41 +0000 (20:29 +0530)]
[PDK-9546] SafeRTOS: CPU Port Lib for J721E R5F

- Updated SafeRTOS Version for j721e in pdk_tools_path.mk
  - 01_00_j721e_r5f_eval
- Updates safertos lib makefile and component.mk
  - Enable j721e all r5f cores (mcu1_0/mcu1_1/mcu2_0/mcu2_1/mcu3_0/mcu$
  - Add rule for safertos_demo

Signed-off-by: Don Dominic <a0486429@ti.com>
20 months ago[QNX] Ipc: Update to support j7200
Praveen Rao [Wed, 24 Feb 2021 03:04:05 +0000 (21:04 -0600)]
[QNX] Ipc: Update to support j7200

Signed-off-by: Praveen Rao <prao@ti.com>
20 months ago[QNX] Osal: Update for QNX
Praveen Rao [Tue, 16 Feb 2021 23:58:26 +0000 (17:58 -0600)]
[QNX] Osal: Update for QNX

Signed-off-by: Praveen Rao <prao@ti.com>
20 months ago[PDK-10284] : Porting FATFS examples to freertos.
Megharaj A G [Wed, 25 Aug 2021 06:27:47 +0000 (11:57 +0530)]
[PDK-10284] : Porting FATFS examples to freertos.

21 months ago[PDK-10417] Fix for out of bound array access
Ankur [Fri, 6 Aug 2021 14:17:20 +0000 (19:47 +0530)]
[PDK-10417] Fix for out of bound array access

Signed-off-by: Ankur <a0132173@ti.com>
21 months agoMcSPI App name and packaging fix
Ankur [Sun, 22 Aug 2021 18:24:03 +0000 (23:54 +0530)]
McSPI App name and packaging fix

Signed-off-by: Ankur <a0132173@ti.com>
21 months ago[PDK-10459] Keywriter packaging fix
Ankur [Sun, 22 Aug 2021 17:40:42 +0000 (23:10 +0530)]
[PDK-10459] Keywriter packaging fix

Signed-off-by: Ankur <a0132173@ti.com>
21 months agoFix for pointer from integer cast. Build fails for MPU core
Ankur [Sun, 22 Aug 2021 15:20:27 +0000 (20:50 +0530)]
Fix for pointer from integer cast. Build fails for MPU core

Signed-off-by: Ankur <a0132173@ti.com>
21 months ago[QNX] Board: Build: Update for QNX build
Praveen Rao [Wed, 18 Aug 2021 21:09:13 +0000 (16:09 -0500)]
[QNX] Board: Build: Update for QNX build

Signed-off-by: Praveen Rao <prao@ti.com>
21 months ago[PDK-9356] FreeRTOS C66x: UDMA UT linker append updates REL.CORESDK.08.00.01.13 REL.CORESDK.08.00.01.14
Don Dominic [Tue, 3 Aug 2021 09:50:46 +0000 (15:20 +0530)]
[PDK-9356] FreeRTOS C66x: UDMA UT linker append updates

- Add new linker append cmd file for c66x freertos
- Rename current file for r5f
- makefile updates

Signed-off-by: Don Dominic <a0486429@ti.com>
21 months ago[PDK-9356]FreeRTOS C66x: IPC Migration Updates
Don Dominic [Wed, 4 Aug 2021 09:32:10 +0000 (15:02 +0530)]
[PDK-9356]FreeRTOS C66x: IPC Migration Updates

- Linker File updates
  - Add ipc custom linker files for c66x freertos
- Rename main_tirtos.c to main_rtos.c
- Make file and Source updates related to R5F only TCMB tests

Signed-off-by: Don Dominic <a0486429@ti.com>
21 months ago[PDK-9356][PDK-9357][PDK-10453] FreeRTOS C66x: Port PDK C66x Examples
Don Dominic [Wed, 4 Aug 2021 12:41:11 +0000 (18:11 +0530)]
[PDK-9356][PDK-9357][PDK-10453] FreeRTOS C66x: Port PDK C66x Examples

- Migration of following C66x Driver examples
  - UDMA
  - GPIO
  - I2C
  - McASP
  - Sciclient
  - UART

- Updates in DMTimer used by OS - interrupt configuration

- OSAL UT updates for the same

Signed-off-by: Don Dominic <a0486429@ti.com>
21 months ago[PDK-10387] FreeRTOS C66x: Enable FreeRTOS Builds for C66x cores
Don Dominic [Mon, 2 Aug 2021 18:21:57 +0000 (23:51 +0530)]
[PDK-10387] FreeRTOS C66x: Enable FreeRTOS Builds for C66x cores

- Updated top level ti/build/makerules component.mk
  to remove c66xdsp_1 and c66xdsp_2 from EXCLUDE_CORES for FreeRTOS
- This is the only change required to enable FreeRTOS Build
  of all applicable C66x RTOS examples
  (which already uses macros to generate rules in component.mk)

Signed-off-by: Don Dominic <a0486429@ti.com>
21 months ago[PDK-10387] Board: J721E: Remove multiple entries for DMTimer 0 PLL Clk Cfg
Don Dominic [Mon, 16 Aug 2021 10:43:56 +0000 (16:13 +0530)]
[PDK-10387] Board: J721E: Remove multiple entries for DMTimer 0 PLL Clk Cfg

- Remove multiple entries for TISCI_DEV_TIMER0 in j721e_evm/board_pll.c
- Retain only the entry for 192MHz Clk Cfg
- With FreeRTOS, DM Timer0 is used as the tick timer for j721e c66xdsp_1
  - 192MHz is the expected frequency

- Without this update, freertos UT Delay test fails in SBL mode due to wrong timer clk frequency

Signed-off-by: Don Dominic <a0486429@ti.com>
21 months agoSysBIOS C66x: Update default timer for C66x dsp_2 core
Don Dominic [Mon, 2 Aug 2021 18:25:14 +0000 (23:55 +0530)]
SysBIOS C66x: Update default timer for C66x dsp_2 core

- Use DMTimer 1 for c66xdsp_2
- So that the source file can be same for FreeRTOS amd SysBIOS

Signed-off-by: Don Dominic <a0486429@ti.com>
21 months ago[PDK-10351] FreeRTOS C66x: Linker updates
Don Dominic [Fri, 30 Jul 2021 16:55:35 +0000 (22:25 +0530)]
[PDK-10351] FreeRTOS C66x: Linker updates

- Place vectors/startup in DDR
- Allign with SysBIOS mem map
- This resolves SBL Boot issues with FreeRTOS C66x images

Signed-off-by: Don Dominic <a0486429@ti.com>
21 months ago[PDK-10387] OSAL: OSAL Support for FreeRTOS on C66x
Don Dominic [Wed, 28 Jul 2021 18:02:43 +0000 (23:32 +0530)]
[PDK-10387] OSAL: OSAL Support for FreeRTOS on C66x

- Enable OSAL FreeRTOS UT for j721e c66xdsp_1/c66xdsp_2
- OSAl UT updates for:-
  - DM Timer used by OS
  - Event Num, Interrupt Num for the DM Timer used by OS
  - DM TImer for Timer test
  - Event Num, Interrupt Num for the DM Timer for Timer test

- Validated OSAL FreeRTOS/SysBIOS UT on c66xdsp_1/c66xdsp_2

Signed-off-by: Don Dominic <a0486429@ti.com>
21 months agoRemove extraneous defines for sciclient X509 header addr
Jonathan Bergsagel [Fri, 13 Aug 2021 21:41:10 +0000 (16:41 -0500)]
Remove extraneous defines for sciclient X509 header addr

Other defines for the sciclient/sciserver common X509
header address are now removed, since there is a single
definition in drv/sciclient/sciclient.h.

Signed-off-by: Jonathan Bergsagel <jbergsagel@ti.com>
21 months agoPDK-9368: j721s2: Fixes sciserver task stack size.
Jonathan Bergsagel [Fri, 6 Aug 2021 23:35:00 +0000 (18:35 -0500)]
PDK-9368: j721s2: Fixes sciserver task stack size.

Updates task stack size to 2536.

Signed-off-by: Jonathan Bergsagel <jbergsagel@ti.com>
21 months agoPDK-9368: Fixes X509 header addr for sciclient/sciserver
Jonathan Bergsagel [Fri, 6 Aug 2021 23:25:14 +0000 (18:25 -0500)]
PDK-9368: Fixes X509 header addr for sciclient/sciserver

Updates to use common location in sciclient.h for sciclient/sciserver
X509 Header Address, instead of having multiple definitions in various
locations.
Also, adds alternate X509 header location that is required for sciclient
and sciserver for J721S2.

Signed-off-by: Jonathan Bergsagel <jbergsagel@ti.com>
21 months agoPDK-10418: sciclient: Add TIFS2DM msg forwarding test
Jonathan Bergsagel [Sat, 7 Aug 2021 05:31:59 +0000 (00:31 -0500)]
PDK-10418: sciclient: Add TIFS2DM msg forwarding test

Adds a TIFS2DM msg forwarding test with a PM message request
to the sciclient_unit_testapp, so that the TIFS2DM path can
be tested when a remote core sends a PM or RM message over
a secure queue.  Tested on J7200, J721E and J721S2.

Signed-off-by: Jonathan Bergsagel <jbergsagel@ti.com>
21 months agoFix in SBL to allow loading multi-stage FW on HS device
Megharaj A G [Thu, 12 Aug 2021 07:35:18 +0000 (13:05 +0530)]
Fix in SBL to allow loading multi-stage FW on HS device

21 months agowatchdog init failure
Parth Nagpal [Fri, 30 Jul 2021 15:00:38 +0000 (20:30 +0530)]
watchdog init failure
The watchdog clock register needs to be unlocked before writing to it.

Signed-off-by: Parth Nagpal <x1080849@ti.com>
21 months agoCCM test fail leading to sdr test failure REL.CORESDK.08.00.00.35 REL.CORESDK.08.00.00.36
Parth Nagpal [Mon, 2 Aug 2021 13:07:12 +0000 (18:37 +0530)]
CCM test fail leading to sdr test failure
Commented out the failing CCM tests for the release 8.00.00
Signed-off-by: Parth Nagpal <x1080849@ti.com>
22 months agoPDK-9368: j721s2: Sciclient/Sciserver fixes to match RM/PM data
Jonathan Bergsagel [Thu, 29 Jul 2021 04:22:44 +0000 (23:22 -0500)]
PDK-9368: j721s2: Sciclient/Sciserver fixes to match RM/PM data

Updates sciclient/sciserver source files to match latest SoC data
in related RM_PM_HAL sources.  Fixes issues with related test apps.

Signed-off-by: Jonathan Bergsagel <jbergsagel@ti.com>
22 months agoPDK-9368: Update TIFS and default BoardCfg_RM for J721S2
Jonathan Bergsagel [Tue, 27 Jul 2021 21:23:58 +0000 (16:23 -0500)]
PDK-9368: Update TIFS and default BoardCfg_RM for J721S2

Updates J721S2 TIFS binary and brings in latest RM changes
as well.

Signed-off-by: Jonathan Bergsagel <jbergsagel@ti.com>
22 months agoPCIe driver example failing for freeRtos
Parth Anil Nagpal [Tue, 27 Jul 2021 10:16:31 +0000 (15:46 +0530)]
PCIe driver example failing for freeRtos
This is fixed by increasing the stack size for freeRtos

22 months ago[GPIO Driver]Reverting Commit ID: 6afb0eda364 REL.CORESDK.08.00.00.32 REL.CORESDK.08.00.00.33 REL.CORESDK.08.00.00.34
Vivek Dhande [Thu, 22 Jul 2021 06:40:05 +0000 (12:10 +0530)]
[GPIO Driver]Reverting Commit ID: 6afb0eda364

- [GPIO DRV][Bug Fix][PDK-10341]PMIC: Asynchronous Interrupt tests results in failure due to incorrect destination core configuration

Signed-off-by: Vivek Dhande <a0132295@ti.com>