processor-sdk/pdk.git
45 hours agoJ7AHP: UDMA: Remove HACK for Bord_init master
l-kumar [Fri, 27 May 2022 05:51:41 +0000 (11:21 +0530)]
J7AHP: UDMA: Remove HACK for Bord_init

Fixes:PDK-12017

Signed-off-by: l-kumar <a0492259@ti.com>
2 days agoosal: cleanup: Remove source files and makefile refernces related to legacy devices
Don Dominic [Thu, 26 May 2022 12:49:15 +0000 (18:19 +0530)]
osal: cleanup: Remove source files and makefile refernces related to legacy devices

- Remove all source files and makefile related to legacy devices
- Cleanup osal_component.mk
- Remove all unsupported rules
- Remove all files that are no longer used

Signed-off-by: Don Dominic <a0486429@ti.com>
2 days ago[PDK-12013] sciserver: safertos: Fix OCMC RAM SCISERVER memory overlap
Don Dominic [Mon, 11 Apr 2022 12:01:38 +0000 (17:31 +0530)]
[PDK-12013] sciserver: safertos: Fix OCMC RAM SCISERVER memory overlap

- OCMC_RAM_SCISERVER in sciserver_testapp linker file
  was encroaching into OCMC_RAM used by other linker files
- Fix this by reducing the length of OCMC_RAM_SCISERVER in sciserver_testapp linker file
  - Also relocate various sections in sciserver_testapp linker file TCMB and TCMA
    to fit all sections in available memories

- update checked-in sciserver binaries

- This fixes UDMA UT failure in R5F non-mcu1_0 cores

Signed-off-by: Don Dominic <a0486429@ti.com>
2 days ago[PDK-12012] sciclient: safertos: launch.js updates to load sciserver safertos binary
Don Dominic [Tue, 12 Apr 2022 13:15:10 +0000 (18:45 +0530)]
[PDK-12012] sciclient: safertos: launch.js updates to load sciserver safertos binary

- Add new isSafertos flag
- Load safeRTOS version of sciserver_testapp binary when above flag is set

Signed-off-by: Don Dominic <a0486429@ti.com>
2 days ago[PDK-12011] build: safertos: Updates to set custom SafeRTOS Package path
Don Dominic [Sun, 15 May 2022 15:09:12 +0000 (20:39 +0530)]
[PDK-12011] build: safertos: Updates to set custom SafeRTOS Package path

- Add new safertos_package_path.mk
- SAFERTOS_<SOC>_<ISA>_INSTALL_PATH variable can be set here
- If not set, it will use the default development location
  - i.e, $(SDK_INSTALL_PATH)/safertos_<SOC>_<ISA>_<SAFERTOS_VERSION>

- Add Utility script to setup SDK for SafeRTOS Builds
  - This script can be used to custom SafeRTOS WHIS Package Installation path
  - Also rebuilds required libraries like safertos, osal_safertos
    check-in sciserver_testapp_safertos .xer5f and .rprx to sciclient tools folder
    - This is required since the above libs/binaries won't be included in the public SDK
  - Only enabled for j721e r5f/c66/c7x
    - Can be enhanced in future to support other SOC's

Signed-off-by: Don Dominic <a0486429@ti.com>
2 days ago[PDK-12010] osal: safertos: Critical Sections Fix
Don Dominic [Sun, 15 May 2022 06:29:04 +0000 (11:59 +0530)]
[PDK-12010] osal: safertos: Critical Sections Fix

- Use SafeRTOS portable layer APIs to disable/enable Interrupts in critical sections
  when scheduler is already started and not in ISR
- This is to avoid breakage of critical sections when CSL/OSAL_Arch APIs are also used
  in conjunction

Signed-off-by: Don Dominic <a0486429@ti.com>
2 days ago[PDK-12009] safertos: test: osal: Updates to use osal_safertos lib for task switch...
Don Dominic [Sat, 14 May 2022 12:05:20 +0000 (17:35 +0530)]
[PDK-12009] safertos: test: osal: Updates to use osal_safertos lib for task switch example and safertos demo

- Since osal_safertos lib is now available for all ISA's, task switch example and safertos_demo can use the same
- task switch example and safertos_demo makefile updates to use PDK_COMMON_SAFERTOS_COMP
- OSAL updates to make vApplicationErrorHook and vApplicationSetupTickInterruptHook
  definition as weak so that application can have overridden definition.
- Remove custom linker files for task switch example and use default one in ti/build

- Also enable SBL appimage generation for task switch example

- Validated SafeRTOS Task SW Example and OSAL UT on all cores (R5F/C66x/C7x)

Signed-off-by: Don Dominic <a0486429@ti.com>
2 days ago[PDK-11091] safertos: c7x: drv: IPC SafeRTOS C7x Driver Integration
Don Dominic [Sun, 15 May 2022 18:30:29 +0000 (00:00 +0530)]
[PDK-11091] safertos: c7x: drv: IPC SafeRTOS C7x Driver Integration

- Add Linker file for IPC C7x SafeRTOS examples
- example common makefile updates to include c7x_mmu.c for safertos builds
- Also update Mmu.h header file for C7x in main_rtos.c/c7_mmu.c

Signed-off-by: Don Dominic <a0486429@ti.com>
2 days ago[PDK-11091] safertos: c7x: osal: Enable OSAL lib for SafeRTOS C7x
Don Dominic [Sun, 15 May 2022 15:11:15 +0000 (20:41 +0530)]
[PDK-11091] safertos: c7x: osal: Enable OSAL lib for SafeRTOS C7x

- General Updates to enable C7x for osal_safertos
- Add HwiP_safertos_c7x.c
- Add osalArch_TimeStampGetFreqKHz and osalArch_TimestampGet64 implementations
  in arch/core/c7x to enable TimerP_getTimeInUsecs
- Related makefile updates
- Update OSAL_CPU_FREQ_KHZ_DEFAULT in osal/soc/j721e/osal_soc.h based on ISA flags

- Updates to make SafeROS C7x Integration with Drivers similar to FreeRTOS
  so that no custom updates are required in the application
- Define Osal_initMmuDefault and OsalCfgClecAccessCtrl
  which will be referred in applications
- Invoke application defined InitMmu in the SafeRTOS C7x startup function vInitMmu

- Enable OSAL SafeRTOS UT for C7x
  - OSAL UT Source file updates

- OSAL_board.h cleanup

Signed-off-by: Don Dominic <a0486429@ti.com>
2 days ago[PDK-9547] c7x: build: Update --symdebug compiler option for SafeRTOS C7x Build
Don Dominic [Tue, 29 Mar 2022 20:17:28 +0000 (01:47 +0530)]
[PDK-9547]  c7x: build: Update --symdebug compiler option for SafeRTOS C7x Build

- SafeRTOS package uses .asmfunc and .endasmfunc directives
- This will work only with --symdebug:dwarf compiler option

- Hence set --symdebug:dwarf for both release and debug safertos build

Signed-off-by: Don Dominic <a0486429@ti.com>
2 days ago[PDK-9547] safertos: c7x: Check-in SafeRTOS C7x
Don Dominic [Wed, 18 May 2022 08:45:38 +0000 (14:15 +0530)]
[PDK-9547]  safertos: c7x: Check-in SafeRTOS C7x

- Check-in SafeRTOS C7x Release from WHIS
  - makefile updates for SafeRTOS C7x package, enables safertos lib for C7x
  - makefile updates for safertos_demo app build for C7x
- Enable safertos task switch example for C7x
- Add default linker file for safeRTOS C7x
- Enable C7x SafeRTOS apps build for j721e from ti/build/component.mk
  - Remove c7x_1 from SafeRTOS default exclude CORELIST

Signed-off-by: Don Dominic <a0486429@ti.com>
2 days ago[PDK-9535] safertos: c66: IPC/UDMA/UART/McASP/Sciclient SafeRTOS C66x Integration...
Don Dominic [Wed, 18 May 2022 08:34:45 +0000 (14:04 +0530)]
[PDK-9535]  safertos: c66: IPC/UDMA/UART/McASP/Sciclient SafeRTOS C66x Integration Updates

- Add IPC C66x SafeRTOS Linker files
- Driver Example source file updates to
  - restrict R5F FFI limitation - stack to be aligned to stack size only for MCU cores
  - bypass IR Configuration for Timer Interrupt
    - For SafeRTOS this is already done as part of OS_Init()

Signed-off-by: Don Dominic <a0486429@ti.com>
Signed-off-by: chandru dhavamani <chandru@ti.com>
2 days ago[PDK-9535] safertos: c66: osal: Enable OSAL lib for SafeRTOS C66x
Don Dominic [Wed, 18 May 2022 08:35:26 +0000 (14:05 +0530)]
[PDK-9535]  safertos: c66: osal: Enable OSAL lib for SafeRTOS C66x

- General Updates to enable C66x for osal_safertos
- Enable OSAL SafeRTOS UT for C66x
  - OSAL UT Source file updates

Signed-off-by: Don Dominic <a0486429@ti.com>
Signed-off-by: chandru dhavamani <chandru@ti.com>
2 days ago[PDK-10707] safertos: c66: Check-in SafeRTOS C66
Don Dominic [Wed, 18 May 2022 08:35:06 +0000 (14:05 +0530)]
[PDK-10707] safertos: c66: Check-in SafeRTOS C66

- Check-in SafeRTOS C66x Release from WHIS
  - makefile updates for safertos c66x package, enables safertos lib for C66x
  - makefile updates for safertos_demo app build for C66x
- Enable safertos task switch example for C66x
- Add default linker file for SafeRTOS C66x
- Enable C66x SafeRTOS apps build for j721e from ti/build/component.mk

Signed-off-by: Don Dominic <a0486429@ti.com>
Signed-off-by: chandru dhavamani <chandru@ti.com>
2 days ago[PDK-9534] safertos: r5f: IPC/SPI/Scicleint SafeRTOS R5F Driver Integration Updates
Don Dominic [Sat, 14 May 2022 19:46:25 +0000 (01:16 +0530)]
[PDK-9534]  safertos: r5f: IPC/SPI/Scicleint SafeRTOS R5F Driver Integration Updates

- SafeRTOS v.7 to v.9 Migration updates in mpu config files
- IPC/Sciserver_testapp Linker file update
- IPC Linker file updates to place .text in DDR instead of MSMC
- Place mpu Config table in .startUpData

- check-in sciserver_testapp binary

- Enable Sciclient FW App

Signed-off-by: chandru dhavamani <chandru@ti.com>
Signed-off-by: Don Dominic <a0486429@ti.com>
2 days ago[PDK-12008] safertos: test: Define SAFERTOS_log and update print statements in task...
Don Dominic [Sat, 14 May 2022 12:05:26 +0000 (17:35 +0530)]
[PDK-12008] safertos: test: Define SAFERTOS_log and update print statements in task switch example

- Update safertos task switch example to use SAFERTOS_log instead of printf
- UART prints are enabled by default with SAFERTOS_log

- Also enable SBL appimage generation for task switch example

- This updates are required for  test automation

Signed-off-by: chandru dhavamani <chandru@ti.com>
Signed-off-by: Don Dominic <a0486429@ti.com>
2 days ago[PDK-12007] osal: safertos: Fix issues due to usage of Build Define SAFERTOS in TaskP...
Don Dominic [Tue, 29 Mar 2022 07:09:28 +0000 (12:39 +0530)]
[PDK-12007] osal: safertos: Fix issues due to usage of Build Define SAFERTOS in TaskP header file

- In case of OS independent library builds, SAFERTOS flags won't be defined
  and including TaskP header will cause weird run-time issues if #ifdef with
  SAFERTOS is used.
- This will result in TaskP_Params different between caller and callee.

- Generally we should never #ifdef in a header file for a define that is defined
  by build command line to avoid such issues.Depending on where the header file
  is included it will result in number of such weird issues

Signed-off-by: Don Dominic <a0486429@ti.com>
2 days ago[PDK-12006] osal: safertos : Fix core dependency for osal_safertos lib
Don Dominic [Sun, 15 May 2022 06:10:58 +0000 (11:40 +0530)]
[PDK-12006] osal: safertos : Fix core dependency for osal_safertos lib

- osal_safertos is a core independent library
- But there was core dependency due to usage of defines
  from core-dependent safertos header file
  - Usage of macros like configTIMER_INT_NUM/configTIMER_EVENT_ID/configTIMER_ID
    which is defined in SafeRTOS_Config.h and value depends on "core"

- Fix this by adding osal defines for all cores and
  new function & structure to dynamically return the params for the current core

- Also move common header includes to new SafeRTOS_priv.h
  and include the same in source files

Signed-off-by: Don Dominic <a0486429@ti.com>
Signed-off-by: chandru dhavamani <chandru@ti.com>
2 days ago[PDK-12005] osal: safertos: Updates for SafeRTOS v.9 Migration and to use latest...
Don Dominic [Tue, 24 May 2022 07:52:40 +0000 (13:22 +0530)]
[PDK-12005] osal: safertos: Updates for SafeRTOS v.9 Migration and to use latest SafeRTOS package

- Updates for SafeRTOS Kernel v.7 to v.9 migration
- Updates for latest SafeRTOS port
  - Define mandatory hook functions
- General Cleanup
- Split into multiple source files to scale for various ISA's like R5F/C66x/C7x
  - This same approach will be followed for C66x/C7x
  - C66x requires this due to linking limitations related to overridden
    definitions of weak functions
  - Add new empty prvSetupHardware function
    - This will be valid for other ISA
- Updates in SafeRTOS_config.c for new prvSetupHardware function
- Retain MPU programming related code in SafeRTOS_mpu_r5f.c
- Add vFiqHandler function
- Related makefile updates

- Also include some osal_safertos build fixes and soc files cleanup

Signed-off-by: Don Dominic <a0486429@ti.com>
Signed-off-by: chandru dhavamani <chandru@ti.com>
2 days ago[PDK-12005] safertos: test: port task switch example for SafeRTOS v.9 migration
Don Dominic [Fri, 13 May 2022 18:59:54 +0000 (00:29 +0530)]
[PDK-12005] safertos: test: port task switch example for SafeRTOS v.9 migration

- Updates for SafeRTOS Kernel v.7 to v.9 migration
- Also includes updates for latest SafeRTOS port
  - Define mandatory hook functions
- General Cleanup
- Split into multiple source files to scale for various ISA's like R5F/C66x/C7x

Signed-off-by: Don Dominic <a0486429@ti.com>
2 days ago[PDK-12004] safertos: demo: Update rule for safertos_demo example build
Don Dominic [Fri, 13 May 2022 06:06:23 +0000 (11:36 +0530)]
[PDK-12004] safertos: demo: Update rule for safertos_demo example build

- safertos_demo is an example included in SafeRTOS WHIS Package
- Update the rule to build the same in safertos_component.mk
  - Minor path fixes
- Add makefile for the same in /kernel/test/safertos/safertos_demo

- This example build is disabled by default, since the example is part of WHIS package
- Developers can enable this to validate if required, by uncommenting following line in
  safertos_component.mk
  ```safertos_EXAMPLE_LIST +=  safertos_demo```

Validated safertos_demo app build

Signed-off-by: Don Dominic <a0486429@ti.com>
2 days ago[PDK-9546] safertos: r5f: Check-in SafeRTOS R5F
Don Dominic [Sat, 14 May 2022 06:12:24 +0000 (11:42 +0530)]
[PDK-9546]  safertos: r5f: Check-in SafeRTOS R5F

- Update SafeRTOS R5F Port to latest version

- Make SAFERTOS_KERNEL_INSTALL_PATH generic to <soc>/<isa>
- Define SAFERTOS_VERSION_<isa> for applicable <board>'s

- SafeRTOS makefile updates for new R5F package
  - makefile updates for new directory structure
  - updates in source files

- SafeRTOS R5F default linker file updates

- Enable OSAL UT for R5F cores

Signed-off-by: Don Dominic <a0486429@ti.com>
2 days agoBoard: J721E EVM: Build fix for 2.5Gbps SGMII serdes config
Nitin Sakhuja [Thu, 26 May 2022 14:25:03 +0000 (09:25 -0500)]
Board: J721E EVM: Build fix for 2.5Gbps SGMII serdes config

Removed an unused variable which caused PDK build failure

Signed-off-by: Nitin Sakhuja <n-sakhuja@ti.com>
2 days ago[DSS]: Enabling basic build for DSS on J7AHP.
Mriganka Chakravarty [Mon, 16 May 2022 08:47:59 +0000 (14:17 +0530)]
[DSS]: Enabling basic build for DSS on J7AHP.

Signed-off-by: Mriganka Chakravarty <m-chakravarty@ti.com>
2 days agoJ784S4: MMCSD: update the macros acoording to the CSL update
Sai Ramakurthi [Thu, 26 May 2022 12:06:00 +0000 (17:36 +0530)]
J784S4: MMCSD: update the macros acoording to the CSL update

Signed-off-by: Sai Ramakurthi <s-ramakurthi@ti.com>
2 days ago[FREERTOS]: FREERTOS J784S4 porting
chandru dhavamani [Wed, 25 May 2022 04:08:35 +0000 (09:38 +0530)]
[FREERTOS]: FREERTOS J784S4 porting
- freertos lib has been built for j784s4
- freertos examples has been built for j784s4

Signed-off-by: chandru dhavamani <chandru@ti.com>
2 days agoBoard: J7200 EVM: Added Serdes configuration for USXGMII
Nitin Sakhuja [Mon, 23 May 2022 10:28:02 +0000 (05:28 -0500)]
Board: J7200 EVM: Added Serdes configuration for USXGMII

Added Serdes configuration to support USXGMII (XFI) on J7200 EVM

Signed-off-by: Nitin Sakhuja <n-sakhuja@ti.com>
2 days agoBoard: J721E EVM: Added Serdes configuration for 2.5Gbps SGMII
Nitin Sakhuja [Mon, 23 May 2022 09:44:42 +0000 (04:44 -0500)]
Board: J721E EVM: Added Serdes configuration for 2.5Gbps SGMII

Added Serdes configuration to support SGMII 2.5Gbps data rate (XAUI) on
J721E EVM

Signed-off-by: Nitin Sakhuja <n-sakhuja@ti.com>
2 days agotimesync: v2: Relocate PTP demo stack to Enet LLD
Misael Lopez Cruz [Wed, 9 Feb 2022 04:21:16 +0000 (22:21 -0600)]
timesync: v2: Relocate PTP demo stack to Enet LLD

PTP demo stack is being moved from PDK timeSync v2 to Enet LLD.

Signed-off-by: Misael Lopez Cruz <misael.lopez@ti.com>
2 days agoBug fix: PDK-10314
Rishabh Garg [Sat, 9 Apr 2022 10:08:19 +0000 (15:38 +0530)]
Bug fix: PDK-10314

- Added changes for configuring DSI lane speed.
- Initializing lanespeed application parameter for DSI lanes before passing it to driver.
- Removed hardcode macro for the DPHY REF_CLK. Using the PMLIB call to get the clock at the runtime.

Signed-off-by: Rishabh Garg <rishabh@ti.com>
3 days ago[I2C] Enabling j721e mcu3_0 and mcu3_1 cores
chandru dhavamani [Wed, 25 May 2022 10:53:07 +0000 (16:23 +0530)]
[I2C] Enabling j721e mcu3_0 and mcu3_1 cores
- mcu3_0 and mcu3_1 cores for j721e_evm has been enabled

Signed-off-by: chandru dhavamani <chandru@ti.com>
3 days agoDisabled SBL app image gen for J784S4
Rishabh Garg [Wed, 25 May 2022 09:40:12 +0000 (15:10 +0530)]
Disabled SBL app image gen for J784S4

Signed-off-by: Rishabh Garg <rishabh@ti.com>
3 days agoBuild Fix for PDK
Rishabh Garg [Wed, 25 May 2022 07:41:53 +0000 (13:11 +0530)]
Build Fix for PDK

- FATFS should be built only for cores supported by MMCSD
- Removed legacy code

Signed-off-by: Rishabh Garg <rishabh@ti.com>
4 days agoJ7AHP: Jenkins: Fix: Disable FreeRTOS apps
Lohith Kumar [Mon, 23 May 2022 09:42:02 +0000 (15:12 +0530)]
J7AHP: Jenkins: Fix: Disable FreeRTOS apps
Remove C7x cores from GPIO baremetal led testapp

Signed-off-by: Lohith Kumar <l-kumar@ti.com>
4 days agoJ784S4: MMCSD: Add MMCSD build support for J784S4
Sai Ramakurthi [Mon, 16 May 2022 12:09:16 +0000 (17:39 +0530)]
J784S4: MMCSD: Add MMCSD build support for J784S4

Signed-off-by: Sai Ramakurthi <s-ramakurthi@ti.com>
4 days agoBoard: Enabled diagnostic tests for j721s2 evm
M V Pratap Reddy [Mon, 23 May 2022 16:11:31 +0000 (21:41 +0530)]
Board: Enabled diagnostic tests for j721s2 evm

 - Board diagnostic test update from j72s2_bringup branch for master merge

4 days agoBoard: Enabled Uniflash flash programmer for j721s2
M V Pratap Reddy [Mon, 23 May 2022 16:04:18 +0000 (21:34 +0530)]
Board: Enabled Uniflash flash programmer for j721s2

5 days agoFixed packaging issue for OSAL
Rishabh Garg [Mon, 23 May 2022 18:46:42 +0000 (00:16 +0530)]
Fixed packaging issue for OSAL

Signed-off-by: Rishabh Garg <rishabh@ti.com>
5 days agoRemoved stale IPC examples
Rishabh Garg [Mon, 23 May 2022 16:42:14 +0000 (22:12 +0530)]
Removed stale IPC examples

- These examples are not valid anymore
- Renamed IPC negative test

Signed-off-by: Rishabh Garg <rishabh@ti.com>
5 days agoJ7AHP: OSAL: Osal bringup
Aditya Wadhwa [Fri, 20 May 2022 17:45:49 +0000 (23:15 +0530)]
J7AHP: OSAL: Osal bringup

Signed-off-by: Aditya Wadhwa <a-wadhwa@ti.com>
5 days agoRemoved linker command files for legacy SOCs from build
Rishabh Garg [Mon, 23 May 2022 16:51:48 +0000 (22:21 +0530)]
Removed linker command files for legacy SOCs from build

Signed-off-by: Rishabh Garg <rishabh@ti.com>
5 days agoBuild fix for J721e
Rishabh Garg [Mon, 23 May 2022 16:26:45 +0000 (21:56 +0530)]
Build fix for J721e

- J721e builds a few apps for baremetal for C66x
- Hence need to retain the linker command file which was removed as part of:
- https://bitbucket.itg.ti.com/projects/PROCESSOR-SDK/repos/pdk/pull-requests/2660/overview

Signed-off-by: Rishabh Garg <rishabh@ti.com>
5 days agoIPC Cleanup
Rishabh Garg [Mon, 23 May 2022 15:54:31 +0000 (21:24 +0530)]
IPC Cleanup

- Removed AM64, AM65 SOC
- Removed SYSBIOS/XDC files

Signed-off-by: Rishabh Garg <rishabh@ti.com>
5 days agoBuild Updates
Rishabh Garg [Mon, 23 May 2022 09:01:18 +0000 (14:31 +0530)]
Build Updates

- Removed unused files from build directory
- Added SBL dummy app for mcu4_0 for mcu4_1 apps in common.mk
- Cleaned up older SOCs/XDC/BIOS defines

Signed-off-by: Rishabh Garg <rishabh@ti.com>
5 days ago[UART]: Enabling UART applications on J7AHP.
Mriganka Chakravarty [Mon, 23 May 2022 08:47:52 +0000 (14:17 +0530)]
[UART]: Enabling UART applications on J7AHP.

Signed-off-by: Mriganka Chakravarty <m-chakravarty@ti.com>
5 days ago[J7AHP] Added missing C7x linker command file
Rishabh Garg [Mon, 23 May 2022 08:44:22 +0000 (14:14 +0530)]
[J7AHP] Added missing C7x linker command file

Signed-off-by: Rishabh Garg <rishabh@ti.com>
5 days agoJ7AHP: UDMA: Add linker command file for ospi_test_app
Lohith Kumar [Fri, 20 May 2022 14:01:44 +0000 (19:31 +0530)]
J7AHP: UDMA: Add linker command file for ospi_test_app

Signed-off-by: Lohith Kumar <l-kumar@ti.com>
5 days agoJ7AHP: Example: Add soc specific for j7ahp
Lohith Kumar [Fri, 20 May 2022 14:00:25 +0000 (19:30 +0530)]
J7AHP: Example: Add soc specific for j7ahp

Signed-off-by: Lohith Kumar <l-kumar@ti.com>
8 days agoJ7AHP: OSAL: Increasing number of tasks and queues for J7AHP
Lucas Weaver [Fri, 20 May 2022 14:37:16 +0000 (09:37 -0500)]
J7AHP: OSAL: Increasing number of tasks and queues for J7AHP

-This is required for PSDK system testing

8 days agosciserver: Check AOP flag before sending ACK/NACK
Sebin Francis [Mon, 14 Feb 2022 12:41:45 +0000 (18:11 +0530)]
sciserver: Check AOP flag before sending ACK/NACK

For TISCI messages ACK/NACK is only send for messages with AOP flag set
in the TISCI header. Check the AOP flag in the TISCI header before
sending ACK/NACK back to the host.

Signed-off-by: Sebin Francis <sebin.francis@ti.com>
8 days agoRemoved XDC related content from platform.mk
Rishabh Garg [Thu, 19 May 2022 14:02:34 +0000 (19:32 +0530)]
Removed XDC related content from platform.mk

Signed-off-by: Rishabh Garg <rishabh@ti.com>
9 days agoBoard: Enabled board device library for j784s4 evm
M V Pratap Reddy [Thu, 19 May 2022 18:49:32 +0000 (00:19 +0530)]
Board: Enabled board device library for j784s4 evm

 - PDK-11781: Enabled audio codec library
 - PDK-11780: Enabled FPD device library for UB960, UB953, UB9702 and
   associated sensor module.

9 days ago[I2C]: Enabled drv_i2c_utility app for J7AHP.
Mriganka Chakravarty [Thu, 19 May 2022 14:39:57 +0000 (20:09 +0530)]
[I2C]: Enabled drv_i2c_utility app for J7AHP.

Signed-off-by: Mriganka Chakravarty <m-chakravarty@ti.com>
9 days ago[GPIO]: GPIO_LedBlink_TestApp is ported for j784s4.
Mriganka Chakravarty [Thu, 19 May 2022 12:57:10 +0000 (18:27 +0530)]
[GPIO]: GPIO_LedBlink_TestApp is ported for j784s4.

Signed-off-by: Mriganka Chakravarty <m-chakravarty@ti.com>
9 days ago[BUILD]: Updated PDK common component for J7AHP.
Mriganka Chakravarty [Thu, 19 May 2022 11:39:47 +0000 (17:09 +0530)]
[BUILD]: Updated PDK common component for J7AHP.

Signed-off-by: Mriganka Chakravarty <m-chakravarty@ti.com>
9 days agoJ7AHP: SPI: Removing board related hacks
Aditya Wadhwa [Thu, 19 May 2022 11:03:00 +0000 (16:33 +0530)]
J7AHP: SPI: Removing board related hacks

Signed-off-by: Aditya Wadhwa <a-wadhwa@ti.com>
9 days agoJ7AHP: Sciclient: Fix for C7X cores
Aditya Wadhwa [Thu, 19 May 2022 10:35:44 +0000 (16:05 +0530)]
J7AHP: Sciclient: Fix for C7X cores

Signed-off-by: Aditya Wadhwa <a-wadhwa@ti.com>
9 days agoBoard: Enabled board library build support for j784s4
M V Pratap Reddy [Thu, 19 May 2022 09:11:59 +0000 (14:41 +0530)]
Board: Enabled board library build support for j784s4

 - All the board functions are empty in this update and provides basic
   build support for integrating with apps.

9 days ago[GPIO]: GPIO porting for J7AHP.
Mriganka Chakravarty [Wed, 18 May 2022 05:49:13 +0000 (11:19 +0530)]
[GPIO]: GPIO porting for J7AHP.

Signed-off-by: Mriganka Chakravarty <m-chakravarty@ti.com>
9 days agoj7ahp: freertos: Fix freertos lib build failures for C7x cores
Don Dominic [Thu, 19 May 2022 10:05:43 +0000 (15:35 +0530)]
j7ahp: freertos: Fix freertos lib build failures for C7x cores

- Add defines for CLEC BASE and RTMAP

Signed-off-by: Don Dominic <a0486429@ti.com>
9 days agoFix: J7AHP: Add #endif udma_component
Lohith Kumar [Thu, 19 May 2022 09:52:20 +0000 (15:22 +0530)]
Fix: J7AHP: Add #endif udma_component

Signed-off-by: Lohith Kumar <l-kumar@ti.com>
9 days agoj7AHP: UDMA: Port driver
Lohith Kumar [Wed, 18 May 2022 14:20:03 +0000 (19:50 +0530)]
j7AHP: UDMA: Port driver

- Add additional cores
- Add additonal VPAC and CPSW

Signed-off-by: Lohith Kumar <l-kumar@ti.com>
9 days agoHACK: J7AHP: Add dummy `Board_init` definition
Lohith Kumar [Wed, 18 May 2022 14:27:31 +0000 (19:57 +0530)]
HACK: J7AHP: Add dummy `Board_init` definition

- Add dummy `Board_init` definition until board comes up for ahp.

Signed-off-by: Lohith Kumar <l-kumar@ti.com>
9 days agoJ7AHP: Makefile: Add example build support
Lohith Kumar [Wed, 18 May 2022 14:29:17 +0000 (19:59 +0530)]
J7AHP: Makefile: Add example build support

Signed-off-by: Lohith Kumar <l-kumar@ti.com>
9 days agoJ7AHP: Add udma support for VPAC1 instances.
l-kumar [Thu, 5 May 2022 13:08:11 +0000 (18:38 +0530)]
J7AHP: Add udma support for VPAC1 instances.

Signed-off-by: Lohith Kumar <l-kumar@ti.com>
9 days agoFix: J7AHP: GPIO: Change GIC macro
Lohith Kumar [Thu, 19 May 2022 09:01:01 +0000 (14:31 +0530)]
Fix: J7AHP: GPIO: Change GIC macro

Signed-off-by: Lohith Kumar <l-kumar@ti.com>
9 days ago[UART]: Adding j784s4 in UART common makefile.
Mriganka Chakravarty [Thu, 19 May 2022 07:40:04 +0000 (13:10 +0530)]
[UART]: Adding j784s4 in UART common makefile.

Signed-off-by: Mriganka Chakravarty <m-chakravarty@ti.com>
10 days agoDisabled sciclient FW app for J7AHP
Rishabh Garg [Wed, 18 May 2022 18:04:51 +0000 (23:34 +0530)]
Disabled sciclient FW app for J7AHP

Signed-off-by: Rishabh Garg <rishabh@ti.com>
10 days agoosal_freertos: j7ahp: Enable OSAL FreeRTOS lib for j784s4
Don Dominic [Wed, 18 May 2022 16:23:01 +0000 (21:53 +0530)]
osal_freertos: j7ahp: Enable OSAL FreeRTOS lib for j784s4

- Add j784s4 to libosal_freertos_SOCLIST

Signed-off-by: Don Dominic <a0486429@ti.com>
10 days agobuild: j7ahp: Add CFLAGS and LNKFLAGS for c7x_3 and c7x_4 build
Don Dominic [Wed, 18 May 2022 16:42:17 +0000 (22:12 +0530)]
build: j7ahp: Add CFLAGS and LNKFLAGS for c7x_3 and c7x_4 build

- Add required CFLAGS and LNKFLAGS for c7x_3 and c7x_4

Signed-off-by: Don Dominic <a0486429@ti.com>
10 days agoj7ahp: Fix c7x_3 c7_4 build
Don Dominic [Wed, 18 May 2022 13:12:53 +0000 (18:42 +0530)]
j7ahp: Fix c7x_3 c7_4 build

- Enabled c7x_3 and c7x_4 as well to C7x ISA

Signed-off-by: Don Dominic <a0486429@ti.com>
10 days ago[HACK] j7ahp: board: Package Build Fixes
Don Dominic [Wed, 18 May 2022 13:11:51 +0000 (18:41 +0530)]
[HACK] j7ahp: board: Package Build Fixes

- Comment packaging of files and folders not yet added for j7ahp in board/

Signed-off-by: Don Dominic <a0486429@ti.com>
10 days ago[FVID2]: Enabling basic build for FVID2 on J7AHP.
Mriganka Chakravarty [Wed, 18 May 2022 04:43:12 +0000 (10:13 +0530)]
[FVID2]: Enabling basic build for FVID2 on J7AHP.

Signed-off-by: Mriganka Chakravarty <m-chakravarty@ti.com>
11 days ago[I2C] Adding basic build support for I2C on J7AHP
Mriganka Chakravarty [Mon, 16 May 2022 04:34:42 +0000 (10:04 +0530)]
[I2C] Adding basic build support for I2C on J7AHP

Signed-off-by: Mriganka Chakravarty <m-chakravarty@ti.com>
11 days agoJ7AHP: SPI: Removing hack for UART printf
Aditya Wadhwa [Tue, 17 May 2022 14:26:10 +0000 (19:56 +0530)]
J7AHP: SPI: Removing hack for UART printf

Fixes: PDK-12014

Signed-off-by: Aditya Wadhwa <a-wadhwa@ti.com>
11 days ago[IPC] : Changing the final passed string
chandru dhavamani [Tue, 17 May 2022 12:41:15 +0000 (18:11 +0530)]
[IPC] : Changing the final passed string
- Here the final string is changed so that automation can check for this string for pass condition.

Signed-off-by: chandru dhavamani <chandru@ti.com>
11 days agoFixed OSAL makefile
Rishabh Garg [Tue, 17 May 2022 09:01:02 +0000 (14:31 +0530)]
Fixed OSAL makefile

- Added missing MCU and C7x cores for J7AEP/J7AHP
- Removed xdc files from packaging

Signed-off-by: Rishabh Garg <rishabh@ti.com>
11 days agoJ7AHP: Issue building memcopy example
Lohith Kumar [Tue, 17 May 2022 06:36:31 +0000 (12:06 +0530)]
J7AHP: Issue building memcopy example

UDMA example support has not been added yet cleaning component.mk

Signed-off-by: Lohith Kumar <l-kumar@ti.com>
11 days agoJ784S4: SPI: Add SPI driver support
Aditya Wadhwa [Fri, 13 May 2022 13:44:51 +0000 (19:14 +0530)]
J784S4: SPI: Add SPI driver support

Added McSPI and OSPI support

Fixes: SYSFW-5205

Signed-off-by: Aditya Wadhwa <a-wadhwa@ti.com>
11 days agoJ784S4: GPIO: Minimal GPIO driver addition
Aditya Wadhwa [Fri, 13 May 2022 13:30:29 +0000 (19:00 +0530)]
J784S4: GPIO: Minimal GPIO driver addition

Minimal GPIO driver addition to add SPI driver support

Signed-off-by: Aditya Wadhwa <a-wadhwa@ti.com>
11 days agoJ784S4: Board: Minimal board driver addition
Aditya Wadhwa [Fri, 13 May 2022 13:29:20 +0000 (18:59 +0530)]
J784S4: Board: Minimal board driver addition

Minimal board driver addition to add SPI driver support

Signed-off-by: Aditya Wadhwa <a-wadhwa@ti.com>
11 days ago[UART]: Enabling basic build for UART on J7AHP
Mriganka Chakravarty [Mon, 16 May 2022 05:00:48 +0000 (10:30 +0530)]
[UART]: Enabling basic build for UART on J7AHP

Signed-off-by: Mriganka Chakravarty <m-chakravarty@ti.com>
12 days ago[IPC] : Fix for the sciclient for ipc_echo_test
chandru dhavamani [Fri, 13 May 2022 12:48:08 +0000 (18:18 +0530)]
[IPC] : Fix for the sciclient for ipc_echo_test
- ipc_echo_test is used to communicate between the cores in the EVM.
- Global variable has been created to check sciclient_init is completed
- Reason - UART_printf can be used only after sciclient_init

Signed-off-by: chandru dhavamani <chandru@ti.com>
2 weeks agoJ7AHP: Add build support for UDMA
Lohith Kumar [Thu, 12 May 2022 14:30:41 +0000 (20:00 +0530)]
J7AHP: Add build support for UDMA
 - Add makefile support for basic build
 - Update TISCI event macros
Signed-off-by: Lohith Kumar <l-kumar@ti.com>
2 weeks agoJ7AHP: UDMA: Creation dummy SOC specific files
l-kumar [Wed, 6 Apr 2022 15:39:20 +0000 (21:09 +0530)]
J7AHP: UDMA: Creation dummy SOC specific files

Creating SOC specific files by using j721s2 SOC specific data

Signed-off-by: l-kumar <a0492259@ti.com>
2 weeks agoPDK-11855:j7200:Board: Removed hard-coded delay loops in j7200 ddr config
M V Pratap Reddy [Fri, 22 Apr 2022 12:13:03 +0000 (17:43 +0530)]
PDK-11855:j7200:Board: Removed hard-coded delay loops in j7200 ddr config

2 weeks ago[PDK-10132] Board: Added optimized DDR configuration for j7200
M V Pratap Reddy [Fri, 22 Apr 2022 07:55:04 +0000 (13:25 +0530)]
[PDK-10132] Board: Added optimized DDR configuration for j7200

 - J7200 with new device substrarte can work with optimized DDR
   configurations. Updated board library to swicth between the DDR
   configurations based on the device revision.

2 weeks agoJ721S2_HS: Enable HS boot for J721S2
SR [Tue, 10 May 2022 17:39:50 +0000 (23:09 +0530)]
J721S2_HS: Enable HS boot for J721S2

Signed-off-by: Sai Ramakurthi <s-ramakurthi@ti.com>
2 weeks agoJ7AHP: Removing mpu cores where they are not supported
Aditya Wadhwa [Wed, 11 May 2022 14:25:06 +0000 (19:55 +0530)]
J7AHP: Removing mpu cores where they are not supported

Added mpu11, mpu20 and mpu21 to exclude core list
Removed mpu11, mpu20 amd mpu21 from sciclient core list

Signed-off-by: Aditya Wadhwa <a-wadhwa@ti.com>
2 weeks agoJ7AHP: Build: Add build support for mcu4_0 and mcu4_1 cores
Aditya Wadhwa [Tue, 26 Apr 2022 17:39:31 +0000 (23:09 +0530)]
J7AHP: Build: Add build support for mcu4_0 and mcu4_1 cores

Signed-off-by: Aditya Wadhwa <a-wadhwa@ti.com>
2 weeks agoJ7AHP: Sciclient: sciclient ccs init and sciserver testapp added
Aditya Wadhwa [Mon, 18 Apr 2022 16:43:35 +0000 (22:13 +0530)]
J7AHP: Sciclient: sciclient ccs init and sciserver testapp added

Signed-off-by: Aditya Wadhwa <a-wadhwa@ti.com>
2 weeks agoJ7AHP: Build: Add build support and scilient/sciserver support
Aditya Wadhwa [Mon, 11 Apr 2022 15:18:29 +0000 (20:48 +0530)]
J7AHP: Build: Add build support and scilient/sciserver support

Adds basic build support for J784S4 along with
sciclient/sciserver soc data.

Fixes: PDK-11019
Fixes: PDK-11087

Signed-off-by: Aditya Wadhwa <a-wadhwa@ti.com>
2 weeks agoJ7AHP: OSAL: Add basic OSAL/TimerP support
Aditya Wadhwa [Mon, 11 Apr 2022 15:06:43 +0000 (20:36 +0530)]
J7AHP: OSAL: Add basic OSAL/TimerP support

Added OSAL/TimerP support for J784S4. Required
for sciclient/sciserver builds.

Signed-off-by: Aditya Wadhwa <a-wadhwa@ti.com>
2 weeks agoKeywriter changes reverted as we dont need Keywriter changes from j721s2_bringup
Mriganka Chakravarty [Tue, 10 May 2022 06:01:39 +0000 (11:31 +0530)]
Keywriter changes reverted as we dont need Keywriter changes from j721s2_bringup

Signed-off-by: Mriganka Chakravarty <m-chakravarty@ti.com>
2 weeks agoFixed packaging for IPC
Rishabh Garg [Tue, 10 May 2022 05:40:43 +0000 (11:10 +0530)]
Fixed packaging for IPC

- Build failures got introduced due to wrong packaging

Signed-off-by: Rishabh Garg <rishabh@ti.com>
2 weeks agoOSPI: J721E: Enable write completion autopolling for j721e
Aditya Wadhwa [Mon, 9 May 2022 12:18:06 +0000 (17:48 +0530)]
OSPI: J721E: Enable write completion autopolling for j721e

Enables write completion autopolling to match a recent
change in the definition of the CSL function which was
causing failure of the OSPI UT

Fixes: PDK-11994

Signed-off-by: Aditya Wadhwa <a-wadhwa@ti.com>
2 weeks ago[QNX] board: Add build support for j721s2
Praveen Rao [Mon, 2 May 2022 22:32:04 +0000 (17:32 -0500)]
[QNX] board: Add build support for j721s2

Signed-off-by: Praveen Rao <prao@ti.com>
2 weeks ago[QNX] ipc: Add build support for j721s2
Praveen Rao [Mon, 2 May 2022 22:20:13 +0000 (17:20 -0500)]
[QNX] ipc: Add build support for j721s2

Signed-off-by: Praveen Rao <prao@ti.com>
2 weeks ago[QNX] sciclient: Add build support for j721s2
Praveen Rao [Mon, 2 May 2022 22:18:47 +0000 (17:18 -0500)]
[QNX] sciclient: Add build support for j721s2

Signed-off-by: Praveen Rao <prao@ti.com>
2 weeks ago[QNX] ipc: Fix typo in the qnx ipc osal
Praveen Rao [Mon, 2 May 2022 22:22:24 +0000 (17:22 -0500)]
[QNX] ipc: Fix typo in the qnx ipc osal

Signed-off-by: Praveen Rao <prao@ti.com>