]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - processor-sdk/pdk.git/log
processor-sdk/pdk.git
14 months ago[AM62A] Cleaned up cache APIs. REL.PSDK.SITARA.08.06.00.01
Venkatesan Krishnamoorthy [Mon, 23 Jan 2023 09:16:25 +0000 (14:46 +0530)]
[AM62A] Cleaned up cache APIs.

 - Removed L2 cache related code as L2 cache is not present.
 - Updated code to enable L1D cache.
 - Using __SE0ADV(char) for waiting for the cache operation to complete.

Signed-off-by: Venkatesan Krishnamoorthy <v-krishnamoorthy@ti.com>
14 months agoMigrating to SYSFW version v08.06.01 REL.CORESDK.08.06.03.05
Vishal Mahaveer [Wed, 25 Jan 2023 04:56:00 +0000 (22:56 -0600)]
Migrating to SYSFW version v08.06.01

Signed-off-by: Vishal Mahaveer <vishalm@ti.com>
15 months agoAM62A: Updated the C7x Exception handler with blocking loop REL.CORESDK.08.06.03.04
Venkatesan Krishnamoorthy [Mon, 16 Jan 2023 10:26:01 +0000 (15:56 +0530)]
AM62A: Updated the C7x Exception handler with blocking loop

 - Added while(1) loops in the Exception handlers.
 - Added a global variable for storing Exception context.

Signed-off-by: Venkatesan Krishnamoorthy <v-krishnamoorthy@ti.com>
15 months agoam62a: Fix leftover R5FSS0 macro names REL.CORESDK.08.06.03.03
Vishal Mahaveer [Thu, 12 Jan 2023 19:22:29 +0000 (13:22 -0600)]
am62a: Fix leftover R5FSS0 macro names

Previous am62a commit to update the macro names missed few instances.
Fixing them.

Signed-off-by: Vishal Mahaveer <vishalm@ti.com>
15 months agoMigrating to SYSFW version v08.06.00 REL.CORESDK.08.06.03.02
Vishal Mahaveer [Thu, 12 Jan 2023 05:42:26 +0000 (23:42 -0600)]
Migrating to SYSFW version v08.06.00

15 months agoam62a: Update R5FSS0 macro names based on latest CSL REL.CORESDK.08.06.03.01
Vishal Mahaveer [Mon, 19 Dec 2022 12:58:37 +0000 (06:58 -0600)]
am62a: Update R5FSS0 macro names based on latest CSL

Latest CSL update changes the DM R5F domain from MAIN to WKUP. Because
of this change the macro names have been updated. Updated PDK codebase
to adapt to this change.

Signed-off-by: Vishal Mahaveer <vishalm@ti.com>
16 months agoMigrating to SYSFW version v08.05.03 REL.CORESDK.08.05.02.03
Vishal Mahaveer [Mon, 21 Nov 2022 21:30:57 +0000 (15:30 -0600)]
Migrating to SYSFW version v08.05.03

16 months agoam62x: am62ax: [SITSW-1714] HSM RAM region is added in the MPU configuration.
Venkatesan Krishnamoorthy [Wed, 16 Nov 2022 14:00:49 +0000 (19:30 +0530)]
am62x: am62ax: [SITSW-1714] HSM RAM region is added in the MPU configuration.

This is required for SBL to boot the (DM + IPC) firmware
Without this SBL is faling to load the (DM + IPC) firmware.
It fixes the issue SITSW-1714.

Signed-off-by: Venkatesan Krishnamoorthy <v-krishnamoorthy@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 agoudma: component.mk: Fix am62a jenkins build issue REL.CORESDK.08.05.02.02
Vishal Mahaveer [Thu, 10 Nov 2022 15:10:47 +0000 (09:10 -0600)]
udma: component.mk: Fix am62a jenkins build issue

Exclude am62a from udma_baremetal_ospi_flash_testapp build.

Signed-off-by: Vishal Mahaveer <vishalm@ti.com>
17 months agoMigrating to SYSFW version v08.05.01 REL.CORESDK.08.05.02.01
Vishal Mahaveer [Wed, 9 Nov 2022 22:09:52 +0000 (16:09 -0600)]
Migrating to SYSFW version v08.05.01

17 months agoam62x: Update R5FSS0 macro names based on latest CSL
Vishal Mahaveer [Tue, 4 Oct 2022 00:07:27 +0000 (19:07 -0500)]
am62x: Update R5FSS0 macro names based on latest CSL

Latest CSL update changes the DM R5F domain from MAIN to WKUP. Because
of this change the macro names have been updated. Updated PDK codebase
to adapt to this change.

Signed-off-by: Vishal Mahaveer <vishalm@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>
18 months agoam62x: Move resource table and trace buffer by 1Mb
Devarsh Thakkar [Mon, 17 Oct 2022 04:58:26 +0000 (10:28 +0530)]
am62x: Move resource table and trace buffer by 1Mb

Move resource table and trace buffer inside by 1Mb,
to provide compatibility with old linux devicetree
which preserved address range starting from
0x9db00000 for DM.

Due to incompatibility with old linux devicetree
DM was crashing as old kernel was modifying
the new range 0x9da00000 where resource table
in new DM was present.

Signed-off-by: Devarsh Thakkar <devarsht@ti.com>
18 months ago[AM62A] Increase the value of OSAL_FREERTOS_MAX_SEMAPHOREP_PER_SOC for TIOVX components
Shubham Jain [Fri, 7 Oct 2022 13:03:07 +0000 (18:33 +0530)]
[AM62A] Increase the value of OSAL_FREERTOS_MAX_SEMAPHOREP_PER_SOC for TIOVX components

Fix to enable HWA conformance tests in tiovx

Signed-off-by: Shubham Jain <a0492788@ti.com>
18 months agoam62x am62a: Remove UDMAP_UDMA from defconfig
sebin francis [Wed, 28 Sep 2022 09:53:01 +0000 (15:23 +0530)]
am62x am62a: Remove UDMAP_UDMA from defconfig

Remove CONFIG_UDMAP_UDMA from the config file since it is not required
for am62x am62a.

Signed-off-by: sebin francis <sebin.francis@ti.com>
18 months agosciclient: Use non sec queue for normal TISCI messages
sebin francis [Tue, 27 Sep 2022 06:48:04 +0000 (12:18 +0530)]
sciclient: Use non sec queue for normal TISCI messages

While forwarding the messages to TIFS only use the secure queue ands
secure host ID when sending secure messages. For all other messages use
the non secure queue.

HACK: Updating the fwdStatus inside the handler is not a proper solution.
Need investigation on how this can be fixed correctly.

Signed-off-by: sebin francis <sebin.francis@ti.com>
18 months agoam62x: r5: Fix IPC trace buffer cache issue
Devarsh Thakkar [Fri, 23 Sep 2022 09:21:08 +0000 (14:51 +0530)]
am62x: r5: Fix IPC trace buffer cache issue

IPC trace buffer was not getting updated in DDR
if marking the whole region of 2Mb as non-cacheable.

Instead mark the VRING and Trace buffer regions
separately as non-cacheable as this fixes the issue.

Also add bsstaskstack section attribute as it is
being used by ipc echo test application.

Signed-off-by: Devarsh Thakkar <devarsht@ti.com>
18 months agoMigrating to SYSFW version v08.04.07
Vishal Mahaveer [Mon, 19 Sep 2022 15:11:55 +0000 (10:11 -0500)]
Migrating to SYSFW version v08.04.07

Signed-off-by: Vishal Mahaveer <vishalm@ti.com>
18 months agoMigrating to SYSFW version v08.04.06
Vishal Mahaveer [Tue, 6 Sep 2022 15:55:06 +0000 (10:55 -0500)]
Migrating to SYSFW version v08.04.06

Signed-off-by: Vishal Mahaveer <vishalm@ti.com>
18 months agoam62a: Change am62a folder name to am62ax
sebin francis [Mon, 29 Aug 2022 12:46:45 +0000 (18:16 +0530)]
am62a: Change am62a folder name to am62ax

In sysfw am62a folder name was changed from am62a to am62ax. Update this
change in make files and header includes.

Signed-off-by: sebin francis <sebin.francis@ti.com>
18 months agoMigrating to SYSFW version v08.04.04
Vishal Mahaveer [Tue, 16 Aug 2022 23:25:57 +0000 (18:25 -0500)]
Migrating to SYSFW version v08.04.04

Signed-off-by: Vishal Mahaveer <vishalm@ti.com>
18 months agosysfw_migrate: am62x adaptations
Vishal Mahaveer [Tue, 16 Aug 2022 21:34:22 +0000 (16:34 -0500)]
sysfw_migrate: am62x adaptations

Signed-off-by: Vishal Mahaveer <vishalm@ti.com>
18 months agosciclient: sysfw_migrate: Sync with mainline script
Vishal Mahaveer [Tue, 16 Aug 2022 21:22:31 +0000 (16:22 -0500)]
sciclient: sysfw_migrate: Sync with mainline script

Signed-off-by: Vishal Mahaveer <vishalm@ti.com>
18 months agosciclient: am62a: Folder rename to match name change in sysfw repo
Vishal Mahaveer [Tue, 16 Aug 2022 13:41:40 +0000 (08:41 -0500)]
sciclient: am62a: Folder rename to match name change in sysfw repo

Signed-off-by: Vishal Mahaveer <vishalm@ti.com>
18 months agoRevert "AM62x: Support for IPC between A53<->M4"
Devarsh Thakkar [Thu, 22 Sep 2022 11:04:00 +0000 (16:34 +0530)]
Revert "AM62x: Support for IPC between A53<->M4"

This reverts commit a2facf1dc58949cdfeb7bd37ef8dbd6507271ed9.
As it breaks linux DM R5<->A53 IPC.

18 months agoAM62x: Support for IPC between A53<->M4
MelinaJennifer [Fri, 19 Aug 2022 09:52:16 +0000 (15:22 +0530)]
AM62x: Support for IPC between A53<->M4

Added mailbox configurations for M4 and code cleanup.

Signed-off-by: MelinaJennifer <m-jennifer@ti.com>
18 months agoam62x: Move to new memory map
Devarsh Thakkar [Mon, 19 Sep 2022 08:53:20 +0000 (14:23 +0530)]
am62x: Move to new memory map

Move to new address ranges for DM R5
<-> A53 IPC.

Also provide mpu access to rtos-to-rtos
IPC regions.

Signed-off-by: Devarsh Thakkar <devarsht@ti.com>
19 months agoam62x: lpm: bug fix
sebin francis [Tue, 30 Aug 2022 09:10:11 +0000 (14:40 +0530)]
am62x: lpm: bug fix

the macro that was used in the switch case for processing TISCI message
was incorrect. Updadte the macro with correct value.

Fixes: SYSFW-5651
Signed-off-by: sebin francis <sebin.francis@ti.com>
19 months ago[AM62A] Adding support for host-emualtion build
Shyam Jagannathan [Fri, 26 Aug 2022 16:59:14 +0000 (22:29 +0530)]
[AM62A] Adding support for host-emualtion build

Signed-off-by: Shyam Jagannathan <shyam.jagannathan@ti.com>
19 months ago[am62a] Check exception handler for null before executing
Anshu Jain [Thu, 25 Aug 2022 10:57:41 +0000 (16:27 +0530)]
[am62a] Check exception  handler for null before executing

Signed-off-by: Anshu Jain <a0132012@ti.com>
20 months agosciclient: Migrate to w2022.02-am62a tag
Vishal Mahaveer [Mon, 8 Aug 2022 20:03:11 +0000 (15:03 -0500)]
sciclient: Migrate to w2022.02-am62a tag

Update to latest am62a wakeup snapshot.

Signed-off-by: Vishal Mahaveer <vishalm@ti.com>
20 months agoam62a: c7x: Optimize the linker script
Devarsh Thakkar [Fri, 5 Aug 2022 15:22:16 +0000 (20:52 +0530)]
am62a: c7x: Optimize the linker script

There are no secure vectors supported for am62a C7x.
The starting boot address needs to be 2Mb aligned.

Signed-off-by: Devarsh Thakkar <devarsht@ti.com>
20 months ago[Am62a] clec external event corepackIRQ registration handling for mutilple input...
Akshay Goyal [Wed, 3 Aug 2022 13:42:06 +0000 (19:12 +0530)]
[Am62a] clec external event corepackIRQ registration handling for mutilple input events

Macros are addedtto get the user selected IRQ number which can
range from 0-63, unique IRQ has to be selected for different mailbox events
coming from different clusters.

For clec mapping
Reference: Am62a c7x Ks3 Clec specification

Signed-off-by: Akshay Goyal <a-goyal@ti.com>
20 months agoCode clean up
sitara [Wed, 3 Aug 2022 21:06:38 +0000 (16:06 -0500)]
Code clean up

20 months agoIncreasing heap size for circular test case
sitara [Tue, 2 Aug 2022 15:05:47 +0000 (10:05 -0500)]
Increasing heap size for circular test case

20 months agofixing circular test build for target
Paula Carrillo [Mon, 1 Aug 2022 21:32:36 +0000 (16:32 -0500)]
fixing circular test build for target

20 months agoFixing malloc alignment for compressed test
sitara [Mon, 1 Aug 2022 19:25:55 +0000 (14:25 -0500)]
Fixing malloc alignment for compressed test

20 months ago[dmautils] Fix issues observed in integration
Anshu [Sat, 30 Jul 2022 17:00:53 +0000 (12:00 -0500)]
[dmautils] Fix issues observed in integration

Signed-off-by: Anshu <anshu.jain@ti.com>
20 months agoam62a: Update mcu1_0 clock frequency
sebin francis [Mon, 1 Aug 2022 12:47:31 +0000 (18:17 +0530)]
am62a: Update mcu1_0 clock frequency

In am62a mcu1_0 (DM R5) is running at 800 MHz, update freertos config
with this

Signed-off-by: sebin francis <sebin.francis@ti.com>
20 months agosciclient: Migrate to w2022.01-am62a tag
Vishal Mahaveer [Mon, 1 Aug 2022 23:53:36 +0000 (18:53 -0500)]
sciclient: Migrate to w2022.01-am62a tag

Update to latest am62a wakeup snapshot.

Signed-off-by: Vishal Mahaveer <vishalm@ti.com>
20 months agosysfw_migrate: am62a: remove vlab and zebu variants
Vishal Mahaveer [Mon, 1 Aug 2022 23:44:16 +0000 (18:44 -0500)]
sysfw_migrate: am62a: remove vlab and zebu variants

Remove VLAB and ZEBU variants for am62a.

Signed-off-by: Vishal Mahaveer <vishalm@ti.com>
20 months ago[Am62a] initialise attribute index for mmu mapping
Akshay Goyal [Tue, 26 Jul 2022 09:59:21 +0000 (15:29 +0530)]
[Am62a] initialise attribute index for mmu mapping

Signed-off-by: Akshay Goyal <a-goyal@ti.com>
20 months ago[Am62a]c75x IPC mailbox cluster updates and memory map updates
Akshay Goyal [Mon, 25 Jul 2022 12:08:51 +0000 (17:38 +0530)]
[Am62a]c75x IPC mailbox cluster updates and memory map updates

Updated c7x free Rtos and IPC linker files according to the new memory map
Removed cores from memory map defines which are not required
Updated vring size for C7x mmu configurations
Updated the mailbox configurations for dm-r5 c7x a53 according to the confluence page
c75x added details for magic number

[Am62a] clec interrupt configuration update
Removed hardcoded interrupt number was added earlier for debugging purpose
and using value passed to the function arguments.

Signed-off-by: Akshay Goyal <a-goyal@ti.com>
20 months ago[AM62A] Rebased Anshu's changes
Vijay Pothukuchi [Fri, 29 Jul 2022 22:46:21 +0000 (17:46 -0500)]
[AM62A] Rebased Anshu's changes

Signed-off-by: Vijay Pothukuchi <vijayp@ti.com>
20 months agoAdding compression test
Paula Carrillo [Thu, 28 Jul 2022 17:35:39 +0000 (12:35 -0500)]
Adding compression test

20 months ago[dmautils] Add linker command file for am62a
anshu [Thu, 28 Jul 2022 16:04:19 +0000 (11:04 -0500)]
[dmautils] Add linker command file for am62a

Signed-off-by: anshu <anshu.jain@ti.com>
20 months ago[dmautils] Automatically set DMA_UTILS_STANDALONE for am62a
Anshu Jain [Thu, 16 Jun 2022 03:58:55 +0000 (09:28 +0530)]
[dmautils] Automatically set DMA_UTILS_STANDALONE for am62a

Signed-off-by: Anshu Jain <anshu.jain@ti.com>
20 months ago[dmautils] Fix build issues after rebase
Anshu Jain [Wed, 8 Jun 2022 06:29:37 +0000 (11:59 +0530)]
[dmautils] Fix build issues after rebase

Signed-off-by: Anshu Jain <anshu.jain@ti.com>
20 months ago[dmautils] Further fixes
Anshu Jain [Wed, 8 Jun 2022 05:38:01 +0000 (11:08 +0530)]
[dmautils] Further fixes

Signed-off-by: Anshu Jain <anshu.jain@ti.com>
20 months ago[dmautils] Validated standalone dmautils on EVM
Anshu Jain [Fri, 22 Apr 2022 15:48:24 +0000 (21:18 +0530)]
[dmautils] Validated standalone dmautils on EVM

Signed-off-by: Anshu Jain <anshu.jain@ti.com>
20 months ago[dmautils] Update dmautils_autoincrement_test
Anshu Jain [Wed, 8 Jun 2022 05:33:24 +0000 (11:03 +0530)]
[dmautils] Update dmautils_autoincrement_test

Signed-off-by: Anshu Jain <anshu.jain@ti.com>
20 months ago[dmautils] Fix target build errors
Anshu Jain [Thu, 21 Apr 2022 11:58:51 +0000 (17:28 +0530)]
[dmautils] Fix target build errors

Signed-off-by: Anshu Jain <anshu.jain@ti.com>
20 months ago[dmautils] Use paths relative to PDK
Anshu Jain [Tue, 19 Apr 2022 09:32:52 +0000 (15:02 +0530)]
[dmautils] Use paths relative to PDK

Signed-off-by: Anshu Jain <anshu.jain@ti.com>
20 months ago[dmautils] Standalone host emu working
Anshu Jain [Mon, 11 Apr 2022 07:07:50 +0000 (12:37 +0530)]
[dmautils] Standalone host emu working

Signed-off-by: Anshu Jain <anshu.jain@ti.com>
20 months ago[dmautils] Add support for standalone dmautils build
Anshu Jain [Fri, 8 Apr 2022 15:04:25 +0000 (20:34 +0530)]
[dmautils] Add support for standalone dmautils build

Signed-off-by: Anshu Jain <anshu.jain@ti.com>
20 months ago[AM62A] Updated C7x CGT to 3.0.0.STS
Vijay Pothukuchi [Fri, 29 Jul 2022 20:34:20 +0000 (15:34 -0500)]
[AM62A] Updated C7x CGT to 3.0.0.STS

Signed-off-by: Vijay Pothukuchi <vijayp@ti.com>
20 months agoam62a: build_config: Remove presil flag
Vishal Mahaveer [Thu, 28 Jul 2022 23:01:10 +0000 (18:01 -0500)]
am62a: build_config: Remove presil flag

Remove presil flag.

Signed-off-by: Vishal Mahaveer <vishalm@ti.com>
20 months agoAM62x: UDMA support changes for AM62x.
m-patil [Thu, 28 Jul 2022 11:09:24 +0000 (16:39 +0530)]
AM62x: UDMA support changes for AM62x.
    Add UDMA make file support changes for AM62x and AM62A.
    Fix UDMA build issues for AM62x and AM62A.
    Add qnx based cache flushing support in OSAL.
Signed-off-by: m-patil <m-patil@ti.com>
20 months agoAM62x: Updated ring buffer configuration to 3MB in the R5 memory map
MelinaJennifer [Tue, 26 Jul 2022 09:41:53 +0000 (15:11 +0530)]
AM62x: Updated ring buffer configuration to 3MB in the R5 memory map

Signed-off-by: MelinaJennifer <m-jennifer@ti.com>
20 months agoAM62x: Add QNX specific and A53<->R5 IPC changes
MelinaJennifer [Wed, 20 Jul 2022 05:56:07 +0000 (11:26 +0530)]
AM62x: Add QNX specific and A53<->R5 IPC changes

Added QNX specific board changes and updated Vring buffer address to avoid overlap with existing M4 region

Signed-off-by: MelinaJennifer <m-jennifer@ti.com>
20 months agoEnable FVID2 and VHWA build for mcu1_0 binary for AM62A
Shubham Jain [Mon, 25 Jul 2022 16:11:54 +0000 (21:41 +0530)]
Enable FVID2 and VHWA build for mcu1_0 binary for AM62A

Signed-off-by: Shubham Jain <a0492788@ti.com>
20 months agoam62a: Update pdk with latest sysfw release
Vishal Mahaveer [Fri, 22 Jul 2022 00:06:24 +0000 (19:06 -0500)]
am62a: Update pdk with latest sysfw release

Update the sciclient components with p08.04.02-am62a-RC2 release

Signed-off-by: Vishal Mahaveer <vishalm@ti.com>
20 months agoAM62a: Update RM IRQ Tree
Dillon Frank [Tue, 19 Jul 2022 15:43:49 +0000 (10:43 -0500)]
AM62a: Update RM IRQ Tree

Pull int he IRQ tree data from SYSFW autogen,
and update the macros to be in line with the
traditional PDK sciclient macros

Fixes: SYSFW-5556
Signed-off-by: Dillon Frank <d-frank@ti.com>
20 months agosciclient: Add support for queryfw capabilities
sebin francis [Thu, 26 May 2022 06:58:54 +0000 (12:28 +0530)]
sciclient: Add support for queryfw capabilities

Add tisci message to query firmware capabilities

Fixes: SYSFW-5553
Signed-off-by: sebin francis <sebin.francis@ti.com>
20 months agoAM62x: Update RM IRQ Tree
Dillon Frank [Mon, 18 Jul 2022 18:12:14 +0000 (13:12 -0500)]
AM62x: Update RM IRQ Tree

Pull in the IRQ tree data from SYSFW autogen,
and update the macros to be in line with the
traditional PDK sciclient macros

Signed-off-by: Dillon Frank <d-frank@ti.com>
20 months agoDM: Fix jenkins build issue
sebin francis [Sat, 2 Jul 2022 05:18:13 +0000 (10:48 +0530)]
DM: Fix jenkins build issue

sciclient_indirect was getting build for mcu1_0 core, but in mcu1_0
sciclient_direct is used. Filter out mcu1_0 for sciclient_indirect.

Add ifdef for trace related components in sciclient.c since it is only
applicable for DM.

Signed-off-by: sebin francis <sebin.francis@ti.com>
20 months agosciclient: Add support for new lpm tisci messages
sebin francis [Thu, 30 Jun 2022 11:56:28 +0000 (17:26 +0530)]
sciclient: Add support for new lpm tisci messages

 - Add tisci message to query the lpm wake reason
 - Add tisci message to enable/disable IO isolation

Fixes: SYSFW-5300, SYSFW-5277, SYSFW-5329
Signed-off-by: sebin francis <sebin.francis@ti.com>
20 months agoDM trace: Do trace configuration
sebin francis [Tue, 31 May 2022 11:24:28 +0000 (16:54 +0530)]
DM trace: Do trace configuration

Debug trace configuration information is present in the base board
config. But base board config is only given to TIFS not to DM by the
bootloader. But DM needs to know what is the debug trace configuration
present in the board config for configuring DM's trace. During boot time
get the debug trace configuration form TIFS and configure the DM's trace

Fixes: SYSFW-5366
Signed-off-by: sebin francis <sebin.francis@ti.com>
20 months agoam62a: Move to new memory map address ranges
Devarsh Thakkar [Fri, 22 Jul 2022 08:19:58 +0000 (13:49 +0530)]
am62a: Move to new memory map address ranges

Move to new memory map address ranges
defined by the common memory map
being used across all OS.

Signed-off-by: Devarsh Thakkar <devarsht@ti.com>
20 months ago[am62a] IPC c75x changes for ls2ram addresses amd mmu mapping
Akshay Goyal [Wed, 20 Jul 2022 12:09:07 +0000 (17:39 +0530)]
[am62a] IPC c75x changes for ls2ram addresses amd mmu mapping

Signed-off-by: Akshay Goyal <a-goyal@ti.com>
21 months ago[Am62a] cgt compiler version update
Akshay Goyal [Tue, 12 Jul 2022 06:03:41 +0000 (11:33 +0530)]
[Am62a] cgt compiler version update

Signed-off-by: Akshay Goyal <a-goyal@ti.com>
21 months ago[c75x] add extension for c75x binaries
Akshay Goyal [Thu, 30 Jun 2022 09:17:16 +0000 (14:47 +0530)]
[c75x] add extension for c75x binaries

Added for am62a c75x as compiler and ISA is changed.

Signed-off-by: Akshay Goyal <a-goyal@ti.com>
21 months agoam62a: Add a new line after the last line
sebin francis [Wed, 29 Jun 2022 12:01:56 +0000 (17:31 +0530)]
am62a: Add a new line after the last line

Add a new line after the end of last line to fix compiling issue for c7x

Signed-off-by: sebin francis <sebin.francis@ti.com>
21 months agoam62a: Update pdk with latest sysfw release
sebin francis [Tue, 28 Jun 2022 12:46:29 +0000 (18:16 +0530)]
am62a: Update pdk with latest sysfw release

Update the sciclient components with p08.04.02-am62a release

Signed-off-by: sebin francis <sebin.francis@ti.com>
21 months agoam62a: remove lpm components from linker
sebin francis [Tue, 28 Jun 2022 09:45:18 +0000 (15:15 +0530)]
am62a: remove lpm components from linker

In am62x and am62a few section of code has different run and load
address. Because of this there is hack added in the self_reset that
assumes the load and run address will always differ a constant value.
But this is not ture for am62a. lpm components are not enabled in am62a,
because of this the lpm section are empty. this creates a hole in the
memory and break the assumption that load and run address of each
section is always same. Remove the lpm section from the linker to fix
this.

Signed-off-by: sebin francis <sebin.francis@ti.com>
21 months agoam62a: Update the sciserver components
sebin francis [Tue, 28 Jun 2022 05:36:07 +0000 (11:06 +0530)]
am62a: Update the sciserver components

C7x got added as a new processing entity. Because of this the sec proxy
thread ID where updated. Update sciserver components with the latest
sec peoxy thread IDs from sysfw.

Signed-off-by: sebin francis <sebin.francis@ti.com>
21 months agor5_mpu: am62x: Allow access to trace buffer, resource table
Devarsh Thakkar [Tue, 28 Jun 2022 09:19:09 +0000 (14:49 +0530)]
r5_mpu: am62x: Allow access to trace buffer, resource table

For AM62x, the memory carveout which resides trace buffer
and resource table is discontigous to ring buffer
so add a separate entry for the same for allowing linux to access
it and allocate 1 Mb to each.

Signed-off-by: Devarsh Thakkar <devarsht@ti.com>
21 months agolinker: r5: am62a: am62x: Don't align resource table
Devarsh Thakkar [Tue, 28 Jun 2022 09:07:56 +0000 (14:37 +0530)]
linker: r5: am62a: am62x: Don't align resource table

Resource table need not be aligned to 4096. The test
app works without this alignment. Same is being
followed for other SoCs e.g J7.

Remove this alignment constraint for now.

Signed-off-by: Devarsh Thakkar <devarsht@ti.com>
21 months agoam62x: Release the R5 core after self reset
sebin francis [Tue, 14 Jun 2022 07:03:47 +0000 (12:33 +0530)]
am62x: Release the R5 core after self reset

As part of self reset DM is requesting for r5 processor. Release the r5
processor after self reset.

Signed-off-by: sebin francis <sebin.francis@ti.com>
21 months agoipc: main_rtos: Initialize UART before sciclient init
Devarsh Thakkar [Mon, 27 Jun 2022 13:29:11 +0000 (18:59 +0530)]
ipc: main_rtos: Initialize UART before sciclient init

Unlike J7, For AM62, AM62x there are some UART prints coming
for during clock initialization which require UART to be
initialized.

Now since DM itself is running R5 IPC which runs before linux
is up we require to have the UART initialized beforehand itself.

Signed-off-by: Devarsh Thakkar <devarsht@ti.com>
21 months agoam62a: Fix for VPAC build
Aashvij Shenai [Mon, 27 Jun 2022 08:37:58 +0000 (14:07 +0530)]
am62a: Fix for VPAC build

 Add macros so that UDMA(inside VPAC) builds.
 Macros have no runtime purpose in AM62A

Signed-off by: Aashvij Shenai <a-shenai@ti.com>

21 months ago[am62a] remove am62a_evm from dm_stub soc list
Akshay [Mon, 27 Jun 2022 08:23:05 +0000 (13:53 +0530)]
[am62a] remove am62a_evm from dm_stub soc list

Signed-off-by: Akshay <a-goyal@ti.com>
21 months agosciclient: makefile: Remove C7x from tirtos
Akshay Goyal [Mon, 27 Jun 2022 05:44:59 +0000 (11:14 +0530)]
sciclient: makefile: Remove C7x from tirtos

Remove c7x from tirtos as it is not supported
for tirtos.

Signed-off-by: Akshay Goyal <a0498036@ti.com>
21 months agoipc_component.mk: Filter out am62x for unimplemented ipc apps
Devarsh Thakkar [Fri, 24 Jun 2022 13:18:19 +0000 (18:48 +0530)]
ipc_component.mk: Filter out am62x for unimplemented ipc apps

Don't compile for AM62x for unsupported IPC test apps.
We are only support IPC echo testb freertos for AM62x.

Signed-off-by: Devarsh Thakkar <devarsht@ti.com>
21 months agoam62x: linker_r5_freertos_btcm: Move the VRING region to the top
Devarsh Thakkar [Thu, 23 Jun 2022 12:20:49 +0000 (17:50 +0530)]
am62x: linker_r5_freertos_btcm: Move the VRING region to the top

Use range from start of memory reserved by linux for VRINGS
using DDR_MCU1_0.

Signed-off-by: Devarsh Thakkar <devarsht@ti.com>
21 months agomailbox: am62x: Add support for A53<->DM R5 IPC
Devarsh Thakkar [Thu, 23 Jun 2022 12:16:26 +0000 (17:46 +0530)]
mailbox: am62x: Add support for A53<->DM R5 IPC

Add support for AF53<->DM R5 IPC by adding relevant
entries for MCU1_0 in the driver and compilation support.

Also update ISR callback attributes as per latest changes
in the compiler.

Remove M4F stub as not fully implemented.

Signed-off-by: Devarsh Thakkar <devarsht@ti.com>
21 months agoipc_soc: V5: am62x: Add support for MCU1_0
Devarsh Thakkar [Thu, 23 Jun 2022 12:13:58 +0000 (17:43 +0530)]
ipc_soc: V5: am62x: Add support for MCU1_0

- Add MCU1_0 support.
- Remove M4F stub as not fully implemented.

Signed-off-by: Devarsh Thakkar <devarsht@ti.com>
21 months agoipc: examples: Add support for AM62x
Devarsh Thakkar [Thu, 23 Jun 2022 12:07:00 +0000 (17:37 +0530)]
ipc: examples: Add support for AM62x

- Enable IPC echo test example for AM62x SOC
- Add linker scripts base taking reference from
  J721E.
- Add compilation support for AM62x IPC
  for A53 (linux) <-> DM R5 (MCU1_0)
- Add R5 MPU config file with VRING address
  as defined by linux devicetree.
- Remove M4F IPC stub as not fully implemented.

Signed-off-by: Devarsh Thakkar <devarsht@ti.com>
21 months ago[Am62a] component.mk files update for mailbox, ipc, uart, sciclient for c7x to pass...
Akshay Goyal [Wed, 22 Jun 2022 13:55:41 +0000 (19:25 +0530)]
[Am62a] component.mk files update for mailbox, ipc, uart, sciclient for c7x to pass jenkins build

filter out mcu1_0 from ipc_echo_test

ipc_rtos_echo_testb filter out for am62a

Signed-off-by: Akshay Goyal <a0498036@ti.com>
21 months ago[Am62a] build related issues resolved after rebasing to sitara master
Akshay Goyal [Mon, 20 Jun 2022 11:36:35 +0000 (17:06 +0530)]
[Am62a] build related issues resolved after rebasing to sitara master

Signed-off-by: Akshay Goyal <a0498036@ti.com>
21 months ago[Am62a] removed m4-f intances
Akshay Goyal [Thu, 16 Jun 2022 11:27:53 +0000 (16:57 +0530)]
[Am62a] removed m4-f intances

Signed-off-by: Akshay Goyal <a0498036@ti.com>
21 months ago[Am62a] offset updated for mailbox soc events
Akshay Goyal [Thu, 16 Jun 2022 05:56:14 +0000 (11:26 +0530)]
[Am62a] offset updated for mailbox soc events

Signed-off-by: Akshay Goyal <a0498036@ti.com>
21 months ago[am62a] updated mailbox configurations as per spec
Akshay Goyal [Wed, 15 Jun 2022 12:56:50 +0000 (18:26 +0530)]
[am62a] updated mailbox configurations as per spec

Remove M4FSS configuration as it is using same user
id as R5F.

Update user id and interrupt numbers as per spec.

Co-Authored-by: Devarsh Thakkar <devarsht@ti.com>
Signed-off-by: Devarsh Thakkar <devarsht@ti.com>
Signed-off-by: Akshay Goyal <a0498036@ti.com>
21 months ago[Am62a] added condtionl compilation for am62a related mmu changes
Akshay Goyal [Tue, 14 Jun 2022 10:09:12 +0000 (15:39 +0530)]
[Am62a] added condtionl compilation for am62a related mmu changes

Signed-off-by: Akshay Goyal <a0498036@ti.com>
21 months agoipc: makefile.mk: Use sciserver linker script for ipc when using MCU1_0
Devarsh Thakkar [Tue, 14 Jun 2022 09:35:07 +0000 (15:05 +0530)]
ipc: makefile.mk: Use sciserver linker script for ipc when using MCU1_0

We aligned to use same linker script for IPC with MCU1_0
and sciserver since both using DM R5.

Signed-off-by: Devarsh Thakkar <devarsht@ti.com>
21 months agoipc: main_rtos: Remove App_sciclientConsoleInit as it is not defined
Devarsh Thakkar [Tue, 14 Jun 2022 09:32:57 +0000 (15:02 +0530)]
ipc: main_rtos: Remove App_sciclientConsoleInit as it is not defined

Remove App_sciclientConsoleInit as it is not defined here.

Signed-off-by: Devarsh Thakkar <devarsht@ti.com>
21 months agoam62a: mailbox_soc.c: Update mailbox ISR
Devarsh Thakkar [Tue, 14 Jun 2022 09:28:14 +0000 (14:58 +0530)]
am62a: mailbox_soc.c: Update mailbox ISR

As per the latest toolchain, code state attribute
syntax is changed, align as per the new recommendation.

Also remove unimplemented ISR's for BUILD_MCU as
we are only having definitions of ISR's for MCU1_0,
M4F_0, MPU1_0.

Signed-off-by: Devarsh Thakkar <devarsht@ti.com>
21 months agoam62a: mailbox_soc.c: Add interrupt numbers for R5F and C7X
Devarsh Thakkar [Tue, 14 Jun 2022 09:26:16 +0000 (14:56 +0530)]
am62a: mailbox_soc.c: Add interrupt numbers for R5F and C7X

Add interrupt numbers for R5F (MCU1_0) and C7X (C7X_1).

Signed-off-by: Akshay Goyal <a-goyal@ti.com>
Signed-off-by: Devarsh Thakkar <devarsht@ti.com>
21 months agomailbox_soc.h: Add mailbox instance for MCU1_0 R5F
Devarsh Thakkar [Tue, 14 Jun 2022 09:24:35 +0000 (14:54 +0530)]
mailbox_soc.h: Add mailbox instance for MCU1_0 R5F

Add mailbox instance macro for MCU1_0 R5F as it
is being used in AM62A.

Signed-off-by: Devarsh Thakkar <devarsht@ti.com>