Implemented the changes from am57x
Updating c7x Compiler to 2.0.0.STS release
Signed-off-by: Ankur <a0132173@ti.com>
Signed-off-by: Ankur <a0132173@ti.com>
[PDK-7608] IPC: Disable Mailbox Interrupt before registering OSAL Interrupt
- disable the mailbox interrupt (from previous runs)
- This allows IPC to restart fine after Core rest
Signed-off-by: Don Dominic <a0486429@ti.com>
- disable the mailbox interrupt (from previous runs)
- This allows IPC to restart fine after Core rest
Signed-off-by: Don Dominic <a0486429@ti.com>
[PDK-10524] IPC: Reset Global variables to allow IPC task to be restarted
- reset global variables to allow IPC task to be restarted
- And IPC can be re-attached to remote cores.
- This is done during Ipc_initVirtIO
Signed-off-by: Don Dominic <a0486429@ti.com>
- reset global variables to allow IPC task to be restarted
- And IPC can be re-attached to remote cores.
- This is done during Ipc_initVirtIO
Signed-off-by: Don Dominic <a0486429@ti.com>
IPC: Fix IPC Echo Test Crash on C7x_1
- Initialize vrTranslationTable.count to 0
- This is used to translate address
- When not initialized to zero, address may go out of range and can cause unexpected behavior
This caused crash in c7x_1 after compiler migration
Signed-off-by: Don Dominic <a0486429@ti.com>
- Initialize vrTranslationTable.count to 0
- This is used to translate address
- When not initialized to zero, address may go out of range and can cause unexpected behavior
This caused crash in c7x_1 after compiler migration
Signed-off-by: Don Dominic <a0486429@ti.com>
[Build Fix]
Signed-off-by: Vivek Dhande <a0132295@ti.com>
Signed-off-by: Vivek Dhande <a0132295@ti.com>
[Build Fix]Am65xx
Signed-off-by: Vivek Dhande <a0132295@ti.com>
Signed-off-by: Vivek Dhande <a0132295@ti.com>
[Build Fix]
Signed-off-by: Vivek Dhande <a0132295@ti.com>
Signed-off-by: Vivek Dhande <a0132295@ti.com>
Unitls copy packaging fix for AM65
Signed-off-by: Ankur <a0132173@ti.com>
Signed-off-by: Ankur <a0132173@ti.com>
Diabling few more Nimu lib for AM65
Signed-off-by: Ankur <a0132173@ti.com>
Signed-off-by: Ankur <a0132173@ti.com>
Disabling the nimu_icss for AM65 as this is not supported for 08.01.00 release
Signed-off-by: Ankur <a0132173@ti.com>
Signed-off-by: Ankur <a0132173@ti.com>
[Build Fix]
Signed-off-by: Vivek Dhande <a0132295@ti.com>
Signed-off-by: Vivek Dhande <a0132295@ti.com>
Build fix for SBL
Signed-off-by: Ankur <a0132173@ti.com>
Signed-off-by: Ankur <a0132173@ti.com>
[Build Fix]
Signed-off-by: Vivek Dhande <a0132295@ti.com>
Signed-off-by: Vivek Dhande <a0132295@ti.com>
Build Fix
Signed-off-by: Ankur <a0132173@ti.com>
Signed-off-by: Ankur <a0132173@ti.com>
C7x: Update to TI CGT C7000 2.0.0A21260
- Update CGT_C7X_VERSION in pdk_tools_path.mk to 2.0.0A21260
- Makefile Updates to support Silicon Version 7120 along with 7100
- Add new variable SI_VER defined in platform.mk
- 7100 fro j721e
- 7120 for j721s2
- SI_VER variable used in rules_71.mk to support both silicon versions
- Add --silicon_errata_i2117 to CFLAGS in case of Si Version 7100
- rules_c7x-hostemu.mk to define -D__C7100__/D__C7120__ based on SI_VER
Signed-off-by: Don Dominic <a0486429@ti.com>
- Update CGT_C7X_VERSION in pdk_tools_path.mk to 2.0.0A21260
- Makefile Updates to support Silicon Version 7120 along with 7100
- Add new variable SI_VER defined in platform.mk
- 7100 fro j721e
- 7120 for j721s2
- SI_VER variable used in rules_71.mk to support both silicon versions
- Add --silicon_errata_i2117 to CFLAGS in case of Si Version 7100
- rules_c7x-hostemu.mk to define -D__C7100__/D__C7120__ based on SI_VER
Signed-off-by: Don Dominic <a0486429@ti.com>
lwip: Move lwIP port layer from Enet LLD
TI-RTOS and FreeRTOS ports of lwIP are agnostic of the LLD, so they are
being relocated to lwip/ directory where lwip-stack and lwip-contrib
are hosted.
Signed-off-by: Misael Lopez Cruz <misael.lopez@ti.com>
TI-RTOS and FreeRTOS ports of lwIP are agnostic of the LLD, so they are
being relocated to lwip/ directory where lwip-stack and lwip-contrib
are hosted.
Signed-off-by: Misael Lopez Cruz <misael.lopez@ti.com>
updated the component .mk files for nimu and usb driver to generate app images
[TI Clang Migration][Phase 5]
[TI Clang Migration][Build]Porting + Build Fix
- Switched from '-O3' to '-Oz' optimization level to reduce code size
- Some applications on mcu1_0 were not able to fit into OCMCRAM due to increase in code size because of '-O3'
- Added option to chose between '-O3' and '-Oz'
Signed-off-by: Vivek Dhande <a0132295@ti.com>
[TI Clang Migration][IPC]Porting + Build Fix
- Re-enabled freeRTOS for TIRTOS as this is supported on other cores
- Fixed IPC multi-core app build
Signed-off-by: Vivek Dhande <a0132295@ti.com>
[TI Clang Migration][Fixed Review Comments][IPC]
Signed-off-by: Vivek Dhande <a0132295@ti.com>
[TI Clang Migration][SafeRTOS]Disabled build for safeRTOS
- This is not ported yet by WHIS team
Signed-off-by: Vivek Dhande <a0132295@ti.com>
[TI Clang Migration][Compile Warnings Fixed]Removed '.asmfunc' and '.endasmfunc' to fix compiler warnings
Signed-off-by: Vivek Dhande <a0132295@ti.com>
[TI Clang Migration][Link Warnings Fixed]warning: entry-point symbol other than "_c_int00" specified:
Signed-off-by: Vivek Dhande <a0132295@ti.com>
[TI Clang Migration][Sci-client]Fixed issue with sci-server testApp
- Fixed miss-aligned caused due to misplaced sections 'OCMC_RAM_X509_HEADER1' and 'OCMC_RAM_X509_HEADER2'
Signed-off-by: Vivek Dhande <a0132295@ti.com>
[TI Clang Migration] Re-enable lwIP in makefile
Signed-off-by: Misael Lopez Cruz <misael.lopez@ti.com>
[TI Clang Migration][Build options]Updated build option after aligning with Compiler team
- Added '-O1' option for debug build
- Checked in new ccs init and sci-server testapp bins
Signed-off-by: Vivek Dhande <a0132295@ti.com>
[TI Clang Migration][Build Fix]Disabled Sci-server testapp for debug build to unblock Jenkins
Signed-off-by: Vivek Dhande <a0132295@ti.com>
[TI Clang Migration][Build Fix]Fixed warning while compiling assembly file
- Enabled sci-server testapp for both debug and release mode
- Updated sci-server testapp linker command file
Signed-off-by: Vivek Dhande <a0132295@ti.com>
[TI Clang Migration][Build Fix]
Signed-off-by: Vivek Dhande <a0132295@ti.com>
[TI Clang Migration][Build]Porting + Build Fix
- Switched from '-O3' to '-Oz' optimization level to reduce code size
- Some applications on mcu1_0 were not able to fit into OCMCRAM due to increase in code size because of '-O3'
- Added option to chose between '-O3' and '-Oz'
Signed-off-by: Vivek Dhande <a0132295@ti.com>
[TI Clang Migration][IPC]Porting + Build Fix
- Re-enabled freeRTOS for TIRTOS as this is supported on other cores
- Fixed IPC multi-core app build
Signed-off-by: Vivek Dhande <a0132295@ti.com>
[TI Clang Migration][Fixed Review Comments][IPC]
Signed-off-by: Vivek Dhande <a0132295@ti.com>
[TI Clang Migration][SafeRTOS]Disabled build for safeRTOS
- This is not ported yet by WHIS team
Signed-off-by: Vivek Dhande <a0132295@ti.com>
[TI Clang Migration][Compile Warnings Fixed]Removed '.asmfunc' and '.endasmfunc' to fix compiler warnings
Signed-off-by: Vivek Dhande <a0132295@ti.com>
[TI Clang Migration][Link Warnings Fixed]warning: entry-point symbol other than "_c_int00" specified:
Signed-off-by: Vivek Dhande <a0132295@ti.com>
[TI Clang Migration][Sci-client]Fixed issue with sci-server testApp
- Fixed miss-aligned caused due to misplaced sections 'OCMC_RAM_X509_HEADER1' and 'OCMC_RAM_X509_HEADER2'
Signed-off-by: Vivek Dhande <a0132295@ti.com>
[TI Clang Migration] Re-enable lwIP in makefile
Signed-off-by: Misael Lopez Cruz <misael.lopez@ti.com>
[TI Clang Migration][Build options]Updated build option after aligning with Compiler team
- Added '-O1' option for debug build
- Checked in new ccs init and sci-server testapp bins
Signed-off-by: Vivek Dhande <a0132295@ti.com>
[TI Clang Migration][Build Fix]Disabled Sci-server testapp for debug build to unblock Jenkins
Signed-off-by: Vivek Dhande <a0132295@ti.com>
[TI Clang Migration][Build Fix]Fixed warning while compiling assembly file
- Enabled sci-server testapp for both debug and release mode
- Updated sci-server testapp linker command file
Signed-off-by: Vivek Dhande <a0132295@ti.com>
[TI Clang Migration][Build Fix]
Signed-off-by: Vivek Dhande <a0132295@ti.com>
[TI Clang Migration][Phase 4]AM65xx and J7200 porting
[TI Clang Migration][Sci-client]Build Fix
- Linker command file changes
Signed-off-by: Vivek Dhande <a0132295@ti.com>
[J7200][TI Clang Migration][Board]Porting + Build Fix
Signed-off-by: Vivek Dhande <a0132295@ti.com>
[J7200][TI Clang Migration][PCIe]Porting + Build Fix
Signed-off-by: Vivek Dhande <a0132295@ti.com>
[J7200][TI Clang Migration][Build]Porting + Build Fix
- Disabled mcu2_0 and mcu2_1 cores for TIRTOS/SYSBIOS
Signed-off-by: Vivek Dhande <a0132295@ti.com>
[J7200][TI Clang Migration][LWIP/EMAC]Porting + Build Fix
Signed-off-by: Vivek Dhande <a0132295@ti.com>
[J7200][TI Clang Migration][IPC]Porting + Build Fix
- Updated for TIRTOS apps build
Signed-off-by: Vivek Dhande <a0132295@ti.com>
[AM65xx][TI Clang Migration][Board]Porting + Build Fix
- Disabled EMAC related Diag tests
Signed-off-by: Vivek Dhande <a0132295@ti.com>
[AM65xx][TI Clang Migration][PCIe]Porting + Build Fix
- Removed <module>_profile libs due to PDK utils issue
Signed-off-by: Vivek Dhande <a0132295@ti.com>
[AM65xx][TI Clang Migration][USB]Porting + Build Fix
Signed-off-by: Vivek Dhande <a0132295@ti.com>
[J7200][TI Clang Migration][SBL]One minor linker command file change
Signed-off-by: Vivek Dhande <a0132295@ti.com>
[AM65xx][TI Clang Migration][Diag/SDR]Porting + Build Fix
Signed-off-by: Vivek Dhande <a0132295@ti.com>
[AM65xx][TI Clang Migration][FREERTOS]Porting + Build Fix
Signed-off-by: Vivek Dhande <a0132295@ti.com>
[AM65xx][TI Clang Migration][NIMU]Disabled NIMU as it is only supported on TIRTOS
Signed-off-by: Vivek Dhande <a0132295@ti.com>
[AM65xx][TI Clang Migration][EMAC]Disabled EMAC as it is only supported on TIRTOS
Signed-off-by: Vivek Dhande <a0132295@ti.com>
[AM65xx][TI Clang Migration][SBL]Minot Linker Command update
Signed-off-by: Vivek Dhande <a0132295@ti.com>
[TI Clang Migration][Sci-client]Build Fix
- Linker command file changes
Signed-off-by: Vivek Dhande <a0132295@ti.com>
[J7200][TI Clang Migration][Board]Porting + Build Fix
Signed-off-by: Vivek Dhande <a0132295@ti.com>
[J7200][TI Clang Migration][PCIe]Porting + Build Fix
Signed-off-by: Vivek Dhande <a0132295@ti.com>
[J7200][TI Clang Migration][Build]Porting + Build Fix
- Disabled mcu2_0 and mcu2_1 cores for TIRTOS/SYSBIOS
Signed-off-by: Vivek Dhande <a0132295@ti.com>
[J7200][TI Clang Migration][LWIP/EMAC]Porting + Build Fix
Signed-off-by: Vivek Dhande <a0132295@ti.com>
[J7200][TI Clang Migration][IPC]Porting + Build Fix
- Updated for TIRTOS apps build
Signed-off-by: Vivek Dhande <a0132295@ti.com>
[AM65xx][TI Clang Migration][Board]Porting + Build Fix
- Disabled EMAC related Diag tests
Signed-off-by: Vivek Dhande <a0132295@ti.com>
[AM65xx][TI Clang Migration][PCIe]Porting + Build Fix
- Removed <module>_profile libs due to PDK utils issue
Signed-off-by: Vivek Dhande <a0132295@ti.com>
[AM65xx][TI Clang Migration][USB]Porting + Build Fix
Signed-off-by: Vivek Dhande <a0132295@ti.com>
[J7200][TI Clang Migration][SBL]One minor linker command file change
Signed-off-by: Vivek Dhande <a0132295@ti.com>
[AM65xx][TI Clang Migration][Diag/SDR]Porting + Build Fix
Signed-off-by: Vivek Dhande <a0132295@ti.com>
[AM65xx][TI Clang Migration][FREERTOS]Porting + Build Fix
Signed-off-by: Vivek Dhande <a0132295@ti.com>
[AM65xx][TI Clang Migration][NIMU]Disabled NIMU as it is only supported on TIRTOS
Signed-off-by: Vivek Dhande <a0132295@ti.com>
[AM65xx][TI Clang Migration][EMAC]Disabled EMAC as it is only supported on TIRTOS
Signed-off-by: Vivek Dhande <a0132295@ti.com>
[AM65xx][TI Clang Migration][SBL]Minot Linker Command update
Signed-off-by: Vivek Dhande <a0132295@ti.com>
[TI Clang Migration][Phase 3]
[TI Clang Migration][FATFS]Porting to Clang
Signed-off-by: Vivek Dhande <a0132295@ti.com>
[TI Clang Migration][PDK Utils][FATFS]Disabled PDK Utils based libs/apps
- disabling this as entry/exit hook arguments are not supported by clang
Signed-off-by: Vivek Dhande <a0132295@ti.com>
[TI Clang Migration][FreeRTOS]Disabled C99 build as it does not supprot 'asm()'
Signed-off-by: Vivek Dhande <a0132295@ti.com>
[TI Clang Migration][OSAL]Porting to Clang
Signed-off-by: Vivek Dhande <a0132295@ti.com>
[TI Clang Migration][PDK Utils][OSAL]Disabled PDK Utils based libs/apps
- disabling this as entry/exit hook arguments are not supported by clang
- disabling mcu build for TIRTOS
Signed-off-by: Vivek Dhande <a0132295@ti.com>
[TI Clang Migration][Transport]Porting to Clang
Signed-off-by: Vivek Dhande <a0132295@ti.com>
[TI Clang Migration][PDK Utils][Transport]Disabled PDK Utils based libs/apps
- Disabled NIMU as it is only built for TIRTOS
Signed-off-by: Vivek Dhande <a0132295@ti.com>
[TI Clang Migration][PDK Utils]Disabled PDK Utils based libs/apps
- disabling this as entry/exit hook arguments are not supported by clang
Signed-off-by: Vivek Dhande <a0132295@ti.com>
[TI Clang Migration]Porting to Clang
- Added '*.d' and '*.o' for ignoring these compiler generated files
Signed-off-by: Vivek Dhande <a0132295@ti.com>
[TI Clang Migration][Sci-client]Porting to Clang
Signed-off-by: Vivek Dhande <a0132295@ti.com>
[Keywriter]Disabled application for TI Clang Migration, for build fix
Signed-off-by: Vivek Dhande <a0132295@ti.com>
[TI Clang Migration][Keywriter]
Signed-off-by: Vivek Dhande <a0132295@ti.com>
[TI Clang Migration][SBL]Porting to Clang patch-3
- Fixed mcu1_0, mcu1_1 builds
Signed-off-by: Vivek Dhande <a0132295@ti.com>
[TI Clang Migration][SBL]Porting to Clang patch-4
- Fixed mcu1_0, mcu1_1 builds: increased MSMC3 memory size
Signed-off-by: Vivek Dhande <a0132295@ti.com>
[TI Clang Migration][Sci-client]Porting to Clang
Signed-off-by: Vivek Dhande <a0132295@ti.com>
[TI Clang Migration][FATFS]Porting to Clang
Signed-off-by: Vivek Dhande <a0132295@ti.com>
[TI Clang Migration][PDK Utils][FATFS]Disabled PDK Utils based libs/apps
- disabling this as entry/exit hook arguments are not supported by clang
Signed-off-by: Vivek Dhande <a0132295@ti.com>
[TI Clang Migration][FreeRTOS]Disabled C99 build as it does not supprot 'asm()'
Signed-off-by: Vivek Dhande <a0132295@ti.com>
[TI Clang Migration][OSAL]Porting to Clang
Signed-off-by: Vivek Dhande <a0132295@ti.com>
[TI Clang Migration][PDK Utils][OSAL]Disabled PDK Utils based libs/apps
- disabling this as entry/exit hook arguments are not supported by clang
- disabling mcu build for TIRTOS
Signed-off-by: Vivek Dhande <a0132295@ti.com>
[TI Clang Migration][Transport]Porting to Clang
Signed-off-by: Vivek Dhande <a0132295@ti.com>
[TI Clang Migration][PDK Utils][Transport]Disabled PDK Utils based libs/apps
- Disabled NIMU as it is only built for TIRTOS
Signed-off-by: Vivek Dhande <a0132295@ti.com>
[TI Clang Migration][PDK Utils]Disabled PDK Utils based libs/apps
- disabling this as entry/exit hook arguments are not supported by clang
Signed-off-by: Vivek Dhande <a0132295@ti.com>
[TI Clang Migration]Porting to Clang
- Added '*.d' and '*.o' for ignoring these compiler generated files
Signed-off-by: Vivek Dhande <a0132295@ti.com>
[TI Clang Migration][Sci-client]Porting to Clang
Signed-off-by: Vivek Dhande <a0132295@ti.com>
[Keywriter]Disabled application for TI Clang Migration, for build fix
Signed-off-by: Vivek Dhande <a0132295@ti.com>
[TI Clang Migration][Keywriter]
Signed-off-by: Vivek Dhande <a0132295@ti.com>
[TI Clang Migration][SBL]Porting to Clang patch-3
- Fixed mcu1_0, mcu1_1 builds
Signed-off-by: Vivek Dhande <a0132295@ti.com>
[TI Clang Migration][SBL]Porting to Clang patch-4
- Fixed mcu1_0, mcu1_1 builds: increased MSMC3 memory size
Signed-off-by: Vivek Dhande <a0132295@ti.com>
[TI Clang Migration][Sci-client]Porting to Clang
Signed-off-by: Vivek Dhande <a0132295@ti.com>
[TI Clang Migration][Phase 2]
[TI Clang Migration][PDK Utils][DSS]Disabled PDK Utils based libs/apps
- disabling this as entry/exit hook arguments are not supported by clang
Signed-off-by: Vivek Dhande <a0132295@ti.com>
[TI Clang Migration][PDK Utils][EMAC]Disabled PDK Utils based libs/apps
- disabling this as entry/exit hook arguments are not supported by clang
Signed-off-by: Vivek Dhande <a0132295@ti.com>
[TI Clang Migration][McASP]Porting to Clang
Signed-off-by: Vivek Dhande <a0132295@ti.com>
[TI Clang Migration][PDK Utils][McASP]Disabled PDK Utils based libs/apps
- disabling this as entry/exit hook arguments are not supported by clang
Signed-off-by: Vivek Dhande <a0132295@ti.com>
[PDK-9554][TI CLANG Migration] R5 Drivers Updates and Testing: MMCSD
Signed-off-by: Vivek Dhande <a0132295@ti.com>
[TI Clang Migration][PDK Utils][MMCSD]Disabled PDK Utils based libs/apps
- disabling this as entry/exit hook arguments are not supported by clang
Signed-off-by: Vivek Dhande <a0132295@ti.com>
[TI Clang Migration][PDK Utils][PRUSS]Disabled PDK Utils based libs/apps
- disabling this as entry/exit hook arguments are not supported by clang
Signed-off-by: Vivek Dhande <a0132295@ti.com>
[TI Clang Migration][Sci-Sclient]Porting to Clang
Signed-off-by: Vivek Dhande <a0132295@ti.com>
[PDK-9556][TI CLANG Migration] R5 Drivers Updates and Testing: SPI
Signed-off-by: Vivek Dhande <a0132295@ti.com>
[TI Clang Migration][PDK Utils][SPI]Disabled PDK Utils based libs/apps
- disabling this as entry/exit hook arguments are not supported by clang
Signed-off-by: Vivek Dhande <a0132295@ti.com>
[PDK-9554][TI CLANG Migration] R5 Drivers Updates and Testing: UART
Signed-off-by: Vivek Dhande <a0132295@ti.com>
[TI Clang Migration][PDK Utils][UART]Disabled PDK Utils based libs/apps
- disabling this as entry/exit hook arguments are not supported by clang
Signed-off-by: Vivek Dhande <a0132295@ti.com>
[PDK-9552][TI CLANG Migration] R5 Drivers Updates and Testing: UDMA
Signed-off-by: Vivek Dhande <a0132295@ti.com>
[TI Clang Migration][PDK Utils][DSS]Disabled PDK Utils based libs/apps
- disabling this as entry/exit hook arguments are not supported by clang
Signed-off-by: Vivek Dhande <a0132295@ti.com>
[TI Clang Migration][PDK Utils][EMAC]Disabled PDK Utils based libs/apps
- disabling this as entry/exit hook arguments are not supported by clang
Signed-off-by: Vivek Dhande <a0132295@ti.com>
[TI Clang Migration][McASP]Porting to Clang
Signed-off-by: Vivek Dhande <a0132295@ti.com>
[TI Clang Migration][PDK Utils][McASP]Disabled PDK Utils based libs/apps
- disabling this as entry/exit hook arguments are not supported by clang
Signed-off-by: Vivek Dhande <a0132295@ti.com>
[PDK-9554][TI CLANG Migration] R5 Drivers Updates and Testing: MMCSD
Signed-off-by: Vivek Dhande <a0132295@ti.com>
[TI Clang Migration][PDK Utils][MMCSD]Disabled PDK Utils based libs/apps
- disabling this as entry/exit hook arguments are not supported by clang
Signed-off-by: Vivek Dhande <a0132295@ti.com>
[TI Clang Migration][PDK Utils][PRUSS]Disabled PDK Utils based libs/apps
- disabling this as entry/exit hook arguments are not supported by clang
Signed-off-by: Vivek Dhande <a0132295@ti.com>
[TI Clang Migration][Sci-Sclient]Porting to Clang
Signed-off-by: Vivek Dhande <a0132295@ti.com>
[PDK-9556][TI CLANG Migration] R5 Drivers Updates and Testing: SPI
Signed-off-by: Vivek Dhande <a0132295@ti.com>
[TI Clang Migration][PDK Utils][SPI]Disabled PDK Utils based libs/apps
- disabling this as entry/exit hook arguments are not supported by clang
Signed-off-by: Vivek Dhande <a0132295@ti.com>
[PDK-9554][TI CLANG Migration] R5 Drivers Updates and Testing: UART
Signed-off-by: Vivek Dhande <a0132295@ti.com>
[TI Clang Migration][PDK Utils][UART]Disabled PDK Utils based libs/apps
- disabling this as entry/exit hook arguments are not supported by clang
Signed-off-by: Vivek Dhande <a0132295@ti.com>
[PDK-9552][TI CLANG Migration] R5 Drivers Updates and Testing: UDMA
Signed-off-by: Vivek Dhande <a0132295@ti.com>
[TI Clang Migration][Phase 1]
[TI CLANG Migration][PDK-9370]Enable build for R5 core
- Initial commit to port compiler to TI CLNAG
- able to compile few files/.asm
Signed-off-by: Vivek Dhande <a0132295@ti.com>
[TI CLANG Migration]After compiling 'csl' with some warnings suppressed
Signed-off-by: Vivek Dhande <a0132295@ti.com>
[TI CLANG Migration][PDK-9551]OSAL updates
- This commit also includes some changes for build, board, sciclient, GPIO and UART
Signed-off-by: Vivek Dhande <a0132295@ti.com>
[TI CLANG Migration][OSAL][SBL][Board]
Signed-off-by: Vivek Dhande <a0132295@ti.com>
[TI Clang Migration][PDK-9370][PDK-9550][PDK-9551]
- Additional OSAL changes
- freeRTOS changes
- Liker command file changes for freeRTOS
Signed-off-by: Vivek Dhande <a0132295@ti.com>
[TI CLANG Migration][PDK-9554] DSS Driver changes - Patch 2
- OSAL changes for TIRTOS
- these are enough as auto-generated files by XDS tools also throws errors
- includes '.gitignore' changes to ignore '*.d', '*.o'
Signed-off-by: Vivek Dhande <a0132295@ti.com>
[PDK-9555][TI CLANG Migration] R5 Drivers Updates and Testing: IPC, VISS, LDC, NF, SDE, MSC, DOF: Patch-1
- IPC driver changes
- Additional warnings ignored
Signed-off-by: Vivek Dhande <a0132295@ti.com>
[TI Clang Migration][Board]Porting to Clang
- increased OCMC memory size to 1MB for J721E for /packages/ti/board/utils/uniflash/target/soc/k3/linker_j7.cmd
Signed-off-by: Vivek Dhande <a0132295@ti.com>
[TI Clang Migration][SBL]Porting to Clang
Signed-off-by: Vivek Dhande <a0132295@ti.com>
[TI Clang Migration][SBL]Porting to Clang patch-2
- Increased memory section size for SBL OCM section, took the extra space from reserved 'OCMRAM_SBL_RESERVED_CUST_BOOT' section
- check if this is OK?
Signed-off-by: Vivek Dhande <a0132295@ti.com>
[TI Clang Migration][Build]Added options for additional warning suppression
Signed-off-by: Vivek Dhande <a0132295@ti.com>
[TI Clang Migration][Build]Disabled mcu core for TIRTOS build
- Disabled NIMU as it is only built for TIRTOS
Signed-off-by: Vivek Dhande <a0132295@ti.com>
[TI CLANG Migration][PDK-9370]Enable build for R5 core
- Initial commit to port compiler to TI CLNAG
- able to compile few files/.asm
Signed-off-by: Vivek Dhande <a0132295@ti.com>
[TI CLANG Migration]After compiling 'csl' with some warnings suppressed
Signed-off-by: Vivek Dhande <a0132295@ti.com>
[TI CLANG Migration][PDK-9551]OSAL updates
- This commit also includes some changes for build, board, sciclient, GPIO and UART
Signed-off-by: Vivek Dhande <a0132295@ti.com>
[TI CLANG Migration][OSAL][SBL][Board]
Signed-off-by: Vivek Dhande <a0132295@ti.com>
[TI Clang Migration][PDK-9370][PDK-9550][PDK-9551]
- Additional OSAL changes
- freeRTOS changes
- Liker command file changes for freeRTOS
Signed-off-by: Vivek Dhande <a0132295@ti.com>
[TI CLANG Migration][PDK-9554] DSS Driver changes - Patch 2
- OSAL changes for TIRTOS
- these are enough as auto-generated files by XDS tools also throws errors
- includes '.gitignore' changes to ignore '*.d', '*.o'
Signed-off-by: Vivek Dhande <a0132295@ti.com>
[PDK-9555][TI CLANG Migration] R5 Drivers Updates and Testing: IPC, VISS, LDC, NF, SDE, MSC, DOF: Patch-1
- IPC driver changes
- Additional warnings ignored
Signed-off-by: Vivek Dhande <a0132295@ti.com>
[TI Clang Migration][Board]Porting to Clang
- increased OCMC memory size to 1MB for J721E for /packages/ti/board/utils/uniflash/target/soc/k3/linker_j7.cmd
Signed-off-by: Vivek Dhande <a0132295@ti.com>
[TI Clang Migration][SBL]Porting to Clang
Signed-off-by: Vivek Dhande <a0132295@ti.com>
[TI Clang Migration][SBL]Porting to Clang patch-2
- Increased memory section size for SBL OCM section, took the extra space from reserved 'OCMRAM_SBL_RESERVED_CUST_BOOT' section
- check if this is OK?
Signed-off-by: Vivek Dhande <a0132295@ti.com>
[TI Clang Migration][Build]Added options for additional warning suppression
Signed-off-by: Vivek Dhande <a0132295@ti.com>
[TI Clang Migration][Build]Disabled mcu core for TIRTOS build
- Disabled NIMU as it is only built for TIRTOS
Signed-off-by: Vivek Dhande <a0132295@ti.com>
LPM: Add docs/ folder
Signed-off-by: Aditya Wadhwa <a0485151@ti.com>
Signed-off-by: Aditya Wadhwa <a0485151@ti.com>
Changing sbl_component.mk as per comment
sbl_cust_img not booting mcu1_1
Issue is fixed by removing SBL_SKIP_MCU_RESET flag
Signed-off-by: Parth Nagpal <x1080849@ti.com>
Changes for turning off rti module
RTI module turned off for AM65xx when SBL_SKIP_MCU_RESET is defined
Signed-off-by: Parth Nagpal <x1080849@ti.com>
Issue is fixed by removing SBL_SKIP_MCU_RESET flag
Signed-off-by: Parth Nagpal <x1080849@ti.com>
Changes for turning off rti module
RTI module turned off for AM65xx when SBL_SKIP_MCU_RESET is defined
Signed-off-by: Parth Nagpal <x1080849@ti.com>
updating the core list to mcu1_0 for enet icssg diag test
Diabling enetIcssg due to build error
Signed-off-by: Ankur <a0132173@ti.com>
Signed-off-by: Ankur <a0132173@ti.com>
updating the size of tx and rx frames inside memset
Diable LPM due to build issue
Signed-off-by: Ankur <a0132173@ti.com>
Signed-off-by: Ankur <a0132173@ti.com>
LPM: Function and variable name fixes
Signed-off-by: Aditya Wadhwa <a0485151@ti.com>
Signed-off-by: Aditya Wadhwa <a0485151@ti.com>
[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>
- 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>
Migrating to SYSFW version v2021.09
Signed-off-by: Don Dominic <a0486429@ti.com>
Signed-off-by: Don Dominic <a0486429@ti.com>
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>
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>
changed the test name and corresponding file names from icssg_enet to enet_icssg
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
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
lpm:fix packaging issue
Signed-off-by: Badri S <badri@ti.com>
Signed-off-by: Badri S <badri@ti.com>
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>
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>
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>
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>
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>
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>
PCIe Sample Example not working with mpu
Removing console printf as test hangs there
Signed-off-by: Parth Nagpal <x1080849@ti.com>
Removing console printf as test hangs there
Signed-off-by: Parth Nagpal <x1080849@ti.com>
moved the starting address of DDR0 region of mpu by 0x8000000
added the missing modifications to .h file and makefile
LPM Library Development
- put the sequence in a loop
- addressed PR review comments
Signed-off-by: Aditya Wadhwa <a0485151@ti.com>
- put the sequence in a loop
- addressed PR review comments
Signed-off-by: Aditya Wadhwa <a0485151@ti.com>
Moved the LPM library to drv folder
Signed-off-by: Aditya Wadhwa <a0485151@ti.com>
Signed-off-by: Aditya Wadhwa <a0485151@ti.com>
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>
- 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>
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>
- 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>
LPM Library Development
- Added VTM temp sensor disabling API
- Copyright year fixes
Signed-off-by: Aditya Wadhwa <a0485151@ti.com>
- Added VTM temp sensor disabling API
- Copyright year fixes
Signed-off-by: Aditya Wadhwa <a0485151@ti.com>
LPM Library Development
- Example running successfully
Signed-off-by: Aditya Wadhwa <a0485151@ti.com>
- Example running successfully
Signed-off-by: Aditya Wadhwa <a0485151@ti.com>
LPM Library Development
- Example building successfully
Signed-off-by: Aditya Wadhwa <a0485151@ti.com>
- Example building successfully
Signed-off-by: Aditya Wadhwa <a0485151@ti.com>
typecast for volatile variable added inside memset function
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>
Added API to allow example apps to set their own pinmux.
Signed-off-by: Parth Nagpal <x1080849@ti.com>
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>
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>
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>
add custom linker cmd file for udma ut
testcases for c7x freertos build
Signed-off-by: Badri S <badri@ti.com>
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>
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>
[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>
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>
added volatile keyword for tx and rx buffers to remove compiler optimization
Removed pinmux config
if PDK_RAW_BOOT is not defined pinmux config is not needed
Signed-off-by: Parth Nagpal <x1080849@ti.com>
if PDK_RAW_BOOT is not defined pinmux config is not needed
Signed-off-by: Parth Nagpal <x1080849@ti.com>
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>
Fixed by replacing the interrupt configuration from CSI to sciclient
Signed-off-by: Parth Nagpal <x1080849@ti.com>
[QNX] Sciclient: Update to support QNX resource manager
Signed-off-by: Praveen Rao <prao@ti.com>
Signed-off-by: Praveen Rao <prao@ti.com>
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>
Add a dummy binary to enable compilation for J7200
Signed-off-by: Keerthy <j-keerthy@ti.com>
[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>
- 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>
[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>
- 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>
[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>
- 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>
[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>
- 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>
keywriter: Add support for j7200
Add support for j7200
Signed-off-by: Keerthy <j-keerthy@ti.com>
Add support for j7200
Signed-off-by: Keerthy <j-keerthy@ti.com>
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>
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>
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>
Factor out common files in to a folder to avoid duplication
Signed-off-by: Keerthy <j-keerthy@ti.com>
KEYWRITER: Moving J7200 boardcfgs to keywriter
Moving J7200 boardcfgs to keywriter
Signed-off-by: Keerthy <j-keerthy@ti.com>
Moving J7200 boardcfgs to keywriter
Signed-off-by: Keerthy <j-keerthy@ti.com>
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>
Test hanging during data read due to optimization
Fixed by adding volatile keyword
Signed-off-by: Parth Nagpal <x1080849@ti.com>
DSS: Updated eDP firmware_20210916_mhdp_fw_2_1_0
Signed-off-by: Brijesh Jadav <brijesh.jadav@ti.com>
Signed-off-by: Brijesh Jadav <brijesh.jadav@ti.com>
[OSAL][QNX] Add mutex support and set timeout in msec
Signed-off-by: Praveen Rao <prao@ti.com>
Signed-off-by: Praveen Rao <prao@ti.com>
Bin2c removing false stderr prints
Signed-off-by: Ankur <a0132173@ti.com>
Signed-off-by: Ankur <a0132173@ti.com>
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>
- Add new print task for printing tasks stats periodically
- Use semaphores to signal load tasks
Signed-off-by: Don Dominic <a0486429@ti.com>
[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>
- Protect critical sections by suspending schedular
- Also add check for load overflow
Signed-off-by: Don Dominic <a0486429@ti.com>
[PSDKQA-328][QNX] ipc_lld: Implemented timeout in RPMessage_recv()
Signed-off-by: Praveen Rao <prao@ti.com>
Signed-off-by: Praveen Rao <prao@ti.com>
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>
- 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>
[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>
- 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>
[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>
- 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>
[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>
- Switch to IDLE mode from Idle Task hook function
Signed-off-by: Don Dominic <a0486429@ti.com>
[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>
- Switch to WFI mode from Idle Task Hook Function
Signed-off-by: Don Dominic <a0486429@ti.com>
[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>
- 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>
[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>
- 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>
[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>
- 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>
[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>
- 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>
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>
- 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>
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>
- 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>
[PDK-10425] Build Fix for SBL
Signed-off-by: Ankur <a0132173@ti.com>
Signed-off-by: Ankur <a0132173@ti.com>
[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>
- 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>
[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>
- 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>
[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>
- 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>
[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>
- 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>
[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>
- 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>
[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>
- 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>
[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>
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>
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>
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>
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>
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>
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>
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>
Keywriter build fix
Signed-off-by: Ankur <a0132173@ti.com>
Signed-off-by: Ankur <a0132173@ti.com>
[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>
- 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>