processor-sdk/pdk.git
45 hours agoosal: Fixing OSAL VRING size for MMU settings for J784S4 master
Lucas Weaver [Fri, 24 Jun 2022 18:22:56 +0000 (13:22 -0500)]
osal: Fixing OSAL VRING size for MMU settings for J784S4

2 days ago[IPC] Fixed CLEC programming for J7AHP
Rishabh Garg [Fri, 24 Jun 2022 16:01:26 +0000 (21:31 +0530)]
[IPC] Fixed CLEC programming for J7AHP

- For NAVSS INTR, the output destination should be queried separately for both base event num and current event num
- Made corresponding changes in CLEC registration

Signed-off-by: Rishabh Garg <rishabh@ti.com>
2 days agoJ7AHP: Adding mcu40/mcu41 to makefile
Aditya Wadhwa [Fri, 24 Jun 2022 15:42:57 +0000 (10:42 -0500)]
J7AHP: Adding mcu40/mcu41 to makefile

Signed-off-by: Aditya Wadhwa <a0485151@ti.com>
2 days agoFixed IPC Issues
Rishabh Garg [Thu, 23 Jun 2022 19:52:52 +0000 (01:22 +0530)]
Fixed IPC Issues

- Updated MPU to use 64 MB page
- Fixed typos for MCU4_0

Signed-off-by: Rishabh Garg <rishabh@ti.com>
3 days agoSciclient: Fix for sciclient ROM Alternate SPROXY for J784S4
Jonathan Bergsagel [Thu, 23 Jun 2022 16:00:03 +0000 (11:00 -0500)]
Sciclient: Fix for sciclient ROM Alternate SPROXY for J784S4

Adds MSG_M4_ROM_USE_ALTERNATE_SPROXY config for J784S4 that
was causing problems with SBL boot for legacy boot mode.

Signed-off-by: Jonathan Bergsagel <jbergsagel@ti.com>
3 days agoJ7AHP: Update RM IRQ tree
l-kumar [Thu, 23 Jun 2022 13:40:32 +0000 (19:10 +0530)]
J7AHP: Update RM IRQ tree

Signed-off-by: l-kumar <a0492259@ti.com>
3 days agoBoard: Fix for j784s4 board library build error on C7x core
Reddy [Thu, 23 Jun 2022 11:58:47 +0000 (06:58 -0500)]
Board: Fix for j784s4 board library build error on C7x core

3 days agoBoard: Updated Board MMR unlock call sequence for j784s4 evm
Reddy [Thu, 23 Jun 2022 10:29:13 +0000 (05:29 -0500)]
Board: Updated Board MMR unlock call sequence for j784s4 evm

 - Board MMR unlock function is called at the start of Board_init based
   on the flag passed by applications. Board functions like pinmux and
   eth config will also does the mmr unlock and lock which will
   overwrite the unlock done by Board init MMR unlock flag.
   Applications will face issues in MMR unlock when then combine the MMR
   unlock flag with other board init flags which does MMR writes.
   Moved the MMR unlock to end of Board_init to fix the issue.

3 days agoBoard: Updated j784s4 evm Ethernet config functions
Reddy [Thu, 23 Jun 2022 09:44:40 +0000 (04:44 -0500)]
Board: Updated j784s4 evm Ethernet config functions

 - Updated the CPSW2G Main ENET control and PHY config board init flag
   values not to conflict with CPSW9G
 - Added MMR unlock/lock in ENET config APIs

3 days agoBoard: Updated j784s4 evm wakeup gpio pinmux
Reddy [Thu, 23 Jun 2022 09:39:54 +0000 (04:39 -0500)]
Board: Updated j784s4 evm wakeup gpio pinmux

 - Added wakeup gpio pin mapping used by bootswitch test

3 days agoMigrating to SYSFW version j7ahp-presil-0.9-rc3
Sheng Zhao [Thu, 23 Jun 2022 04:05:04 +0000 (23:05 -0500)]
Migrating to SYSFW version j7ahp-presil-0.9-rc3

3 days agoFixed IPC interrupts for C7x
Rishabh Garg [Wed, 22 Jun 2022 23:22:03 +0000 (04:52 +0530)]
Fixed IPC interrupts for C7x

- RT mapping was not done correctly for C7x_3/C7x_4

Signed-off-by: Rishabh Garg <rishabh@ti.com>
3 days agoFixed VRING buffer size for J7AHP IPC
Rishabh Garg [Wed, 22 Jun 2022 20:01:01 +0000 (01:31 +0530)]
Fixed VRING buffer size for J7AHP IPC

- One processor communication needs 0x40000 memory
- J7AHP needs 14*13* 0x40000 = ~46 MB memory
- Rounded off to 48 MB

Signed-off-by: Rishabh Garg <rishabh@ti.com>
3 days agoFixed IPC RTOS example
Rishabh Garg [Wed, 22 Jun 2022 20:02:23 +0000 (01:32 +0530)]
Fixed IPC RTOS example

- Added missing remote procs for C7x_1 and C7x_2

Signed-off-by: Rishabh Garg <rishabh@ti.com>
4 days agoJ7AHP: Fix: UDMA channel allocation fails for local DRUs
l-kumar [Wed, 22 Jun 2022 13:04:51 +0000 (18:34 +0530)]
J7AHP: Fix: UDMA channel allocation fails for local DRUs

Signed-off-by: l-kumar <a0492259@ti.com>
4 days agoJ784S4: UDMA: Fixing host emulation mode build
Lucas Weaver [Wed, 22 Jun 2022 13:21:38 +0000 (08:21 -0500)]
J784S4: UDMA: Fixing host emulation mode build

Signed-off-by: Lucas Weaver <l-weaver@ti.com>
5 days agoJ784S4: Sciclient: Removing hacks
Aditya Wadhwa [Tue, 21 Jun 2022 16:04:35 +0000 (11:04 -0500)]
J784S4: Sciclient: Removing hacks

Removing Board and UART related hacks

Signed-off-by: Aditya Wadhwa <a0485151@ti.com>
5 days agoJ7AHP: Fix: UDMA shared resources rm_boardcfg for C7X cores.
l-kumar [Tue, 21 Jun 2022 13:37:12 +0000 (19:07 +0530)]
J7AHP: Fix: UDMA shared resources rm_boardcfg for C7X cores.

- The default sharing policy for VINT/INTR resources are incorrect and causing failure in UdmaInitPrms_init API.
- Update sharing policy for C7X cores, such that required resources not exceeds available range recieved from sciclient RM boardcfg.

Signed-off-by: l-kumar <a0492259@ti.com>
5 days agoJ784S4: Further updates for SYSFW Migration to j7ahp-presil-0.9-rc2
Aditya Wadhwa [Tue, 21 Jun 2022 08:56:57 +0000 (03:56 -0500)]
J784S4: Further updates for SYSFW Migration to j7ahp-presil-0.9-rc2

Adding tifs bin

Signed-off-by: Aditya Wadhwa <a0485151@ti.com>
5 days agoMigrating to SYSFW version j7ahp-presil-0.9-rc2
Sheng Zhao [Tue, 21 Jun 2022 02:33:08 +0000 (21:33 -0500)]
Migrating to SYSFW version j7ahp-presil-0.9-rc2

Fix PLL27 and PLL28 flags in rm_pm_hal

Signed-off-by: Sheng Zhao <shengzhao@ti.com>
5 days agoBoard: Added SD loopback clock pinmux for j784s4 evm
Reddy [Tue, 21 Jun 2022 01:23:54 +0000 (20:23 -0500)]
Board: Added SD loopback clock pinmux for j784s4 evm

5 days agoMigrating to SYSFW version j7ahp-presil-0.9-rc1
Aditya Wadhwa [Mon, 20 Jun 2022 18:17:26 +0000 (23:47 +0530)]
Migrating to SYSFW version j7ahp-presil-0.9-rc1

5 days agoJ784S4: SYSFW script update
Aditya Wadhwa [Mon, 20 Jun 2022 18:13:25 +0000 (23:43 +0530)]
J784S4: SYSFW script update

Signed-off-by: Aditya Wadhwa <a-wadhwa@ti.com>
6 days agoJ784S4: Further updates for SYSFW Migration to j7ahp-presil-0.7 REL.CORESDK.08.02.01.08
Aditya Wadhwa [Mon, 20 Jun 2022 11:56:03 +0000 (17:26 +0530)]
J784S4: Further updates for SYSFW Migration to j7ahp-presil-0.7

Adding files missed in previous migration commit

Signed-off-by: Aditya Wadhwa <a-wadhwa@ti.com>
6 days agoJ784S4: SBL: Macro names update REL.CORESDK.08.02.01.04 REL.CORESDK.08.02.01.06 REL.CORESDK.08.02.01.07
Aditya Wadhwa [Mon, 20 Jun 2022 09:30:36 +0000 (15:00 +0530)]
J784S4: SBL: Macro names update

Compute cluster macro names update required
after j7ahp-resil-0.7 SYSFW release migration

Signed-off-by: Aditya Wadhwa <a-wadhwa@ti.com>
6 days agoMigrating to SYSFW version j7ahp-presil-0.7
Aditya Wadhwa [Mon, 20 Jun 2022 07:07:48 +0000 (12:37 +0530)]
Migrating to SYSFW version j7ahp-presil-0.7

6 days agoscripts: sysfw migrate script update
Aditya Wadhwa [Fri, 17 Jun 2022 11:52:14 +0000 (17:22 +0530)]
scripts: sysfw migrate script update

sysfw migrate script now accepts a list of SOCs
for which the migration needs to be performed

Signed-off-by: Aditya Wadhwa <a-wadhwa@ti.com>
6 days agoJ7AHP: Sysfw updates
Aditya Wadhwa [Thu, 16 Jun 2022 15:51:12 +0000 (21:21 +0530)]
J7AHP: Sysfw updates

Signed-off-by: Aditya Wadhwa <a-wadhwa@ti.com>
7 days agoPDK-11540: Board: Updated j784s4 USXGMII configurations to use ENET2 port
M V Pratap Reddy [Fri, 17 Jun 2022 11:14:47 +0000 (16:44 +0530)]
PDK-11540: Board: Updated j784s4 USXGMII configurations to use ENET2 port

7 days agoPDK-11773: Board: Updated j784s4 QSGMII and QSGMII_sub port allocation
M V Pratap Reddy [Thu, 16 Jun 2022 20:37:38 +0000 (02:07 +0530)]
PDK-11773: Board: Updated j784s4 QSGMII and QSGMII_sub port allocation

7 days agoPDK-11772: Board: Updated board control APIs for j784s4 evm
M V Pratap Reddy [Wed, 15 Jun 2022 16:28:55 +0000 (21:58 +0530)]
PDK-11772: Board: Updated board control APIs for j784s4 evm

7 days agoPDK-11773: Board: Added board Ethernet APIs for j784s4 evm
M V Pratap Reddy [Wed, 15 Jun 2022 16:27:40 +0000 (21:57 +0530)]
PDK-11773: Board: Added board Ethernet APIs for j784s4 evm

7 days agoPDK-11540: Board: Enabled Ethernet SerDes configurations for j784s4 evm
M V Pratap Reddy [Wed, 15 Jun 2022 16:18:56 +0000 (21:48 +0530)]
PDK-11540: Board: Enabled Ethernet SerDes configurations for j784s4 evm

9 days agoj784s4: Port driver for newly added UTCs
l-kumar [Tue, 14 Jun 2022 13:33:27 +0000 (19:03 +0530)]
j784s4: Port driver for newly added UTCs

- Create local boardcfg for newly added DRUs.
- Modify UDMA RM to pick resource ranges for these DRUs locally
- Add support for newly added VPAC

Signed-off-by: l-kumar <a0492259@ti.com>
9 days agoRevert "J7AHP: UDMA: Add support to additional DRUs"
l-kumar [Tue, 14 Jun 2022 05:54:30 +0000 (11:24 +0530)]
Revert "J7AHP: UDMA: Add support to additional DRUs"

This reverts commit 448d04379017c6e2569be5ceae91d2c69ca40ff8.

9 days ago[GPIO][J7200]: Disabling Baremetal LedBlink example on main cores
Mriganka Chakravarty [Thu, 16 Jun 2022 15:24:48 +0000 (20:54 +0530)]
[GPIO][J7200]: Disabling Baremetal LedBlink example on main cores

- There is no interrupt allocation for wakeup GPIO to main domain.
- The LedBlink app uses the wakeup GPIO.

Signed-off-by: Mriganka Chakravarty <m-chakravarty@ti.com>
9 days agoFix: UDMA: DRU direct TR Example failure
l-kumar [Fri, 17 Jun 2022 06:50:01 +0000 (12:20 +0530)]
Fix: UDMA: DRU direct TR Example failure

Fixes: PDK-11133

Signed-off-by: l-kumar <a0492259@ti.com>
11 days ago[GPIO][J721E]: Fix and Updated gpio interrupt config implementation
Mriganka Chakravarty [Mon, 30 May 2022 09:21:04 +0000 (14:51 +0530)]
[GPIO][J721E]: Fix and Updated gpio interrupt config implementation

Existing Issues:-
- GPIO driver is core independendent.
- But Core specific build flags are used in soc specific files for setting various params like TISCI host Id etc.
- Interrupt Numbers are hardcoded.
  - This should be derived from allocated interrupt router # for each core in the BoardCfg.

Fixes:-
j721e/GPIO_soc.c
- Added API to query from BoardCfg the valid interrupt router # /Core Interrupt #.
- Use CSL APIs to identify and set TISCI Dev id fo the current core.
- CLEC Cfg RTMAP update to use id based on C7x core, using CSL API.

Signed-off-by: Mriganka Chakravarty <m-chakravarty@ti.com>
11 days ago[GPIO][J7200]: Fix and Updated gpio interrupt config implementation
Mriganka Chakravarty [Thu, 2 Jun 2022 06:43:22 +0000 (12:13 +0530)]
[GPIO][J7200]: Fix and Updated gpio interrupt config implementation

Existing Issues:-
- GPIO driver is core independendent.
- But Core specific build flags are used in soc specific files for setting various params like TISCI host Id etc.
- Interrupt Numbers are hardcoded.
  - This should be derived from allocated interrupt router # for each core in the BoardCfg.

Fixes:-
j7200/GPIO_soc.c
- Added API to query from BoardCfg the valid interrupt router # /Core Interrupt #.
- Use CSL APIs to identify and set TISCI Dev id fo the current core.
- CLEC Cfg RTMAP update to use id based on C7x core, using CSL API.

Signed-off-by: Mriganka Chakravarty <m-chakravarty@ti.com>
13 days agoFreertos: j7aep: Enable UT on all C7x cores REL.CORESDK.08.02.01.03
l-kumar [Mon, 13 Jun 2022 07:55:29 +0000 (13:25 +0530)]
Freertos: j7aep: Enable UT on all C7x cores

Signed-off-by: l-kumar <a0492259@ti.com>
13 days agoJ7AHP updates due to IPC
Rishabh Garg [Mon, 13 Jun 2022 10:13:06 +0000 (15:43 +0530)]
J7AHP updates due to IPC

- Fixed packaging issue
- Updated OSAL for DDR shared region mapping

Signed-off-by: Rishabh Garg <rishabh@ti.com>
2 weeks ago[j784s4][IPC] Enabling IPC example for j784s4
Chandru Dhavamani [Sat, 11 Jun 2022 10:27:46 +0000 (15:57 +0530)]
[j784s4][IPC] Enabling IPC example for j784s4
-  Enable IPC echo_test and perf_test for j784s4

Signed-off-by: Chandru Dhavamani <a0497642@ti.com>
2 weeks agoMigrating to SYSFW version v08.04.01 REL.CORESDK.08.04.00.06
Aditya Wadhwa [Fri, 10 Jun 2022 08:54:54 +0000 (14:24 +0530)]
Migrating to SYSFW version v08.04.01

2 weeks agoScripts: Updated sysfw migrate script for hs devices
Aditya Wadhwa [Mon, 6 Jun 2022 15:13:21 +0000 (20:43 +0530)]
Scripts: Updated sysfw migrate script for hs devices

Signed-off-by: Aditya Wadhwa <a-wadhwa@ti.com>
2 weeks agoJ721S2: Update rm board config file
Aditya Wadhwa [Mon, 6 Jun 2022 07:53:07 +0000 (13:23 +0530)]
J721S2: Update rm board config file

SA3SS resources have been removed

Signed-off-by: Aditya Wadhwa <a-wadhwa@ti.com>
2 weeks agoFix for j784s4 evm board build error
M V Pratap Reddy [Thu, 9 Jun 2022 16:15:09 +0000 (21:45 +0530)]
Fix for j784s4 evm board build error

2 weeks agoPDK-11771: Board: Added board utils functions for j784s4 evm
M V Pratap Reddy [Thu, 9 Jun 2022 15:40:24 +0000 (21:10 +0530)]
PDK-11771: Board: Added board utils functions for j784s4 evm

 - Removed sd voltage switch board dummy function in mmcsd example

2 weeks agoPDK-11775: Board: Added mmr lock/unlock configurations for j784s4 evm
M V Pratap Reddy [Thu, 9 Jun 2022 15:10:10 +0000 (20:40 +0530)]
PDK-11775: Board: Added mmr lock/unlock configurations for j784s4 evm

2 weeks agoBoard: Enabled board lld init APIs for j784s4 evm
M V Pratap Reddy [Thu, 9 Jun 2022 15:08:16 +0000 (20:38 +0530)]
Board: Enabled board lld init APIs for j784s4 evm

 PDK-11768: Added I2C init functions
 PDK-11767: Added UART init functions

2 weeks agoPDK-11351: Board: Added PLL clock configurations for j784s4 evm
M V Pratap Reddy [Thu, 9 Jun 2022 15:07:25 +0000 (20:37 +0530)]
PDK-11351: Board: Added PLL clock configurations for j784s4 evm

2 weeks agoPDK-11769: Board: Added board info APIs for j784s4 evm
M V Pratap Reddy [Thu, 9 Jun 2022 14:43:01 +0000 (20:13 +0530)]
PDK-11769: Board: Added board info APIs for j784s4 evm

2 weeks agoPDK-11770: Board: Added i2c IO expander library for j784s4 evm
M V Pratap Reddy [Thu, 9 Jun 2022 13:50:32 +0000 (19:20 +0530)]
PDK-11770: Board: Added i2c IO expander library for j784s4 evm

2 weeks agoPDK-11776: Board: Added psc configurations for j784s4 evm
M V Pratap Reddy [Thu, 9 Jun 2022 13:47:52 +0000 (19:17 +0530)]
PDK-11776: Board: Added psc configurations for j784s4 evm

2 weeks agoPDK-11772: Board: Added board control API for j784s4 evm
M V Pratap Reddy [Thu, 9 Jun 2022 13:40:28 +0000 (19:10 +0530)]
PDK-11772: Board: Added board control API for j784s4 evm

2 weeks agoPDK-11766: Board: Added pinmux configurations for j784s4 evm
M V Pratap Reddy [Wed, 8 Jun 2022 19:53:30 +0000 (01:23 +0530)]
PDK-11766: Board: Added pinmux configurations for j784s4 evm

2 weeks agoPDK-11354: Board: Added board DDR configurations for j784s4 evm
M V Pratap Reddy [Thu, 9 Jun 2022 13:31:07 +0000 (19:01 +0530)]
PDK-11354: Board: Added board DDR configurations for j784s4 evm

2 weeks agolwip: Add support for J784S4
Misael Lopez Cruz [Sun, 5 Jun 2022 08:15:42 +0000 (03:15 -0500)]
lwip: Add support for J784S4

Enable lwIP stack, contrib and port for J748S4.

Signed-off-by: Misael Lopez Cruz <misael.lopez@ti.com>
2 weeks agoRemoved NDK sections from PDK linker command files
Rishabh Garg [Thu, 9 Jun 2022 17:33:25 +0000 (23:03 +0530)]
Removed NDK sections from PDK linker command files

Signed-off-by: Rishabh Garg <rishabh@ti.com>
2 weeks agoBug Fix: PDK-10925, PDK-10350, PDK-10346
Rishabh Garg [Thu, 9 Jun 2022 15:26:50 +0000 (20:56 +0530)]
Bug Fix: PDK-10925, PDK-10350, PDK-10346

- IPC performance tests included MPU1_0 as TI-RTOS supported MPU cores but same are not supported by Freertos
- Hence removed MPU1_0 from performance tests for J7200 as part of cleanup:
  * https://bitbucket.itg.ti.com/projects/PROCESSOR-SDK/repos/pdk/pull-requests/2681/diff#packages/ti/drv/ipc/examples/ipc_perf_test/ipc_perf_test.c
  * https://bitbucket.itg.ti.com/projects/PROCESSOR-SDK/repos/pdk/pull-requests/2681/diff#packages/ti/drv/ipc/examples/ipc_perf_test/ipc_test_defs.c
- Prints have also moved to MCU1_0
- Similar changes have been done for J721e and J721S2

Signed-off-by: Rishabh Garg <rishabh@ti.com>
2 weeks agoFix: j721s2: Sciclient: unit test hanging on c7x cores.
l-kumar [Thu, 9 Jun 2022 06:18:46 +0000 (11:48 +0530)]
Fix: j721s2: Sciclient: unit test hanging on c7x cores.

- Sciclient was not able to program interrupt response lines(clec input event) for multiple c7x cores.
- The interrupt response lines used for j721s2 c7x cores are incorrect.
- Defining interrupt response lines used for c7x cores in sciclient_fmwMsgParams.h
- Modifying sciliclient core context structure to add clec input event(interrupt response line coming to clec) in sciclient_priv.h
- Update C7x cores context to add respective clec input event number in sciclient_fmwSecureProxyMap.c
- Update driver to take clec input event from it's context in sclient.c

Fixes: PDK-10829
Signed-off-by: l-kumar <a0492259@ti.com>
2 weeks ago[DSS]: Disabling HPD support for j721e.
Mriganka Chakravarty [Wed, 8 Jun 2022 13:04:53 +0000 (18:34 +0530)]
[DSS]: Disabling HPD support for j721e.

Signed-off-by: Mriganka Chakravarty <m-chakravarty@ti.com>
2 weeks agoj784s4: Add DRU base register macros for host_emu
l-kumar [Thu, 9 Jun 2022 07:21:26 +0000 (12:51 +0530)]
j784s4: Add DRU base register macros for host_emu

Signed-off-by: l-kumar <a0492259@ti.com>
2 weeks ago[SPI] : creating Multicore image for MCSPI MasterSlave TestApp
chandru dhavamani [Mon, 16 May 2022 08:41:16 +0000 (14:11 +0530)]
[SPI] : creating Multicore image for MCSPI MasterSlave TestApp
- MCSPI slavemode used to communicate between two cores
- Common makefile is used to create multicore appimage for MCSPI_Baremetal_TestApp
      MCSPI_Baremetal_Dma_TestApp MCSPI_MasterSlave_TestApp_freertos MCSPI_MasterSlave_Dma_TestApp_freertos

Signed-off-by: chandru dhavamani <chandru@ti.com>
2 weeks agoUpdated IPC driver for J7AHP
Rishabh Garg [Mon, 6 Jun 2022 12:39:29 +0000 (18:09 +0530)]
Updated IPC driver for J7AHP

- Added default interrupt mapping for sciclient disable

Signed-off-by: Rishabh Garg <rishabh@ti.com>
2 weeks agoj784s4: Add missing SerDes and ENET expansion board related APIs
Misael Lopez Cruz [Mon, 6 Jun 2022 17:25:12 +0000 (12:25 -0500)]
j784s4: Add missing SerDes and ENET expansion board related APIs

Added follwing SerDes and ENET expansion board related APIs:
  Board_cpswEnetExpPhyReset()
  Board_cpswEnetExpComaModeCfg()
  Board_serdesCfgSgmii()
  Board_serdesCfgQsgmii()
  Board_serdesCfgUsxgmii()
  Board_serdesCfgStatus()

Signed-off-by: Misael Lopez Cruz <misael.lopez@ti.com>
2 weeks agoFixed PDK build for SBL REL.CORESDK.08.02.01.01 REL.CORESDK.08.02.01.02
Rishabh Garg [Wed, 8 Jun 2022 14:40:24 +0000 (20:10 +0530)]
Fixed PDK build for SBL

- Multicore apps fail for J784S4 as soc info is not in sync with sbl_component.mk
- Last core in sbl_component.mk is mpu2_3 whereas it is specified in middle of soc_info.mk
- Updated soc_info.mk to make mpu2_3 as last core

Signed-off-by: Rishabh Garg <rishabh@ti.com>
2 weeks ago[PDK-11976][FREERTOS] C66X IR Configuration for OS Timer Interrupts for FREERTOS
chandru dhavamani [Wed, 8 Jun 2022 04:43:34 +0000 (10:13 +0530)]
[PDK-11976][FREERTOS] C66X IR Configuration for OS Timer Interrupts for FREERTOS
 - In os_init() C66X  IR for OS Timer Interrupts has been configured.
 - In application Timer interrupts have been removed since it has been configured in os_init()

Signed-off-by: chandru dhavamani <chandru@ti.com>
2 weeks ago[PDK-11976][FREERTOS] C66X IR Configuration for OS Timer Interrupts for FREERTOS
chandru dhavamani [Thu, 2 Jun 2022 01:21:56 +0000 (06:51 +0530)]
[PDK-11976][FREERTOS] C66X IR Configuration for OS Timer Interrupts for FREERTOS
- In os_init() C66X  IR for OS Timer Interrupts has been configured.
- In application Timer interrupts have been removed since it has been configured in os_init()

Signed-off-by: chandru dhavamani <chandru@ti.com>
2 weeks ago[PDK-11976][FREERTOS] C66X IR Configuration for OS Timer Interrupts for FREERTOS
chandru dhavamani [Thu, 2 Jun 2022 01:21:56 +0000 (06:51 +0530)]
[PDK-11976][FREERTOS] C66X IR Configuration for OS Timer Interrupts for FREERTOS
- In os_init() C66X  IR for OS Timer Interrupts has been configured.
- In application Timer interrupts have been removed since it has been configured in os_init()

Signed-off-by: chandru dhavamani <chandru@ti.com>
2 weeks agoJ784S4: SBL: Add sbl support for j784s4
Sai Ramakurthi [Fri, 20 May 2022 08:17:41 +0000 (13:47 +0530)]
J784S4: SBL: Add sbl support for j784s4

Signed-off-by: Sai Ramakurthi <s-ramakurthi@ti.com>
2 weeks agoFixed ipc_component.mk
Rishabh Garg [Tue, 7 Jun 2022 06:54:32 +0000 (12:24 +0530)]
Fixed ipc_component.mk

- Baremetal does not have a default board list so used driver SOC list
- Fixed copy paste error perf test

Signed-off-by: Rishabh Garg <rishabh@ti.com>
2 weeks agoJ7AHP: UDMA: Add support to additional DRUs
l-kumar [Wed, 1 Jun 2022 11:09:32 +0000 (16:39 +0530)]
J7AHP: UDMA: Add support to additional DRUs

Fixes: PDK-12045

Signed-off-by: l-kumar <a0492259@ti.com>
2 weeks agoJ784S4: Add CFLAGS, LNKFLAGS for newly added mpu cores
Sai Ramakurthi [Mon, 6 Jun 2022 06:35:49 +0000 (12:05 +0530)]
J784S4: Add CFLAGS, LNKFLAGS for newly added mpu cores

Signed-off-by: Sai Ramakurthi <s-ramakurthi@ti.com>
3 weeks agoFix: Freertos: UT fails on newly added c7x cores.
l-kumar [Sat, 4 Jun 2022 09:42:09 +0000 (15:12 +0530)]
Fix: Freertos: UT fails on newly added c7x cores.

- Add support for newly added c7x cores for j7ahp

Signed-off-by: l-kumar <a0492259@ti.com>
3 weeks ago[QNX] board: sciclient: Add build support for j784s4
Praveen Rao [Wed, 1 Jun 2022 23:23:28 +0000 (18:23 -0500)]
[QNX] board: sciclient:  Add build support for j784s4

Signed-off-by: Praveen Rao <prao@ti.com>
3 weeks agoUpdated IPC example structure
Rishabh Garg [Thu, 2 Jun 2022 11:46:07 +0000 (17:16 +0530)]
Updated IPC example structure

- Added separate folders for baremetal, linux and qnx
- Added qnx example which was missed last time

Signed-off-by: Rishabh Garg <rishabh@ti.com>
3 weeks ago[J7AHP] Enable host emulation builds for osal, udma and sciclient. Enable dmautils...
Anand Pathak [Wed, 1 Jun 2022 08:50:39 +0000 (14:20 +0530)]
[J7AHP] Enable host emulation builds for osal, udma and sciclient. Enable dmautils build for both host emulation and target

3 weeks ago[DIAG] Disable diag examples for j721e
Don Dominic [Thu, 2 Jun 2022 12:12:27 +0000 (17:42 +0530)]
[DIAG] Disable diag examples for j721e

- SDR is descoped from PDK and DIAG examples have dependency on the same
- Hence diasble diag examples

Signed-off-by: Don Dominic <a0486429@ti.com>
3 weeks agoDisabled SDR for J721e
Rishabh Garg [Thu, 2 Jun 2022 09:42:13 +0000 (15:12 +0530)]
Disabled SDR for J721e

- SDR is now SDL and a different package

Signed-off-by: Rishabh Garg <rishabh@ti.com>
3 weeks agoBug Fix: PDK-11388
Rishabh Garg [Wed, 1 Jun 2022 18:13:43 +0000 (23:43 +0530)]
Bug Fix: PDK-11388

- SBL Image package build was wrongly copying all files in build directoy to board folder
- Fixed packaging and included board files in SBL Lib package build

Signed-off-by: Rishabh Garg <rishabh@ti.com>
3 weeks ago[SBL] Removed files for legacy SOCs
Rishabh Garg [Wed, 1 Jun 2022 16:22:17 +0000 (21:52 +0530)]
[SBL] Removed files for legacy SOCs

Signed-off-by: Rishabh Garg <rishabh@ti.com>
3 weeks agoJ721E : J7200 : OSPI boot bug fix
Sai Ramakurthi [Wed, 1 Jun 2022 07:30:20 +0000 (13:00 +0530)]
J721E : J7200 : OSPI boot bug fix
- Fix the OSPI boot bug fix for j721e and j7200
- Change the app_img_version to 1 in rprc to control the change to the
  new SDK due to new core IDs

Signed-off-by: Sai Ramakurthi <s-ramakurthi@ti.com>
3 weeks agoFixed IPC build issues
Rishabh Garg [Tue, 31 May 2022 13:55:15 +0000 (19:25 +0530)]
Fixed IPC build issues

Signed-off-by: Rishabh Garg <rishabh@ti.com>
3 weeks agoFixed PDK build
Rishabh Garg [Tue, 31 May 2022 13:11:13 +0000 (18:41 +0530)]
Fixed PDK build

- Wrongly used C style comments in makefile

Signed-off-by: Rishabh Garg <rishabh@ti.com>
3 weeks agoFixed IPC packaging and makefile
Rishabh Garg [Tue, 31 May 2022 11:17:14 +0000 (16:47 +0530)]
Fixed IPC packaging and makefile

Signed-off-by: Rishabh Garg <rishabh@ti.com>
3 weeks agoEnabled IPC driver build for J7AHP
Rishabh Garg [Mon, 30 May 2022 09:39:54 +0000 (15:09 +0530)]
Enabled IPC driver build for J7AHP

Signed-off-by: Rishabh Garg <rishabh@ti.com>
4 weeks agoJ7AHP: UDMA: Remove HACK for Bord_init
l-kumar [Fri, 27 May 2022 05:51:41 +0000 (11:21 +0530)]
J7AHP: UDMA: Remove HACK for Bord_init

Fixes:PDK-12017

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

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

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

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

- update checked-in sciserver binaries

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

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

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

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

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

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

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

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

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

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

- Also enable SBL appimage generation for task switch example

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

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

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

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

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

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

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

- OSAL_board.h cleanup

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

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

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

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

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

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

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

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

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

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

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

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