]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - processor-sdk/pdk.git/log
processor-sdk/pdk.git
15 months agoMigrating to SYSFW version v08.05.02a REL.CORESDK.08.05.00.38 REL.CORESDK.08.05.00.39 REL.CORESDK.08.05.00.40 REL.CORESDK.08.05.00.41 REL.CORESDK.08.05.00.42
Sheng Zhao [Thu, 5 Jan 2023 22:11:16 +0000 (16:11 -0600)]
Migrating to SYSFW version v08.05.02a

15 months agosciserver: Enable local DRUs in sciserver on j784s4
Sheng Zhao [Wed, 21 Dec 2022 16:51:31 +0000 (10:51 -0600)]
sciserver: Enable local DRUs in sciserver on j784s4

In j784s4, local DRUs need to be enabled explicitly by the DM. They
are not part of the PM board config initialization.

Fixes: PDK-12469
Signed-off-by: Sheng Zhao <shengzhao@ti.com>
16 months agosciclient: tools: Add new script to integrate updated BoardCfg RM REL.CORESDK.08.05.00.34 REL.CORESDK.08.05.00.35 REL.CORESDK.08.05.00.36 REL.CORESDK.08.05.00.37
Don Dominic [Fri, 9 Dec 2022 13:30:47 +0000 (19:00 +0530)]
sciclient: tools: Add new script to integrate updated BoardCfg RM

- Utility script to integrate updated BoardCfg RM to PDK.

Usage : boardcfg_update.sh <BOARD> --boardcfg=path/to/boardcfg/rm/c/file

Examples:-
 ./boardcfg_update.sh j721e_evm --boardcfg=path/to/j721e/sciclient/defaultBoardcfg/rm/c/file
 ./boardcfg_update.sh j7200_evm --boardcfg=path/to/j7200/sciclient/defaultBoardcfg/rm/c/file
 ./boardcfg_update.sh j721s2_evm --boardcfg=path/to/j721s2/sciclient/defaultBoardcfg/rm/c/file
 ./boardcfg_update.sh j784s4_evm --boardcfg=path/to/j784s4/sciclient/defaultBoardcfg/rm/c/file

Signed-off-by: Don Dominic <a0486429@ti.com>
16 months ago[J7200][LPM]: Remove Race condition in IO retention app
Chandru Dhavamani [Thu, 8 Dec 2022 06:41:45 +0000 (12:11 +0530)]
[J7200][LPM]: Remove Race condition in IO retention app

Remove race condition which results in dead-sleep condition

Signed-off-by: Chandru Dhavamani <chandru@ti.com>
16 months ago[SBL][HSM]: Add appimage in sbl/tools to to boot M4_1 core.
Sai Ramakurthi [Thu, 8 Dec 2022 13:27:24 +0000 (18:57 +0530)]
[SBL][HSM]: Add appimage in sbl/tools to to boot M4_1 core.

Signed-off-by: Sai Ramakurthi <s-ramakurthi@ti.com>
16 months agoAdd CPU load profiling support for OSPI Flash FreeRTOS TestApp
Lohith Kumar [Wed, 7 Dec 2022 15:07:45 +0000 (20:37 +0530)]
Add CPU load profiling support for OSPI Flash FreeRTOS TestApp

- Profile CPU load in main_ospi_flash_test.c if build for FreeRTOS.
- Remove TIRTOS specific profiling from application.

Signed-off-by: Lohith Kumar <l-kumar@ti.com>
16 months agoDisabling McASP build for MCU1_0
Nagpal [Thu, 8 Dec 2022 07:16:49 +0000 (12:46 +0530)]
Disabling McASP build for MCU1_0

Signed-off-by: Nagpal <x1080849@ti.com>
16 months agoPDK-12411 Board: Updated CSI-Tx to CSI-Rx loopback test
Jayanth BR [Wed, 7 Dec 2022 11:56:57 +0000 (17:26 +0530)]
PDK-12411 Board: Updated CSI-Tx to CSI-Rx loopback test
- Enabled the CSI-Rx stream for the capture mode

Signed-off-by: Jayanth BR <x1080850@ti.com>
16 months agoPDK-12412 Board : Updated the board config header file with proper LIN
Jayanth BR [Wed, 7 Dec 2022 12:02:49 +0000 (17:32 +0530)]
PDK-12412 Board : Updated the board config header file with proper LIN
UART instance

Signed-off-by: Jayanth BR <x1080850@ti.com>
16 months agoPDK-12413 Board: Updated board name in the pmic diagnostic test for
Jayanth BR [Wed, 7 Dec 2022 12:06:02 +0000 (17:36 +0530)]
PDK-12413 Board: Updated board name in the pmic diagnostic test for
J784s4_evm

Signed-off-by: Jayanth BR <x1080850@ti.com>
16 months agoPDK-12409 : Board - Updated EEPROM diagnostic test with the proper Board
Jayanth BR [Wed, 7 Dec 2022 11:52:24 +0000 (17:22 +0530)]
PDK-12409 : Board - Updated EEPROM diagnostic test with the proper Board
ID's mapping

Signed-off-by: Jayanth BR <x1080850@ti.com>
16 months agoPDK-12414 Board : Updated diagnostic tests for the failure on MCU core
Jayanth BR [Wed, 7 Dec 2022 12:09:05 +0000 (17:39 +0530)]
PDK-12414 Board : Updated diagnostic tests for the failure on MCU core
for J784s4_evm
  - Enabled MAIN I2C instance for R5 core in current
  Monitor and RTC tests.
  - Updated proper UART instance for Boot Switch test

Signed-off-by: Jayanth BR <x1080850@ti.com>
16 months ago[SBL] : Add prebuilt linux images used to generate linux appimages.
Sai Ramakurthi [Wed, 7 Dec 2022 08:51:08 +0000 (14:21 +0530)]
[SBL] : Add prebuilt linux images used to generate linux appimages.

- These images can be used to generate combined_opt.appimage,
combined_dev.appimage which are used to boot linux from SBL.
- These images can be used to atf_optee.appimage, tidtb_linux.appimage,
tikernalimage_linux.appimage which are used to boot linux from BootApp.

Signed-off-by: Sai Ramakurthi <s-ramakurthi@ti.com>
16 months ago[PDK-12362]Updating the sciclient design doc
Kunal Lahoti [Tue, 6 Dec 2022 08:59:37 +0000 (14:29 +0530)]
[PDK-12362]Updating the sciclient design doc

Updating the sciclient design doc to remove internal

Signed-off-by: Kunal Lahoti <k-lahoti@ti.com>
16 months agoFixed MCASP packaging for J721S2 REL.CORESDK.08.05.00.33
Rishabh Garg [Tue, 6 Dec 2022 09:36:11 +0000 (15:06 +0530)]
Fixed MCASP packaging for J721S2

Signed-off-by: Rishabh Garg <rishabh@ti.com>
16 months agoJ721S2: C7x: Fix: UDMA UT crashes while calling HeapP_Create REL.CORESDK.08.05.00.23 REL.CORESDK.08.05.00.24 REL.CORESDK.08.05.00.25 REL.CORESDK.08.05.00.26 REL.CORESDK.08.05.00.27 REL.CORESDK.08.05.00.28 REL.CORESDK.08.05.00.29 REL.CORESDK.08.05.00.30 REL.CORESDK.08.05.00.31 REL.CORESDK.08.05.00.32
Lohith Kumar [Wed, 30 Nov 2022 13:01:44 +0000 (18:31 +0530)]
J721S2: C7x: Fix: UDMA UT crashes while calling HeapP_Create

On J721S2 we have only 4MB MSMC ranges 0x70000000 - 0x703FFFFF
but UDMA UT c7x linker MSMC origins at 0x70400000 which is out of
MSMC region making UT crash in MSMC testcases.

Signed-off-by: Lohith Kumar <l-kumar@ti.com>
16 months agoPDK-11085: Removed SPI instance offsets in board library
M V Pratap Reddy [Tue, 29 Nov 2022 12:55:10 +0000 (18:25 +0530)]
PDK-11085: Removed SPI instance offsets in board library

 - OSPI instance offsets (offset from SPI/MCSPI instances) are defined in board
   library. This information is SoC specific and need to be retrieved from
   the SPI driver. These offsets are no longer needed with dedicated SPI
   driver APIs for each type of the SPI (SPI, McSPI & OSPI).
   Removed the offset macros from the board flash library.

16 months ago[Docs][PDK-12361] Update APIs Not supported on TDA4V Platforms.
Chandru Dhavamani [Thu, 1 Dec 2022 09:29:26 +0000 (14:59 +0530)]
[Docs][PDK-12361] Update APIs Not supported on TDA4V Platforms.

Sciclient_pmDevicePowerOff() and Sciclient_pmGetWakeupReason()
APIs are not supported on TDA4V platform.

Signed-off-by: Chandru Dhavamani <chandru@ti.com>
16 months ago[Board] Introduced timeout for I2C transaction in Board_getIDInfo_v2()
Jahnavi_Guvvala [Thu, 1 Dec 2022 12:23:01 +0000 (17:53 +0530)]
[Board] Introduced timeout for I2C transaction in Board_getIDInfo_v2()

-In Board_getIDInfo_v2(), added timeout for the I2C transaction, so that
if the slave is inaccessible, the I2C transfer returns failure.

Signed-off-by: Jahnavi_Guvvala <j-guvvala@ti.com>
16 months agokeywriter: Do not run SMEK encryption if input is omitted
Sheng Zhao [Tue, 29 Nov 2022 21:45:03 +0000 (15:45 -0600)]
keywriter: Do not run SMEK encryption if input is omitted

In keywriter generation script, if --smek input is not entered, then
do not run the SMEK encryption.

Also fixed the comment for gen_sym_key_x509_extension.

Fixes: PDK-11240
Signed-off-by: Sheng Zhao <shengzhao@ti.com>
16 months ago[PDK-12342]: Fix CUST sbl failure on J721E
Sai Ramakurthi [Wed, 30 Nov 2022 09:57:39 +0000 (15:27 +0530)]
[PDK-12342]: Fix CUST sbl failure on J721E

- Remove NULL check since when tried to copy to 0x0 (ATCM address local to CPU) it is treating as
NULL and doesn't copy to that location.

Signed-off-by: Sai Ramakurthi <s-ramakurthi@ti.com>
16 months ago[PDK-12316][PMU Counter]: Removing DM Timer, and checking the PMU overflow in the...
Mriganka Chakravarty [Wed, 23 Nov 2022 11:04:48 +0000 (16:34 +0530)]
[PDK-12316][PMU Counter]: Removing DM Timer, and checking the PMU overflow in the Freertos OS tick timer instead.

- DM Timer should not be used to check on PMU overflow status.
- DMT(for PMU counter) may conflict with the OS Tick Timer or even other applications.
- Checking the PMU overflow status in the FreeRTOS tick timer instead.
- For SafeRTOS and Baremetal, application should take this responsibility.

Signed-off-by: Mriganka Chakravarty <m-chakravarty@ti.com>
16 months ago[SBL][eMMC]: Add separate rules to boot from uda and boot0 partition
Sai Ramakurthi [Mon, 28 Nov 2022 08:29:44 +0000 (13:59 +0530)]
[SBL][eMMC]: Add separate rules to boot from uda and boot0 partition

Signed-off-by: Sai Ramakurthi <s-ramakurthi@ti.com>
16 months agoAdded McASP support for J7AEP
Nagpal [Thu, 20 Oct 2022 16:53:02 +0000 (22:23 +0530)]
Added McASP support for J7AEP
-Enabled mcasp_soc.c file for J721s2
-Enabled DeviceLoopback Example

Signed-off-by: Nagpal <x1080849@ti.com>
16 months agoFixed I2C example build REL.CORESDK.08.05.00.20 REL.CORESDK.08.05.00.21 REL.CORESDK.08.05.00.22
Rishabh Garg [Sun, 27 Nov 2022 13:57:46 +0000 (19:27 +0530)]
Fixed I2C example build

Signed-off-by: Rishabh Garg <rishabh@ti.com>
16 months ago[Boot App]: Change makefile to have saperate rule to build HLOS images REL.CORESDK.08.05.00.16 REL.CORESDK.08.05.00.17 REL.CORESDK.08.05.00.18 REL.CORESDK.08.05.00.19
Sai Ramakurthi [Fri, 25 Nov 2022 16:28:30 +0000 (21:58 +0530)]
[Boot App]: Change makefile to have saperate rule to build HLOS images

- Add separate build rules for boot_app_mmcsd_qnx, boot_app_mmcsd_linux,
boot_app_ospi_qnx, boot_app_ospi_linux, boot_app_mmcsd_qnx_hs,
boot_app_ospi_qnx_hs.
- Change the directory place to generate appimages.

Signed-off-by: Sai Ramakurthi <s-ramakurthi@ti.com>
16 months ago[J7AHP]: I2C Baremetal and RTOS EEPROM app ported for J784S4.
Mriganka Chakravarty [Sat, 26 Nov 2022 05:55:09 +0000 (11:25 +0530)]
[J7AHP]: I2C Baremetal and RTOS EEPROM app ported for J784S4.
- I2C EEPROM apps ported for J784S4.
- Validated on all R5 cores.

Signed-off-by: Mriganka Chakravarty <m-chakravarty@ti.com>
16 months agoJ7AHP: Fix: UDMA UT failing on mcu1_0.
Lohith Kumar [Sun, 27 Nov 2022 08:43:23 +0000 (14:13 +0530)]
J7AHP: Fix: UDMA UT failing on mcu1_0.

 - Multi task TC tries to create UDMA_TEST_MAX_MAIN_BC_CH tasks and each task requires one channel.
 - MCU1_0 has only 1 Main Navss UDMA BC channel and in udma_test_soc.h UDMA_TEST_MAX_MAIN_BC_CH has value 2U assigned to it.
 - Since Application trying to allocate 2 BC channels(1 in each task) but core has only channel available resulted in failure of TC.
 - Similarly Chaining TC also not applicable since mcu1_0 doesnot have enough number of BC channels.

Signed-off-by: Lohith Kumar <l-kumar@ti.com>
16 months agoJ721S2: J784S4: Port UDMA UT
Lohith Kumar [Tue, 15 Nov 2022 07:43:10 +0000 (13:13 +0530)]
J721S2: J784S4: Port UDMA UT

 - Add build support for j721s2/j784s4 define corelist for j721s2/j784s4
   in udma_component.mk.

 - Add UDMA_SOC_CFG_PKTDMA_PRESENT macro check to execute PKTDMA
   testcases only if PKTDMA is present.

 - Earlier PKTDMA testcases are secured by UDMA_SOC_CFG_RA_LCDMA_PRESENT
   macro, in j721s2/j784s4 UDMA_SOC_CFG_RA_LCDMA_PRESENT is 1U, since
   we have LCDMA RA for BCDMA instance but we don't have PKTDMA instance.
    - In this commit we are adding check to execute PKTDMA testcases
      only if PKTDMA is present.

 - Create SoC specific files for J721S2/J784S4.

Fixes: PDK-10838
Signed-off-by: Lohith Kumar <l-kumar@ti.com>
16 months ago[GPIO][J784S4] Add Appimage generation for GPIO Baremetal LED Blink test
Jahnavi_Guvvala [Thu, 24 Nov 2022 13:42:48 +0000 (19:12 +0530)]
[GPIO][J784S4] Add Appimage generation for GPIO Baremetal LED Blink test

-For J784S4, added support for appimage generation to be able to test with SBL

Signed-off-by: Jahnavi_Guvvala <j-guvvala@ti.com>
16 months ago[Boot App]: Fix boot app functionality on j784s4.
Sai Ramakurthi [Mon, 21 Nov 2022 11:13:17 +0000 (16:43 +0530)]
[Boot App]: Fix boot app functionality on j784s4.

- Add SBL_INVALID_ID array to sbl_late_slave_core_stages_info array to
make the size of 2D array 8*4.
- Update the script to generate lateapp2 which is a multicore image of
mcu2_0, mcu2_1, mcu3_0, mcu3_1, c7x_1, c7x_2, c7x_3, c7x_4.

Signed-off-by: Sai Ramakurthi <s-ramakurthi@ti.com>
17 months ago[PDK-12015]: Fix SBL not able to boot in lockstep mode. REL.CORESDK.08.05.00.12 REL.CORESDK.08.05.00.13 REL.CORESDK.08.05.00.14 REL.CORESDK.08.05.00.15
Sai Ramakurthi [Tue, 15 Nov 2022 16:54:30 +0000 (22:24 +0530)]
[PDK-12015]: Fix SBL not able to boot in lockstep mode.

- Translated ATCM, BTCM local addresses to SOC addresses for SMP_ID's.

Signed-off-by: Sai Ramakurthi <s-ramakurthi@ti.com>
17 months ago[PDK-12292][BUILD]: Linking the RTS libc library after linking LIB_PATHS and EXT_LIB_... REL.CORESDK.08.05.00.11
Mriganka Chakravarty [Wed, 16 Nov 2022 04:46:30 +0000 (10:16 +0530)]
[PDK-12292][BUILD]: Linking the RTS libc library after linking LIB_PATHS and EXT_LIB_PATHS and external links.
- RTS libc library was linked prior to linking EXT_LIB_PATHS in rules_66.mk and rules_71.mk.
- RTS libc library should be the last library to be linked in linking order.
- This commit fixes that.
- Validated freertos_test_ut on c66x and c7x cores.

Signed-off-by: Mriganka Chakravarty <m-chakravarty@ti.com>
17 months agoQNX IPC RM Crashing fix REL.CORESDK.08.05.00.07 REL.CORESDK.08.05.00.08 REL.CORESDK.08.05.00.09 REL.CORESDK.08.05.00.10
Likhitha [Wed, 2 Nov 2022 09:25:36 +0000 (14:55 +0530)]
QNX IPC RM Crashing fix

Signed-off-by: Likhitha <x1097556@ti.com>
17 months ago[FVID2] klockwork fixes for FVID2 driver
MONALI [Wed, 2 Nov 2022 12:18:40 +0000 (17:48 +0530)]
[FVID2] klockwork fixes for FVID2 driver

- In FVID2 Driver, GT_assertLocal is changed from ((uint32_t) (x), (uint32_t) (y)) to ((uint32_t) (x), (bool) (y)).

- In FVID2 Driver, We have reverted typecasting of GT_assert function
i.e. ( GT_assert(Fvid2Trace, (uint32_t)(NULL_PTR != mem)); To  GT_assert(Fvid2Trace, (NULL_PTR != mem)))

Signed-off-by: MONALI <x1101059@ti.com>
17 months agoBug Fix: PDK-12248
Rishabh Garg [Tue, 15 Nov 2022 12:01:00 +0000 (17:31 +0530)]
Bug Fix: PDK-12248

- Updated makespec documentation to use EXT_LIB_LIST instead of EXTLIB_LIST

Signed-off-by: Rishabh Garg <rishabh@ti.com>
17 months ago[SBL] : Add eMMC boot support for J7200 and J784S4
Sai Ramakurthi [Tue, 15 Nov 2022 09:47:33 +0000 (15:17 +0530)]
[SBL] : Add eMMC boot support for J7200 and J784S4

- Cleanup some repetitive code.

Signed-off-by: Sai Ramakurthi <s-ramakurthi@ti.com>
17 months agoMigrating to SYSFW version v08.05.02
kunal [Mon, 14 Nov 2022 06:44:26 +0000 (12:14 +0530)]
Migrating to SYSFW version v08.05.02

17 months ago[Build Fix] : Fix jenkins build.
Sai Ramakurthi [Mon, 14 Nov 2022 12:32:23 +0000 (18:02 +0530)]
[Build Fix] : Fix jenkins build.

- Funtions define only for MCU cores. Since those functions will be used
only by those cores.

Signed-off-by: Sai Ramakurthi <s-ramakurthi@ti.com>
17 months ago[PDK-12239]: Custom CSC configurations were not getting set using IOCTL.
Mriganka Chakravarty [Thu, 10 Nov 2022 15:12:56 +0000 (20:42 +0530)]
[PDK-12239]: Custom CSC configurations were not getting set using IOCTL.
- Using custom CSC params to populate pipeCfg.

Signed-off-by: Mriganka Chakravarty <m-chakravarty@ti.com>
17 months ago[MMCSD] : Change interrupt line config to update dynamically in MMCSD.
Sai Ramakurthi [Mon, 7 Nov 2022 12:44:38 +0000 (18:14 +0530)]
[MMCSD] : Change interrupt line config to update dynamically in MMCSD.

    - Remove MMCSD_socInit API.
    - Use sciclient APIs to configure interrupt paths.
    - For J721S2 :
        - For MMCSD0 and MMCSD1 :
            - MAIN2MCU_LVL_INTRTR0 is present for MCU R5 cores.
            - for rest of the cores no IR involved (direct connections).
    - For J7200 :
        - For MMCSD0 and MMCSD1 :
            - MAIN2MCU_LVL_INTRTR0 is present for MCU R5 cores.
            - for rest of the cores no IR involved (direct connections).
    - For J721E :
        - For MMCSD0 (eMMC):
            - MAIN2MCU_LVL_INTRTR0 is present for MCU R5 cores.
            - for rest of the cores no IR involved (direct connections).
        - For MMCSD1 and MMCSD2 :
            - MAIN2MCU_LVL_INTRTR0 is present for MCU R5 cores.
            - MAIN_PULSAR0_INTRTR is present for main_0 cores.
            - MAIN_PULSAR1_INTRTR is present for main_1 cores.

Signed-off-by: Sai Ramakurthi <s-ramakurthi@ti.com>
17 months agoPDK-11758 :Board: Enabled Enet Port2Port loopback diagnostic test for J784s4 evm
Jayanth BR [Thu, 10 Nov 2022 06:30:35 +0000 (12:00 +0530)]
PDK-11758 :Board: Enabled Enet Port2Port loopback diagnostic test for J784s4 evm

-Detection of Ethernet PHYs
-Verification of Link detection
-Verification of the 100 Ethernet packets each of size 64 bytes and receiving
 the same number of packets with one port of the board connected to
 other port.
-Verification of CPSW SGMII Ethernet interface at maximum possible speed
 with port to port loopback

Signed-off-by: Jayanth BR <x1080850@ti.com>
17 months agoPDK-11738 :Board: Enabled CPSW loopback diagnostic test for J784s4 evm
Jayanth BR [Thu, 10 Nov 2022 06:03:44 +0000 (11:33 +0530)]
PDK-11738 :Board: Enabled CPSW loopback diagnostic test for J784s4 evm
           - Enabled MAC, PHY and External loopback test cases for
   MAIN RGMII and MCU RGMII on J784s4 evm

Signed-off-by: Jayanth BR <x1080850@ti.com>
17 months agoPDK-11761 :Board: Enabled CSI-Tx-Rx loopback diagnostic test for
Jayanth BR [Fri, 11 Nov 2022 12:53:43 +0000 (18:23 +0530)]
PDK-11761 :Board: Enabled CSI-Tx-Rx loopback diagnostic test for
J784s4_evm
          - Test does CsiTx and CsiRx driver verification
    by transferring CSI frames from CSi-Tx and receives
    the frames at CSI-Rx

Signed-off-by: Jayanth BR <x1080850@ti.com>
17 months agoPDK-11740: Board: Added DSI to DP bridge diagnostic test
M V Pratap Reddy [Sat, 12 Nov 2022 01:13:07 +0000 (06:43 +0530)]
PDK-11740: Board: Added DSI to DP bridge diagnostic test

17 months agoPDK-11737:Board: Enabled display port diagnostic test for j784s4
M V Pratap Reddy [Sat, 12 Nov 2022 01:08:45 +0000 (06:38 +0530)]
PDK-11737:Board: Enabled display port diagnostic test for j784s4

 - Enabled display port diagnostic test for j721s2

17 months agoETHFW-1912 - lwip: port: Enabled SG support and TCP TX tput related params
Surbhi Kapoor [Mon, 3 Oct 2022 12:10:14 +0000 (17:40 +0530)]
ETHFW-1912 - lwip: port: Enabled SG support and TCP TX tput related params

- Enabled SG by diasbling LWIP_NETIF_TX_SINGLE_PBUF.
- Also increased the number of memp pbufs and netbufs and TCP sender
  settings in order to bring TCP TX throughput on par with RX.

Signed-off-by: Surbhi Kapoor <s-kapoor1@ti.com>
17 months ago[BOARD]: J721E: Turn on the 250MHz clock for CPSW9G
Jonathan Bergsagel [Thu, 10 Nov 2022 00:19:57 +0000 (18:19 -0600)]
[BOARD]: J721E: Turn on the 250MHz clock for CPSW9G

Explicitly enables the MAIN_PLL3 HSDIV0 clock output
for the CPSW9G 250MHz clock whenever the Main domain
clocks are enabled.

Signed-off-by: Jonathan Bergsagel <jbergsagel@ti.com>
17 months agoPDK-12064: Board: Updated MMR lock/unlock sequence in board lib REL.CORESDK.08.05.00.06
M V Pratap Reddy [Thu, 10 Nov 2022 21:29:17 +0000 (02:59 +0530)]
PDK-12064: Board: Updated MMR lock/unlock sequence in board lib

 - Board library functions unlock the MMR register space for configuring
   the MMR registers but they are not being locked while leaving the
   functions.

   Updated all the board library functions to unlock the MMR space before
   write and lock the MMR space after register writes.

   Added support for tracking the MMR register unlock/lock sequence by the
   board library functions. MMR lock will be done by board library only
   when board library unlocks the MMR space. This will ensure MMR register
   space lock state configured by other modules/cores is retained.

17 months agoPDK-12164: Board: Corrected ECC end address in Board lib
M V Pratap Reddy [Thu, 10 Nov 2022 21:19:11 +0000 (02:49 +0530)]
PDK-12164: Board: Corrected ECC end address in Board lib

 - 1/9th of DDR memory will be used for storing the ECC data when inline ECC
   is enablaed. DDR memory ECC end address becomes 0xF1C71C71U (0xFFFFFFFF-0xE38E38E)
   when ECC is enabled for 2GB DDR space. However ECC end address
   should be 512 bytes aligned. So 0xF1C71C00 will be ECC end address.

17 months agoPDK-11911: Board: Added Uniflash HS support for J784S4 EVM
M V Pratap Reddy [Thu, 10 Nov 2022 21:16:01 +0000 (02:46 +0530)]
PDK-11911: Board: Added Uniflash HS support for J784S4 EVM

17 months ago[Boot App] : Add scripts to generate lateapps to validate boot App REL.CORESDK.08.05.00.03 REL.CORESDK.08.05.00.04 REL.CORESDK.08.05.00.05
Sai Ramakurthi [Mon, 7 Nov 2022 10:21:26 +0000 (15:51 +0530)]
[Boot App] : Add scripts to generate lateapps to validate boot App

    - usage of this script : bash make_multicore_appimages.sh <Board_name>
        - make_multicore_appimages.sh build the required images and run
            constructappimage_multistage_<SOC>
        - constructappimage_multistage_<SOC> combines the single core images
            to make multicore image.
    - Replace 0xBAD00000 with SBL_INVALID_ID in couple of places.

Signed-off-by: Sai Ramakurthi <s-ramakurthi@ti.com>
17 months agoETHFW-1970 - board: j784s4: Added support for second ENET card
Misael Lopez Cruz [Tue, 25 Oct 2022 09:02:34 +0000 (04:02 -0500)]
ETHFW-1970 - board: j784s4: Added support for second ENET card

Add support for Ethernet expansion cards connected in ENET-EXP-2 slot in
J784S4 EVM. A new board id is being added to identify expansion cards in
second ENET slot: BOARD_ID_ENET2.

The Ethernet card type (QSGMII or SGMII) is reported using the same
definitions: BOARD_ENET_QSGMII and BOARD_ENET_SGMII.

Added Board init parameters to choose ENET board ID and dual ENET config
to avoid adding new API parameters for Ethernet and SerDes board
functions which are common across the platforms.

Board init params for ENET config will be set to ENET1 and dual ENET
config is disabled by default. Applications can change this
configuration using Board_getInitParams and Board_setInitParams
functions.

Signed-off-by: Misael Lopez Cruz <misael.lopez@ti.com>
Signed-off-by: M V Pratap Reddy <x0257344@ti.com>
17 months ago[PDK-12260][SAFERTOS][OSAL]: ClockP OSAL implementation incorrect for safertos, build...
vaibhav [Thu, 10 Nov 2022 16:25:00 +0000 (21:55 +0530)]
[PDK-12260][SAFERTOS][OSAL]: ClockP OSAL implementation incorrect for safertos, build failure for enet_loopback_test_safertos
    Issue:
- ClockP OSAL periodic callback not working in safertos
- TimerCallback is getting invoked by safertos but ClockP callback is not getting invoked
    Resolution:
- ClockP_timerCallback was wrongly typecasting timerHandle to xTimerID. It should be typecast to timerControlBlock and xTimerId should be got from timerControlBlock->xTimerId
- CycleprofilerP_nonos included while building

Signed-off-by: Vaibhav Jindal <v-jindal@ti.com>
17 months agoPDK-12246 :Board: Added macro for CSIRX second instance and updated
Jayanth BR [Wed, 9 Nov 2022 13:44:30 +0000 (19:14 +0530)]
PDK-12246 :Board: Added macro for CSIRX second instance and updated
IO-expander instance for J784s4 evm

Signed-off-by: Jayanth BR <x1080850@ti.com>
17 months agosafertos: Package Build Fix
vaibhav [Wed, 9 Nov 2022 10:16:08 +0000 (15:46 +0530)]
safertos: Package Build Fix
- include correct csl header for clec base address

17 months ago[PDK-12224][SAFERTOS]: Added SafeRTOS unit tests
vaibhav [Fri, 30 Sep 2022 15:40:40 +0000 (21:10 +0530)]
[PDK-12224][SAFERTOS]: Added SafeRTOS unit tests

    - Enable SafeRTOS unit tests for J721E/J7200/J721s2
    - Tested on J721E: mcu1_0, mcu1_1, mcu2_0, mcu2_1, mcu3_0, mcu3_1, c66xdsp_1, c66xdsp_2, c7x_1
    - Tested on J7200: mcu1_0, mcu1_1, mcu2_0, mcu2_1
    - Tested on J721s2: mcu1_0, mcu1_1, mcu2_0, mcu2_1, mcu3_0, mcu3_1, c7x_1, c7x_2

Signed-off-by: Vaibhav Jindal <v-jindal@ti.com>
17 months ago[Boot App] : Fix boot app build with HLOSBOOT=qnx flag
Sai Ramakurthi [Tue, 8 Nov 2022 12:18:28 +0000 (17:48 +0530)]
[Boot App] : Fix boot app build with HLOSBOOT=qnx flag

- BootApp_McuDCacheClean() API defined in common header file since that API was
called from other .c files as well.

Signed-off-by: Sai Ramakurthi <s-ramakurthi@ti.com>
17 months ago[CUST SBL] : Fix sbl_cust_img_hs failure on J7AHP HS.
Sai Ramakurthi [Mon, 7 Nov 2022 09:46:25 +0000 (15:16 +0530)]
[CUST SBL] : Fix sbl_cust_img_hs failure on J7AHP HS.

- BUILD_HS flag was not passed while building sbl_sci_client.c
- Define BUILD_HS flag in sbl_lib.mk by checking BUILD_HS macro.

Signed-off-by: Sai Ramakurthi <s-ramakurthi@ti.com>
17 months ago[PDK-12082] osal: TaskP: Update TaskP.name type to const char *
Don Dominic [Thu, 3 Nov 2022 12:58:59 +0000 (18:28 +0530)]
[PDK-12082] osal: TaskP: Update TaskP.name type to const char *

- Update TaskP.name param type from uint8_t * to const char *
- Usage of uint8_t * for name cause MISRA issues
- Both FreeRTOS and SafeRTOS Task Create APIs accepts task name param as const char*
- Hence updating OSAL as well to allign on the same

Signed-off-by: Don Dominic <a0486429@ti.com>
17 months ago[IPC] Enable ECHO_TEST_BTCM Flag for ipc_rtos_echo_testb
Chandru Dhavamani [Thu, 3 Nov 2022 11:45:53 +0000 (17:15 +0530)]
[IPC] Enable ECHO_TEST_BTCM Flag for ipc_rtos_echo_testb

-ECHO_TEST_BTCM flag get replaced while adding ENABLE_UART_PRINT flag
-Use '+' to add ENABLE_UART_PRINT flag.

Signed-off-by: Chandru Dhavamani <a0497642@ti.com>
17 months ago[IPC][PDK-12234] IPC RPMessage_recv() timeout
Chandru Dhavamani [Wed, 2 Nov 2022 15:26:56 +0000 (20:56 +0530)]
[IPC][PDK-12234] IPC RPMessage_recv() timeout

-In the event that RPMessage_recv() has a a timeout
 the recv_buffer is  cleaned up
-Magna send this changes as patch available in PDK-12234

Signed-off-by: Chandru Dhavamani <a0497642@ti.com>
17 months agoj784s4: boardcfg: Update to the latest auto-generated from SysConfig/k3-resource...
Don Dominic [Wed, 2 Nov 2022 09:22:50 +0000 (14:52 +0530)]
j784s4: boardcfg: Update to the latest auto-generated from SysConfig/k3-resource-partitioning

- This includes the updates to increase the number of MAIN NAVSS DMA Block Copy channels
  allocated to mcu4_0 by 2 and decrease 1 each from mcu1_0/mcu1_1.
  This is required for SDK/vision-apps use-cases to run VPAC 2nd instance on mcu4_0.
  - https://bitbucket.itg.ti.com/projects/PSDKLA/repos/k3-resource-partitioning/pull-requests/74/overview

- Rebuilt sciclient_boardcfg; sciclient_ccs_init; sciserver_testapp and copied to tools/ccsLoadDmsc
- This also fixes issues/failures in latest checked-in sciserver_testapp binaries
  as part of SYSFW v08.05.00 migration commit

Signed-off-by: Don Dominic <a0486429@ti.com>
17 months agoj721s2: boardcfg: Update to the latest auto-generated from SysConfig/k3-resource...
Don Dominic [Wed, 2 Nov 2022 09:22:35 +0000 (14:52 +0530)]
j721s2: boardcfg: Update to the latest auto-generated from SysConfig/k3-resource-partitioning

- This includes the updates in the following:
  - Increase the number of DMA RX/TX Channels allocated to Linux and decrease the channels allocated to Hypervisor.
    - https://bitbucket.itg.ti.com/projects/PSDKLA/repos/k3-resource-partitioning/commits/47effbb311c52020abb062999f0a7911d00e0218
  - updates in k3-resource-partitioning tool to support HWA allocation to any core:
    - https://bitbucket.itg.ti.com/projects/PSDKLA/repos/k3-resource-partitioning/pull-requests/73/overview
    - .numResources for VPAC0 channels to mcu2_0 is updated from 192 to 96
      - Earlier this was set to 192 as a hack, since there was a gap of 96 channels b/w VPAC0 and DMPAC
      - This hack is no longer required with the latest updates to k3-res.-part.

- Rebuilt sciclient_boardcfg; sciclient_boardcfg for HS; sciclient_ccs_init;
  sciserver_testapp and copied to tools/ccsLoadDmsc
- This also address check-in of latest safertos sciserver_testapp binaries
  which was missing in previous SYSFW Migration to v08.05.00 commit

Signed-off-by: Don Dominic <a0486429@ti.com>
17 months agoj721e: boardcfg: Update to the latest auto-generated from SysConfig/k3-resource-parti...
Don Dominic [Wed, 2 Nov 2022 09:22:09 +0000 (14:52 +0530)]
j721e: boardcfg: Update to the latest auto-generated from SysConfig/k3-resource-partitioning

-  This includes the updates in k3-resource-partitioning tool to support HWA allocation to any core:
    - https://bitbucket.itg.ti.com/projects/PSDKLA/repos/k3-resource-partitioning/pull-requests/73/overview

- Rebuilt sciclient_boardcfg; sciclient_boardcfg for HS; sciclient_ccs_init; sciserver_testapp and copied to tools/ccsLoadDmsc

Signed-off-by: Don Dominic <a0486429@ti.com>
17 months agoj721e: safertos: Fix linking error in sciserver_testapp due to insufficient memory
Don Dominic [Wed, 2 Nov 2022 09:18:34 +0000 (14:48 +0530)]
j721e: safertos: Fix linking error in sciserver_testapp due to insufficient memory

- Update linker file to resolve linking issues due to insufficient memory
  and trampoline calls that can't be generated

Signed-off-by: Don Dominic <a0486429@ti.com>
17 months agoj7200: sciclient: Rebuild sciclient binaries after SYSFW Migration to v08.05.00
Don Dominic [Wed, 2 Nov 2022 09:16:36 +0000 (14:46 +0530)]
j7200: sciclient: Rebuild sciclient binaries after SYSFW Migration to v08.05.00

- Check-in latest safertos sciserver_testapp binaries
  which was missing in previous SYSFW Migration to v08.05.00 commit

Signed-off-by: Don Dominic <a0486429@ti.com>
17 months agoETHFW-1840 - lwip: Enable TCP/UDP checksum offload
meghana [Wed, 28 Sep 2022 10:23:53 +0000 (15:53 +0530)]
ETHFW-1840 - lwip: Enable TCP/UDP checksum offload

Enable TCP/UDP checksum offload in Enet-based lwIP interface:
 - CHECKSUM_CHECK_UDP
 - CHECKSUM_CHECK_TCP
 - CHECKSUM_GEN_UDP
 - CHECKSUM_GEN_TCP

Also, checksum can be enabled/disabled per netif as this is needed by
netifs which are not based on CPSW and hence don't have hardware offload
feature, such as shared-memory virtual netif:
 - LWIP_CHECKSUM_CTRL_PER_NETIF

Signed-off-by: Meghana Malladi <m-malladi@ti.com>
17 months agoSysfw migraion v08.05.00
kunal [Mon, 31 Oct 2022 08:04:10 +0000 (13:34 +0530)]
Sysfw migraion v08.05.00

Migrating tifs from sysfirmware to pdk
Signed-off-by: Kunal Lahoti <k-lahoti@ti.com>
17 months agoRevert "HACK: J7AHP: Power On DRUs local to C7X cores"
Chandru Dhavamani [Mon, 31 Oct 2022 08:07:01 +0000 (13:37 +0530)]
Revert "HACK: J7AHP: Power On DRUs local to C7X cores"

This reverts commit 82b0b94f2c51bb96c9f01ec2519491923aa128d2.

By default local DRU will be powered ON.

Signed-off-by: Chandru Dhavamani <a0497642@ti.com>
17 months ago[Build Fix] : Fix jenkins build. REL.CORESDK.08.04.03.08 REL.CORESDK.08.04.03.09
Sai Ramakurthi [Sun, 30 Oct 2022 07:02:24 +0000 (12:32 +0530)]
[Build Fix] : Fix jenkins build.

- Replace SBL_INVALID_CORE with SBL_INVALID_ID in boot app.

Signed-off-by: Sai Ramakurthi <s-ramakurthi@ti.com>
17 months ago[BOOT_APP] : Add boot app example in sbl REL.CORESDK.08.04.03.05 REL.CORESDK.08.04.03.06 REL.CORESDK.08.04.03.07
Sai Ramakurthi [Wed, 21 Sep 2022 11:25:39 +0000 (16:55 +0530)]
[BOOT_APP] : Add boot app example in sbl

- j721e
- It has capability to boot three lateapps(multicore images) which runs on the
following cores
- lateapp1 : mcu2_0, mcu2_1
- lateapp2 : mcu3_0, mcu3_1, c66x_1, c66x_2, c7x_1
- lateapp3 : mpu1_0
- j7200
- It has capability to boot two lateapps(multicore images) which runs on the
following cores
- lateapp1 : mcu2_0, mcu2_1
- lateapp2 : mpu1_0
- j721s2
- It has capability to boot three lateapps(multicore images) which runs on the
following cores
- lateapp1 : mcu2_0, mcu2_1
- lateapp2 : mcu3_0, mcu3_1, c7x_1, c7x_2
- lateapp3 : mpu1_0
- j784s4
- It has capability to boot three lateapps(multicore images) which runs on the
following cores
- lateapp1 : mcu2_0, mcu2_1
- lateapp2 : mcu3_0, mcu3_1, mcu4_0, mcu4_1, c7x_1, c7x_2, c7x_3, c7x_4
- lateapp3 : mpu1_0
- It can boot qnx on A72 core while booting lateapps on main domain cores
- It can boot signed images.

Signed-off-by: Sai Ramakurthi <s-ramakurthi@ti.com>
17 months ago[MMCSD][J784S4] : Change interrupt configuration to update dynamically for MMCSD. REL.CORESDK.08.04.03.04
Sai Ramakurthi [Thu, 27 Oct 2022 14:37:39 +0000 (20:07 +0530)]
[MMCSD][J784S4] : Change interrupt configuration to update dynamically for MMCSD.

- Instead of configuring interrupt paths in MMCSD_SocInit() we are
  configuring in MMCSD_configSocIntrPath().
- Configuring only for the particular instance based on the intance
  we are using.

Signed-off-by: Sai Ramakurthi <s-ramakurthi@ti.com>
17 months ago[Work Around] : ROM is not opening the firewall for BOLT on PSC for J7AHP HS.
Sai Ramakurthi [Thu, 27 Oct 2022 14:28:02 +0000 (19:58 +0530)]
[Work Around] : ROM is not opening the firewall for BOLT on PSC for J7AHP HS.

    - Before calling BoardConfigPm. SBL opens the firewall for that region.

Signed-off-by: Sai Ramakurthi <s-ramakurthi@ti.com>
17 months ago[SBL][J7AHP] : Enable HS boot on J7AHP
Sai Ramakurthi [Mon, 3 Oct 2022 07:01:47 +0000 (12:31 +0530)]
[SBL][J7AHP] : Enable HS boot on J7AHP

- Enable HS boot from MMCSD, UART, OSPI.
- Enable HS boot for cust boot.

Signed-off-by: Sai Ramakurthi <sai@sai-linuxpc>
17 months ago[SafeRTOS][IPC][HACK]: Protecting snprintf with Hwip_disable REL.CORESDK.08.04.03.01 REL.CORESDK.08.04.03.02 REL.CORESDK.08.04.03.03
Mriganka Chakravarty [Fri, 30 Sep 2022 14:16:18 +0000 (19:46 +0530)]
[SafeRTOS][IPC][HACK]: Protecting snprintf with Hwip_disable
- This is a hack to make IPC work.
- If snprintf is not protected with Hwip_disable, C7X gets into a bad state.

Signed-off-by: Mriganka Chakravarty <m-chakravarty@ti.com>
17 months ago[SafeRTOS][JACINTOREQ-2557]: Enabling SafeRTOS on J721S2 for C7x Cores.
Mriganka Chakravarty [Fri, 2 Sep 2022 11:08:09 +0000 (16:38 +0530)]
[SafeRTOS][JACINTOREQ-2557]: Enabling SafeRTOS on J721S2 for C7x Cores.
- safertos_test_task_switch is tested on both C7X cores.
- UART_TestApp is tested on both C7X cores.
- Sciclient UT is tested on both C7X cores.
- OSAL_TestApp_safertos is tested on all C7X cores.
- udma_memcpy_testapp is tested on all C7X cores.
- ipc_rtos_echo_test does not work on C7x. C7X core goes to softReset.

Signed-off-by: Mriganka Chakravarty <m-chakravarty@ti.com>
17 months ago[SBL][HSM] : Enable hsm boot support for J721S2 and J784S4.
Sai Ramakurthi [Thu, 6 Oct 2022 10:21:42 +0000 (15:51 +0530)]
[SBL][HSM] : Enable hsm boot support for J721S2 and J784S4.

- Add SMS M4 Processor ID to J721S2 and J784S4.
- Add dedicated core ID for the HSM M4 processor.
- Update SBL slave core information for the HSM M4 processor(including the
  allocated space for the C7x_1 host emulation ID.
- Add memory details for the HSM M4 to enable address translation during section loading.
- Update the rprc parse logic to load the HSM binary sections to the memory mapped
  address and force the boot vedtor to 0x0.
- Update the SBL slave core loading to request TIFS to release the HSM M4 core from
  reset.
- Update the loading sequence to skip the PM SET_DEVICE call incase of an invalid ID.

Signed-off-by: Sai Ramakurthi <s-ramakurthi@ti.com>
17 months ago[SBL][eMMC] : Add boot support from boot0 partition in eMMC
Sai Ramakurthi [Thu, 20 Oct 2022 16:15:35 +0000 (21:45 +0530)]
[SBL][eMMC] : Add boot support from boot0 partition in eMMC

- By default emmc boot from boot0 partition if you want to boot from
  UDA partition use EMMC_BOOT0=no while building sbl_emmc_img
- By default app can be max of 500 KB. If your app is more that that
  then you need to use MAX_APP_SIZE_EMMC<=size of image in bytes in hexadecimal>

Signed-off-by: Sai Ramakurthi <s-ramakurthi@ti.com>
17 months ago[PDK-12218] cache: update usage of CSL arm R5 Cache API
Don Dominic [Mon, 17 Oct 2022 05:00:54 +0000 (10:30 +0530)]
[PDK-12218] cache: update usage of CSL arm R5 Cache API

- Update usage of all CSL arm R5 Cache APIs by passing wait flag as true
- Also update Scicleint/SDTF to use OSAL APIs,
  instead of directly relying on CSL APIs

Signed-off-by: Don Dominic <a0486429@ti.com>
17 months ago[SCISERVER][J721E]: Aligning the KERNEL_DATA section to 0x800.
Mriganka Chakravarty [Thu, 27 Oct 2022 05:24:38 +0000 (10:54 +0530)]
[SCISERVER][J721E]: Aligning the KERNEL_DATA section to 0x800.
- WHIS recommends to align the KERNEL_DATA section to 0x800.
- Changed the Sciserver linker command file to acommodate KERNEL_DATA aligned with 0x800.
- Validation note:
  - Validated udma_memcpy_testapp_safertos on all cores.

Signed-off-by: Mriganka Chakravarty <m-chakravarty@ti.com>
17 months agosciclient: Fix RM PSIL issues after SYSFW v8.5 migration
Don Dominic [Wed, 19 Oct 2022 08:55:22 +0000 (14:25 +0530)]
sciclient: Fix RM PSIL issues after SYSFW v8.5 migration

- SYSFW/TIFS 8.5 release added PSIL host id verification
- This broke PSIL requests from mcu1_0 since mcu1_0 was always in secure
  when trying to send the message to TIFS directly to avoid self blocking.
  And all the board config RM entries for mcu1_0 are for default non-secure host id.

- Fix this by using MSG forwarding in case of RM PSIL messages.
  This is to retain the host id information of the non-secure/secure mode of mcu1_0.
  Setting forwarding ensures that the mcu1_0 uses the DM2DMSC secure proxy threads.
  NOTE: Forwarding always leads to forced polling.
- For all other default baseport and security messages, implementaion remains same.
  i.e, MCU1_0 will always be secure

- Rebuild and check-in all sciclient binaries after updates in sciclient_direct.c

Signed-off-by: Don Dominic <a0486429@ti.com>
17 months agosciclient: Rebuild sciclient binaries after TIFS Migration to v08.05.00
Don Dominic [Mon, 17 Oct 2022 10:50:31 +0000 (16:20 +0530)]
sciclient: Rebuild sciclient binaries after TIFS Migration to v08.05.00

Signed-off-by: Don Dominic <a0486429@ti.com>
17 months ago[SYSFW]: Checking in sciserver for safertos on J721S2 and J7200.
Mriganka Chakravarty [Mon, 17 Oct 2022 04:26:31 +0000 (09:56 +0530)]
[SYSFW]: Checking in sciserver for safertos on J721S2 and J7200.
- sciserver was not built for j721s2 and j7200.

Signed-off-by: Mriganka Chakravarty <m-chakravarty@ti.com>
17 months agoEnabled J7AHP HS board config during SYSFW migration
Rishabh Garg [Mon, 17 Oct 2022 07:44:40 +0000 (13:14 +0530)]
Enabled J7AHP HS board config during SYSFW migration

Signed-off-by: Rishabh Garg <rishabh@ti.com>
18 months ago[DSS_M2M][PDK-12204]: Incorrect checks for fieldMerged and pitch in Dss_m2mDrvDispPip... REL.CORESDK.08.05.00.01 REL.CORESDK.08.05.00.02
Mriganka Chakravarty [Fri, 14 Oct 2022 05:45:18 +0000 (11:15 +0530)]
[DSS_M2M][PDK-12204]: Incorrect checks for fieldMerged and pitch in Dss_m2mDrvDispPipeCfgChk().
- pitch and fieldMerged are arrays.
- Inequality check must check the entire array for differences in parameters.
- earlier, only pitch and fieldMerge, which themselves are pointers, were checked for inequality.
- These pointers are different, and hence, always not equal, thereby the check always returned false.

Signed-off-by: Mriganka Chakravarty <m-chakravarty@ti.com>
18 months agoMigrating to SYSFW version v08.05.00
Stephen Molfetta [Thu, 13 Oct 2022 18:28:41 +0000 (13:28 -0500)]
Migrating to SYSFW version v08.05.00

18 months agosciserver: update SoC data for TIFS update
Stephen Molfetta [Tue, 23 Aug 2022 19:31:37 +0000 (14:31 -0500)]
sciserver: update SoC data for TIFS update

Update SoC data to account for shift in DM and TIFS secure proxy thread
allocations after refactoring HSM communication infrastructure to the
dedicated secure proxy instance.

Apply changes to both j721s2 and j784s4 SoCs

Signed-off-by: Stephen Molfetta <sjmolfetta@ti.com>
18 months agoMISRAC Fixes I2C
Asha [Tue, 23 Aug 2022 13:14:05 +0000 (18:44 +0530)]
MISRAC Fixes I2C

Signed-off-by: Asha <x1101668@ti.com>
18 months agoKlocwork fixes for IPC
Likhitha [Tue, 23 Aug 2022 12:51:17 +0000 (18:21 +0530)]
Klocwork fixes for IPC

Signed-off-by: Likhitha <x1097556@ti.com>
18 months agoJ748s4-Hs: SYSFW/TIFS Migration for v08.04.05
KUNAL LAHOTI [Wed, 28 Sep 2022 06:50:34 +0000 (12:20 +0530)]
J748s4-Hs: SYSFW/TIFS Migration for v08.04.05

Migrating tifs for j748s4-hs from sysfirmware to pdk for version 08.04.05

Signed-off-by: KUNAL LAHOTI <k-lahoti@ti.com>
18 months agokeywriter: update script for test case generation
Stephen Molfetta [Tue, 13 Sep 2022 17:42:21 +0000 (12:42 -0500)]
keywriter: update script for test case generation

Update the keywriter configuration test generation to reflect the latest
updates in the keywriter test plan

Fixes: PDK-12223
Signed-off-by: Stephen Molfetta <sjmolfetta@ti.com>
18 months agoKeywriter: Update configuration to enable keywriter trace log
Stephen Molfetta [Thu, 11 Aug 2022 18:59:51 +0000 (13:59 -0500)]
Keywriter: Update configuration to enable keywriter trace log

Update boardcfg snapshot to enable traces out WKUP_UART0 for keywriter
trace logging.

Fixes: PDK-12222
18 months agokeywriter: j721e: Enable GPIO9 of LEO PMICB for VPP
Keerthy [Tue, 28 Jun 2022 04:48:00 +0000 (10:18 +0530)]
keywriter: j721e: Enable GPIO9 of LEO PMICB for VPP

Enable GPIO9 of LEO PMICB for VPP as the default option. Supply makefile
option to revert to LDO3 when using TI EVM s.

Fixes: PDK-12066
Signed-off-by: Keerthy <j-keerthy@ti.com>
Signed-off-by: Stephen Molfetta <sjmolfetta@ti.com>
18 months agoEnable DM trace in ipc_echo_testb for Linux
Sheng Zhao [Mon, 1 Aug 2022 15:48:02 +0000 (10:48 -0500)]
Enable DM trace in ipc_echo_testb for Linux

UART needs to be configured to enable the DM trace.

The full pinmux config is not supported on Linux, so only UART TX pinmux
is configured. Then, Board_init() is called to initialize UART.

The gBoardinit flag is moved inside ipc_boardInit() for cleaner look.

Fixes: PDK-12107
Signed-off-by: Sheng Zhao <shengzhao@ti.com>
18 months ago[UART][PDK-12081]: Removing uart_osalDelay from UART_readPolling_v1.
Mriganka Chakravarty [Mon, 26 Sep 2022 13:09:14 +0000 (18:39 +0530)]
[UART][PDK-12081]: Removing uart_osalDelay from UART_readPolling_v1.
- Producer keeps producing data, while the UART is in sleep, which causes overflow.

Signed-off-by: Mriganka Chakravarty <m-chakravarty@ti.com>
18 months ago[QNX][OSAL] Fix TaskP_create build break
Praveen Rao [Wed, 28 Sep 2022 22:30:58 +0000 (17:30 -0500)]
[QNX][OSAL] Fix TaskP_create build break

Signed-off-by: Praveen Rao <prao@ti.com>
18 months ago[OSAL][SafeRTOS]: osal_component.mk fix.
Mriganka Chakravarty [Thu, 29 Sep 2022 04:28:21 +0000 (09:58 +0530)]
[OSAL][SafeRTOS]: osal_component.mk fix.
- added cores for osal_lib for safertos on J7200 and J721S2.

Signed-off-by: Mriganka Chakravarty <m-chakravarty@ti.com>
18 months ago[MMCSD] : Remove legacy code from MMCSD driver
Sai Ramakurthi [Thu, 8 Sep 2022 10:22:22 +0000 (15:52 +0530)]
[MMCSD] : Remove legacy code from MMCSD driver

- Remove code related to am5xx, am6xx and older keystone devices

Signed-off-by: Sai Ramakurthi <s-ramakurthi@ti.com>
18 months ago[PDK-12080] OSAL: TaskP: Add function prototype for task function
Don Dominic [Fri, 23 Sep 2022 11:02:09 +0000 (16:32 +0530)]
[PDK-12080] OSAL: TaskP: Add function prototype for task function

- Create new prototype 'TaskP_Fxn' for task function param in TaskP_create
- Update all references of TaskP_create to pass function pointer
- Fix all instances of task functions to strictly follow the function prototype signature
  - In many places task function was defined with only one i/p argument and argument of
    type other than void*
  - Fix all those cases and related updates in functions due to argument type change to void*

Signed-off-by: Don Dominic <a0486429@ti.com>