processor-sdk/pdk.git
8 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

8 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>
8 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>
8 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>
8 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>
8 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>
8 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>
8 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>
8 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

8 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>
8 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>
8 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>
8 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>
8 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>
8 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

8 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>
8 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>
8 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>
8 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>
8 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>
8 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>
8 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>
8 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>
8 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>
8 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>
8 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>
8 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>
8 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>
8 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>
8 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>
8 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>
9 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>
9 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>
9 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>
9 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>
9 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>
9 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>
9 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>
9 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>
9 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>
9 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>
9 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>
9 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>
9 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>
9 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>
9 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>
9 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>
9 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>
9 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>
9 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>
9 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>
9 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>
9 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>
9 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>
9 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>
9 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>
9 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>
9 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>
9 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>
9 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>
9 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>
9 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.

10 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>
10 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>
10 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>
10 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>
10 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>
10 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>
10 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>
10 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>
10 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>
10 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>
10 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>
10 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>
10 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>
10 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>
10 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>
10 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>
10 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>
10 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

10 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>
10 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>
10 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>
10 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>
10 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

11 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>
11 months agoIPC: AM65xx Linker File Updates to place reset vectors in ATCM
Don Dominic [Wed, 21 Jul 2021 19:48:34 +0000 (01:18 +0530)]
IPC: AM65xx Linker File Updates to place reset vectors in ATCM

- Move reset vectors, boot code, startup code and startup data to ATCM from OCMC RAM
- This is required in case of Linux for IPC Echo Test

Signed-off-by: Don Dominic <a0486429@ti.com>
11 months ago[GPIO DRV][Bug Fix][PDK-10341]PMIC: Asynchronous Interrupt tests results in failure... REL.CORESDK.08.00.00.31
Vivek Dhande [Tue, 20 Jul 2021 17:41:07 +0000 (23:11 +0530)]
[GPIO DRV][Bug Fix][PDK-10341]PMIC: Asynchronous Interrupt tests results in failure due to incorrect destination core configuration

- Issue:
    - When application compiled and run from RC package/ for pre-compiled GPIO Driver Lib for the any other MCU core than MCU1_x, then application hangs
- Root-cause:
    - GPIO driver used core macros for configuration of interrupts
    - since this driver lib is marked as core independent, only application for first compiled mcux_x  work
    - For subsequent MCU core build, lib is not built and hence uses old interrupts configuration which is protected under macros for "mcux_x"
- Resolution:
    - Mark GPIO driver as core dependent in the make file

Signed-off-by: Vivek Dhande <a0132295@ti.com>
11 months agoIPC: Linker File Updates to place .resource_table in start of EXT_DATA memory
Don Dominic [Wed, 21 Jul 2021 16:52:40 +0000 (22:22 +0530)]
IPC: Linker File Updates to place .resource_table in start of EXT_DATA memory

- Place .resource_table in start of corresponding cores EXT_DATA memory
- Linux expects the .resource_table at this address for each core

- without this updates, .tracebuf was going as the first entry in EXT_DATA memory
  and .resource_table will be placed following this

Signed-off-by: Don Dominic <a0486429@ti.com>
11 months agoIPC Example: Multicore Perf Test Fix for HS Devices REL.CORESDK.08.00.00.30
Don Dominic [Thu, 15 Jul 2021 13:02:20 +0000 (18:32 +0530)]
IPC Example: Multicore Perf Test Fix for HS Devices

- Use HS KEY for signing
  - HS KEY will work for both GP and HS device
  - So instead of creating two app image - one with GP KEY and HS KEY, we will use one app image for both

- Updates ref. to https://bitbucket.itg.ti.com/projects/PROCESSOR-SDK/repos/pdk/commits/502b5ea5f1de9df56376a95edea00837c17fe979

- This resolves the "Boot Halted" issue with IPC Multicore performance test on HS Devices.

Signed-off-by: Don Dominic <a0486429@ti.com>
11 months agoosal: Increase maximum values for tasks and queues
Lucas Weaver [Wed, 14 Jul 2021 16:11:01 +0000 (11:11 -0500)]
osal: Increase maximum values for tasks and queues

11 months agoRemoving HS Build input for early init as it is not required
Ankur [Wed, 14 Jul 2021 09:06:19 +0000 (14:36 +0530)]
Removing HS Build input for early init as it is not required

Signed-off-by: Ankur <a0132173@ti.com>
11 months agoFixed: PDK-10315: SBL does not set NB priorities for the HS device
Brijesh Jadav [Tue, 13 Jul 2021 05:01:44 +0000 (10:31 +0530)]
Fixed: PDK-10315: SBL does not set NB priorities for the HS device

- Setting NB priorities only after module is enabled

Signed-off-by: Brijesh Jadav <brijesh.jadav@ti.com>
11 months agoPDK-10318: Added ADCBUF memory initialization (Ping and Pong).
KALYAN VAGVALA [Tue, 13 Jul 2021 09:19:24 +0000 (14:49 +0530)]
PDK-10318: Added ADCBUF memory initialization (Ping and Pong).

11 months agoRevert "PDK-9018: Added board check for J721E EVM in board library" REL.CORESDK.08.00.00.29
Ankur [Tue, 13 Jul 2021 18:20:48 +0000 (23:50 +0530)]
Revert "PDK-9018: Added board check for J721E EVM in board library"

This reverts commit 50c30968518ca2bb32867dcb6a416d4a5bee1086.

11 months ago[PDK-10322] EthFW config shouldn't be done for HLOS boot
Ankur [Tue, 13 Jul 2021 17:51:36 +0000 (23:21 +0530)]
[PDK-10322] EthFW config shouldn't be done for HLOS boot

Signed-off-by: Ankur <a0132173@ti.com>
11 months agoApi Guide: OSAL: HeapP Build Fixes
Don Dominic [Mon, 12 Jul 2021 21:07:29 +0000 (02:37 +0530)]
Api Guide: OSAL: HeapP Build Fixes

Signed-off-by: Don Dominic <a0486429@ti.com>
11 months ago[PDK-10297] Board: Add uart flash programmer for J7200 HS
Jonathan Bergsagel [Sat, 10 Jul 2021 00:19:23 +0000 (19:19 -0500)]
[PDK-10297] Board: Add uart flash programmer for J7200 HS

Signed-off-by: Jonathan Bergsagel <jbergsagel@ti.com>
11 months agoupdated input clock src for cpsw for awr294x REL.CORESDK.08.00.00.28
Prasad Konnur [Wed, 30 Jun 2021 06:22:10 +0000 (11:52 +0530)]
updated input clock src for cpsw for awr294x

 - CPSW was sourcing from DPLL Core Hsdiv ClkOut2 which has different
     frequency for ETS (300MHz) and LOP (400MHz)
 - it cant be used as clk src for CPSW which requires 200MHz on ETS.
 - Updated to use DPLL Per Hsdiv ClkOut1 which is 200MHz for both
     variants.

Signed-off-by: Prasad Konnur <prasadkonnur@ti.com>
11 months agoAdding XDC path for SCIClient FW test app
Ankur [Thu, 8 Jul 2021 03:31:52 +0000 (09:01 +0530)]
Adding XDC path for SCIClient FW test app

Signed-off-by: Ankur <a0132173@ti.com>